01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

LDCLOSE ( 3X ) LDCLOSE ( 3X )<br />

NAME ldclose, ldaclose - close a common object file<br />

SYNOPSIS<br />

#include <br />

#include <br />

#include <br />

int ldclose (ldptr)<br />

LDFILE •ldptr;<br />

int ldaclose (ldptr)<br />

LDFILE •ldptr;<br />

DESCRIPTION<br />

Ldopen(3X) and ldclose are designed to provide uniform access to<br />

both simple object files and object files that are members of<br />

archive files. Thus an archive of common object files can be processed<br />

as if it were a series of simple common object files.<br />

If TYPE(ldptr) does not represent an archive file, ldclose will close<br />

the file and free the memory allocated to the LDFILE structure<br />

associated with ldptr . If TYPE(ldptr) is the magic number of an<br />

archive file, and if there are any more files in the archive, ldclose<br />

will reinitialize OFFSET(ldptr) to the file address of the next<br />

archive member and return FAILURE. The LDFILE structure is<br />

prepared for a subsequent ldopen(3X). In all other cases, ldclose<br />

returns SUCCESS.<br />

Ldaclose closes the file and frees the memory allocated to the<br />

LDFILE structure associated with ldptr regardless of the value of<br />

TYPE{ldptr). Ldaclose always returns SUCCESS. The function<br />

is often used in conjunction with ldaopen.<br />

The program must be loaded with the object file access routine<br />

library libld.a.<br />

SEE ALSO<br />

fclose(3S), ldopen(3X), ldfcn( 4).<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!