Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ldgetpd(3x) [ultrix man page]

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)

Check Out this Related Man Page

ldgetaux(3x)															      ldgetaux(3x)

Name
       ldgetaux - retrieve an auxiliary entry, given an index

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

       pAUXU ldgetaux (ldptr, iaux)
       LDFILE ldptr;
       long iaux;

Description
       The  function  returns  a pointer to an auxiliary table entry associated with iaux.  The AUXU is contained in a static buffer.  Because the
       buffer can be overwritten by later calls to it must be copied by the caller if the aux is to be saved or changed.

       Note that auxiliary entries are not swapped as this routine  cannot  detect  what  manifestation  of  the  AUXU	union  is  retrieved.	If
       LDAUXSWAP(ldptr, ldf) is non-zero, a further call to swap_aux is required.  Before calling the swap_aux routine, the caller should copy the
       aux.

       If the auxiliary cannot be retrieved, returns null (defined in <stdio.h>) for an object file.  This occurs in the following instances:

       o    The auxiliary table cannot be found

       o    The iaux offset into the auxiliary table is beyond the end of the table

       Typically, is called immediately after a successful call to to retrieve the data type information associated with the  symbol  table  entry
       filled by The index field of the symbol, pSYMR, is the iaux when data type information is required. If the data type information for a sym-
       bol is not present, the index field is indexNi and should not be called.

See Also
       intro(3x), ldclose(3x), ldopen(3x), ldtbseek(3x), ldtbread(3x), ldfcn(5).

								       RISC							      ldgetaux(3x)
Man Page

9 More Discussions You Might Find Interesting

1. Programming

Calling procedure through Unix Shell

Hi can anyone help me in how to 1) invoke batch profile to run sqlplus on XXXXX server. 2) execute truncate table xtra.xtra_card_email_request using procedure dbadmin.truncate_table . 3) Check the count before and after the job run. (1 Reply)
Discussion started by: jakred
1 Replies

2. Shell Programming and Scripting

environment checkout procedure

Hi, Can anybody explain what is env checkout procedure and how to write a procedure for that? Thanks and Regards Venkat (0 Replies)
Discussion started by: pvenkat14
0 Replies

3. Web Development

Display the contents of a table.

Dear Friends, Am an newbie to this domain. I have a table which is filled with contents which i need to be updated with,so am trying to design a flow which would read the data from the table and mail it to me at regular intervals. I could make out the flow using mailx command but want to... (3 Replies)
Discussion started by: gokulj
3 Replies

4. Shell Programming and Scripting

loading the data to the partitioned table using procedure

Hi one help, I need one procedure to load data from flat file to table. Table name as input parameter for the procedure. can anyone help me Thanks, Raj, (1 Reply)
Discussion started by: easterraj
1 Replies

5. Shell Programming and Scripting

Checking for existence of stored procedure through script

Hi, I have a stored procedure which takes in arguments from my script and deletes rows from a table. Before calling the procedure from the script i want to make sure if the procedure actually exists.If it exists, i want to pass values to the procedure and execute it.if the stored procedure... (3 Replies)
Discussion started by: justchill
3 Replies

6. UNIX for Dummies Questions & Answers

Calling stored procedure from unix

Hi, My stored procedure returns a value. How to retrieve the value and display in unix. Stored procedure CREATE OR REPLACE PROCEDURE gohan(num INT) IS BEGIN DBMS_OUTPUT.PUT_LINE('My lucky number is ' || num); END; Unix Scripting i used sqlplus -s... (7 Replies)
Discussion started by: gohan3376
7 Replies

7. UNIX and Linux Applications

create table via stored procedure (passing the table name to it)

hi there, I am trying to create a stored procedure that i can pass the table name to and it will create a table with that name. but for some reason it creates with what i have defined as the variable name . In the case of the example below it creates a table called 'tname' for example ... (6 Replies)
Discussion started by: rethink
6 Replies

8. Programming

PL/SQL - one procedure for business logic

Hello, I need some advice how to to create one big transactional table. My table has following columns person_id, trans_id, date, dep_id, material_id, input, outpu, total I created procedure from which I will enter all transaction into that table. Problem is I don't have any idea how... (3 Replies)
Discussion started by: solaris_user
3 Replies

9. UNIX and Linux Applications

Syntax problem Oracle

Hi All, I have a syntax problem with a procedure in oracle. I am looking to just produce the number of rows from each table located in the HR schema nothing complex. This procedure works great up to dbms_output.put_line(tab_var); where it lists the names of each table in the user schema. My... (5 Replies)
Discussion started by: bdby
5 Replies