*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> standard/ldclose (3)              
Title
Content
Arch
Section
 

Contents


LDCLOSE(3X)							   LDCLOSE(3X)


NAME    [Toc]    [Back]

     ldclose, ldaclose - close a common	object file

SYNOPSIS    [Toc]    [Back]

     #include <stdio.h>
     #include <filehdr.h>
     #include <syms.h>
     #include <ldfcn.h>


     int ldclose (ldptr)
     LDFILE *ldptr;

     int ldaclose (ldptr)
     LDFILE *ldptr;

DESCRIPTION    [Toc]    [Back]

     ldopen(3X)	and ldclose provide uniform access to simple object files and
     object files that are members of archive files.  An archive of common
     object files can be processed as if it is a series	of simple common
     object files.

     If	TYPE(ldptr) does not represent an archive file,	ldclose	closes the
     file and frees the	memory allocated to the	LDFILE structure associated
     with ldptr.  If TYPE(ldptr) is the	magic number for an archive file and
     if	archive	has more files,	ldclose	reinitializes OFFSET(ldptr) to the
     file address of the next archive member and returns FAILURE.  The LDFILE
     structure is prepared for a later ldopen(3X).  In all other cases,
     ldclose returns SUCCESS.

     ldaclose closes the file and frees	the memory allocated to	the LDFILE
     structure associated with ldptr regardless	of the value of	TYPE(ldptr).
     ldaclose always returns SUCCESS.  The function is often used with
     ldaopen.

     The program must be loaded	with the object	file access routine library
     libmld.a.

SEE ALSO    [Toc]    [Back]

      
      
     fclose(3S), ldopen(3X), ldfcn(4).

BUGS    [Toc]    [Back]

     ONLY the memory associated	with the LDFILE	structure proper is freed.
     Memory allocated for subordinate structures (e.g. the symbol table) must
     be	freed PRIOR to calling ldclose or ldaclose.


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
ldohseek Tru64 seek to the optional file header of a common object file
ldohseek IRIX seek to the optional file header of a common object file
nm HP-UX print name list of common object file
ldopen IRIX open a common object file for reading
ldaopen Tru64 open a common object file for reading
ldfcn Tru64 Common object file access routines
ldopen Tru64 open a common object file for reading
ldfhread Tru64 read the file header of a common object file
ldfhread IRIX read the file header of a common object file
ldtbseek IRIX seek to the symbol table of a common object file
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service