Get_Limit(3)

Synopsis

cc [ flag ... ] file ... -lunify -levents -lpvm3 -lgpvm3 -lthread -ll -lsocket -lnsl -lw -lposix4 -lucb [ library ... ]

#include "unify.h"

int Get_Limit(int seg_id, unsigned *wrap, unsigned *writep)

Description

Get_Limit returns the current write state of the sequential segment referenced by seg_id. The offset from the beginning of the segment to which the next data will be written is returned in the value pointed to by writep. When a call to Seq_Write(3) would write past the end of the segment, the write pointer wraps around to the beginning of the segment and continues writing the data at the beginning of the segment (see Seq_Write(3)). The number of times segment has wrapped since it was created is returned in the value pointed to by wrap.

Return Values

On success 0 is returned. Otherwise, a value of -1 is returned.

Errors

See Also

Seq_Write(3), unifyintro(3)


RCS status $Id: Get_Limit.html,v 1.2 1998/01/14 16:08:58 dieter Exp $