Unix and Linux Discussions Tagged with file descriptor |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
2 |
3,887 |
Shell Programming and Scripting |
|
|
|
19 |
14,060 |
Solaris |
|
|
|
9 |
10,114 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
4,082 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
5,085 |
Shell Programming and Scripting |
|
|
|
3 |
4,390 |
Programming |
|
|
|
0 |
1,540 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
5,112 |
Shell Programming and Scripting |
|
|
|
5 |
3,525 |
Programming |
|
|
|
2 |
16,108 |
Programming |
|
|
|
6 |
10,636 |
Shell Programming and Scripting |
|
|
|
2 |
3,602 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
22,019 |
IP Networking |
|
|
|
6 |
12,447 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
18,566 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
11,999 |
Programming |
|
|
|
3 |
18,437 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
15,821 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
5,555 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
4,346 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,607 |
UNIX for Dummies Questions & Answers |
ldgetpd(3x) ldgetpd(3x)
Name
ldgetpd - retrieve procedure descriptor given a procedure descriptor index
Syntax
#include <stdio.h>
#include <filehdr.h>
#include <sym.h>
#include <ldfcn.h>
long ldgetpd (ldptr, ipd, ppd)
LDFILE ldptr;
long ipd;
pPDR ipd;
Description
The function returns 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 field.
The PDR cannot be retrieved when the following occurs:
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 found.
Typically, is called while traversing the table that runs from 0 to SYMHEADER(ldptr).ipdMax - 1.
See Also
ldclose(3x), ldopen(3x), ldtbseek(3x), ldtbread(3x), ldfcn(5)
RISC ldgetpd(3x)