Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ldaclose(3) [osf1 man page]

ldclose(3)						     Library Functions Manual							ldclose(3)

NAME
ldclose, ldaclose - close a common object file SYNOPSIS
#include <stdio.h> #include <filehdr.h> #include <syms.h> #include <ldfcn.h> int ldclose (ldptr) LDFILE *ldptr; int ldaclose (ldptr) LDFILE *ldptr; DESCRIPTION
ldopen(3) and ldclose provide uniform access to simple object files and object files that are members of archive files. An archive of com- mon 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 associ- ated 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(3). 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. RELATED INFORMATION
fclose(3), ldopen(3), ldfcn(4). delim off ldclose(3)

Check Out this Related Man Page

ldclose(3x)															       ldclose(3x)

Name
       ldclose, ldaclose - close a common object file

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

       int ldclose (ldptr)
       LDFILE *ldptr;

       int ldaclose (ldptr)
       LDFILE *ldptr;

Description
       The  and  functions 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, 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, reinitializes OFFSET(ldptr) to the file
       address of the next archive member and returns failure.	The LDFILE structure is prepared for a later In all other cases, returns success.

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

See Also
       fclose(3s), intro(3x) ldopen(3x), ldfcn(5), paths.h(4)

								       RISC							       ldclose(3x)
Man Page

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Shared Objects

Hi Friends ! I have a library, say libxyz.a. To view all the object files in the archive, i issued the command : ar -t libxyz.a which displayed all the object files it contains. Now, I would like to know the functions in each object file. Is there any such command that displays... (3 Replies)
Discussion started by: mrgubbala
3 Replies

2. UNIX for Dummies Questions & Answers

Use variable in object library (ar)

I am trying to use a library, lets say libexample.a, and I want to use a variable within the object files that were archived. For example, my new code (which is linked to the library, don't worry about that) wants to access an integer from the original source. When I use the nm command on... (2 Replies)
Discussion started by: justinpark01
2 Replies

3. UNIX for Dummies Questions & Answers

How to archive old files from the recently added 10 files?

Hi there, I am very new to unix and having trouble with a fairly simple statement: cd /user ls -t -c1 | sed -ne '11,$p' | mv xargs archive/ What I want the code to do is sort all files in a directory by timestamp, select all of the files after the 10th file, and then move those files... (3 Replies)
Discussion started by: DSIReady
3 Replies

4. UNIX for Advanced & Expert Users

Shell

i have a newfile now its like dis id,name,id_2, type,success/failure,number 44,RAJ, 33, a,SUCCESS,30 40,JEY, 44,a,FAILURE,30 44,RAJ, 33, a,FAILURE,30 40,JEY, 44,a,FAILURE,30 40,JEY, 44,a,FAILURE,30 44,RAJ, 33,a,FAILURE,30 and i have lil problem now because now i hav to add two more... (1 Reply)
Discussion started by: pradeep rawat
1 Replies

5. Shell Programming and Scripting

Shell scripting

id,name,id_2, success/failure 44,RAJ, 33, SUCCESS 40,JEY, 44,FAILURE 44,RAJ, 33, FAILURE 40,JEY, 44,FAILURE 40,JEY, 44,FAILURE 44,RAJ, 33,FAILURE THIS IS MY FILE. I WANT OUTPUT AS. id,name,id_2,success/failure,TOTAL 44,RAJ,33,SUCCESS=1/FAILURE=2, TOTAL=3 40,JEY,44,SUCCESS=0/FAILURE=3,... (10 Replies)
Discussion started by: pradeep rawat
10 Replies