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

  man pages->IRIX man pages -> standard/ldgetpd (3)              


LDGETPD(3X)							   LDGETPD(3X)

NAME    [Toc]    [Back]

     ldgetpd - retrieve	procedure descriptor given a procedure descriptor

SYNOPSIS    [Toc]    [Back]

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

     long ldgetpd (ldptr, ipd, ppd)
     LDFILE ldptr;
     long ipd;
     pPDR ppd;

DESCRIPTION    [Toc]    [Back]

     ldgetpd returns a SUCCESS or FAILURE depending on whether the procedure
     descriptor	with index ipd can be accessed.	 If it can be accessed,	the
     structure pointed to by ppd is filled with	the contents of	the
     corresponding procedure descriptor.  The isym, iline, and iopt fields of
     the procedure descriptor are updated to be	used in	further	LD routine
     calls. The	adr field is updated from the symbol referenced	by the isym

     The PDR cannot be retrieved when:

     o	     The procedure descriptor table cannot be found.

     o	     The ipd offset into the procedure descriptor table	is beyond the
	     end of the	table.

     o	     The file descriptor that the ipd offset falls into	cannot be

     Typically,	ldgetpd	is called while	traversing the table that runs from 0
     to	SYMHEADER(ldptr).ipdMax	- 1.

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

SEE ALSO    [Toc]    [Back]

     ldclose(3X), ldopen(3X), ldtbseek(3X), ldtbread(3X), ldfcn(4).

									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
ldgetpd Tru64 retrieves procedure descriptor given a procedure descriptor index
getdtablehi IRIX get largest open file descriptor index
DtMmdbGetBookCaseByIndex HP-UX obtains a descriptor for a bookcase based on an infolib index
AFidentifyfd IRIX retrieve the audio file format of a file descriptor / open AFfilehandle
pxfisatty IRIX Determines if file descriptor corresponds to a valid file descriptor
ldgetaux IRIX retrieve an auxiliary entry, given an index
inet6_rth_getaddr Tru64 Retrieve an address for an index from an IPv6 Routing header
elf_update IRIX update an ELF descriptor
BIO_s_fd Tru64 File descriptor BIO
close NetBSD delete a descriptor
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service