Get_Updates(3)

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

#include "unify.h"

int Get_Updates(int seg_id);

Description

Get_Updates retrieves the most recent copy of the segment specified by seg_id. The data may not actually retreived until the segment is accessed.

Return Values

Get_Updates returns 0 on success. Otherwise, a value of -1 is returned.

Errors

An error will occur if seg_id is invalid.

See Also

Put_Updates(3), unifyintro(3)

Warnings

If LAZY_GET_UPDATES is defined in config.h when the Unify library is comiled, the segment updates are not retrieved until the first segment access that follows the Get_Updates. Otherwise, the process has the most recent copy of the segment upon return of Get_Updates(3). LAZY_GET_UPDATES is defined by default.

Simultaneous use of Get_Updates(3) and Put_Updates(3) on the same segment is currently undefined.


RCS status $Id: Get_Updates.html,v 1.1 1998/01/12 18:59:45 dieter Exp diaz $