Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ldlitem(3x) [ultrix man page]

ldlread(3x)															       ldlread(3x)

Name
       ldlread, ldlinit, ldlitem - manipulate line number entries of a common object file function

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

       int ldlread (ldptr, fcnindx, linenum, linent)
       LDFILE *ldptr;
       long fcnindx;
       unsigned short linenum;
       LINER linent;

       int ldlinit (ldptr, fcnindx)
       LDFILE *ldptr;
       long fcnindx;

       int ldlitem (ldptr, linenum, linent)
       LDFILE *ldptr;
       unsigned short linenum;
       LINER linent;

Description
       The  function  searches	the line number entries of the common object file currently associated with ldptr.  The function begins its search
       with the line number entry for the beginning of a function and confines its search to the line numbers associated with a  single  function.
       The  function  is identified by fcnindx, which is the index of its local symbols entry in the object file symbol table.	The function reads
       the entry with the smallest line number equal to or greater than linenum into linent.

       The and functions provide the same behavior as After an initial call to or can be used to retrieve a series of line number entries  associ-
       ated with a single function.  The function simply finds the line number entries for the function identified by fcnindx.	The function finds
       and reads the entry with the smallest line number equal to or greater than linenum into linent.

       The functions and each return either success or failure.  The function fails if one of the following occurs:

       o    If line number entries do not exist in the object file.

       o    If fcnindx does not index a function entry in the symbol table.

       o    If it does not find a line number equal to or greater than linenum.

       The fails if it does not find a line number equal to or greater than linenum.

See Also
       ldclose(3x), ldopen(3x), ldtbindex(3x), ldfcn(5)

								       RISC							       ldlread(3x)

Check Out this Related Man Page

ldlseek(3)						     Library Functions Manual							ldlseek(3)

NAME
ldlseek, ldnlseek - seek to line number entries of a section of a common object file SYNOPSIS
#include <stdio.h> #include <filehdr.h> #include <syms.h> #include <ldfcn.h> int ldlseek (ldptr, sectindx) LDFILE *ldptr; unsigned short sectindx; int ldnlseek (ldptr, sectname) LDFILE *ldptr; char *sectname; DESCRIPTION
ldlseek seeks to the line number entries of the section specified by sectindx of the common object file currently associated with ldptr. ldnlseek seeks to the line number entries of the section specified by sectname. ldlseek and ldnlseek return SUCCESS or FAILURE. NOTE: Line numbers are not associated with sections in the current implementation of the symbol table; therefore, the second argument is ignored, but maintained for historical purposes. If they cannot seek to the specified line number entries, both routines fail. The program must be loaded with the object file access routine library libmld.a. RELATED INFORMATION
ldclose(3), ldopen(3), ldshread(3), ldfcn(4). delim off ldlseek(3)
Man Page

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Problem with Maths

Heres a script i wrote as a bit of practise. What it does is insert a line in the middle of a file. The line being $1 and the file being $2 #!/bin/bash rm tempfile touch tempfile count=1 linenum= `wc -l < $2` if then echo $1 >> $2 else even=`expr "$linenum" % 2` if then... (3 Replies)
Discussion started by: Quesa
3 Replies

2. Shell Programming and Scripting

Pattern Matching and lines after that

I have a huge file and every paragraph has a date. But I want to retrieve the paras for the last two days only. So I can grep and findout the linenum for the first line since yesterday. Now I want to display everything after that line. And I am trying to do this inside a script so the linenum is a... (4 Replies)
Discussion started by: kaushys
4 Replies

3. Shell Programming and Scripting

check line by line in a file

Hi there How can I check line by line in a file? I need to compare the first value with the second to know if they are equal. If those values are equal, I require to send "TRUE" to the output or "FALSE" otherwise until the complete file has been read. Thank you (6 Replies)
Discussion started by: loperam
6 Replies

4. UNIX for Dummies Questions & Answers

how to remove mutilple enrty in a single line in unix

Hi, Below is a single line output. subsD,01 02 03 04 05 00 00 00 00 07 00 05,hlr,common,00000000 subsD,01 02 03 04 05 00 00 00 00 07 00 05,hlr,01,baoc|notActive|notInduced,activeAndOperative,notActive,notActive,noneDesignated,0,notActive|00|,notActive|00|,notActive|00|,notActive|00|30|,,... (4 Replies)
Discussion started by: kaprus
4 Replies

5. Shell Programming and Scripting

perl linenum script

im working a a perl script for a class and i need to call a file and print it out with line numbers. i need help with this line with what to put in the capitalized words SYNTAX ($LINEEQUALITY OPERATOR<MY_FILE>){ also should i replace MY_FILE with a different syntax or will that work? ... (5 Replies)
Discussion started by: livewire06
5 Replies

6. Shell Programming and Scripting

Using sed '${linenum}d' $filename in shell

Hi Experts, Please let me know how to below situation: Looking for: sed "${linenum}d" $filename > $filename _Without_7C Working Command: sed "${linenum}d" A020820122200.tis2webGMNA001_GDS_DIDOut.txt > A020820122200.tis2webGMNA001_GDS_DIDOut.txt_Without_7C appriciate if you can... (7 Replies)
Discussion started by: rajubollas
7 Replies

7. Shell Programming and Scripting

Request to check:find out common entries

I have to compare 2 files which means 2 files with common entries in same column and separate those common entries in a diferent file as well right before those entries common so that I can separat common and Uncommon entries in rows in 2 different files. Is it possible For eg. one file ... (3 Replies)
Discussion started by: manigrover
3 Replies

8. UNIX for Beginners Questions & Answers

How to find encapsulating function name from line number?

I am looking at a log file which just tells me the filename and the line number inside that file that has the Error. What I am interested is knowing the encapsulating function. For example, here are the contents of the log file Error: foo.file on line wxy Error: foo.file... (3 Replies)
Discussion started by: kaaliakahn
3 Replies