Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ranlib(5) [osx man page]

RANLIB(5)						      BSD File Formats Manual							 RANLIB(5)

NAME
ranlib -- archive (library) table-of-contents format SYNOPSIS
#include <mach-o/ranlib.h> DESCRIPTION
The archive table-of-contents command ranlib creates a table of contents for archives, containing object files, to be used by the link-editor ld(1). It operates on archives created with the utility ar(1). The Ranlib function prepends a new file to the archive which has three separate parts. The first part is a standard archive header, which has a special name field, "__.SYMDEF" or "__.SYMDEF SORTED". If the archive does not have multiple members that define symbol then "__.SYMDEF SORTED" should be used and the table of contents should be sorted by name. The second part is a ``long'' followed by a list of ranlib structures. The long is the size, in bytes, of the list of ranlib structures. Each of the ranlib structures consists of a zero based offset into the next section (a string table of symbols) and an offset from the begin- ning of the archive to the start of the archive file which defines the symbol. The actual number of ranlib structures is this number divided by the size of an individual ranlib structure. The third part is a ``long'' followed by a string table. The long is the size, in bytes of the string table. SEE ALSO
ar(1), ranlib(1) Darwin November 16, 2001 Darwin

Check Out this Related Man Page

RANLIB(1)						      General Commands Manual							 RANLIB(1)

NAME
ranlib - table-of-contents for archive libraries SYNOPSIS
ranlib [-t] file ... DESCRIPTION
Ranlib creates a table of external references for archive libraries, normally used by the loader, ld(1). This table is is named ``__.SYMDEF'' and is prepended to the archive. Files in the archive which are not executable and symbols which are uninteresting to the loader are ignored. The options are as follows: -t Set the modification time of the __.SYMDEF file. This time is compared by the loader with the modification time of the archive to verify that the table is up-to-date with respect to the archive. If the modification time has been changed without any change to the archive (for example, by a cp(1)), the -t option can be used to ``touch'' the modification time so that it appears that the ta- ble is up-to-date. FILES
/tmp default temporary file directory ranlib.XXXXXX temporary file names SEE ALSO
ar(1), ld(1), lorder(1), nm(1), ranlib(5) HISTORY
A ranlib command appeared in Version 7 AT&T UNIX. 4.3 Berkeley Distribution May 9, 1991 RANLIB(1)
Man Page

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Creating table in Unix

Hi All, In a given directory, I need to list the files present in it in the below given format as a table. File name Permission Number of Bytes File Type Telecom1 --w-r-x 1230 Directory Telecom2 ---x---x---x 450 Device file Telecom3 ... (7 Replies)
Discussion started by: mr_manii
7 Replies

2. Shell Programming and Scripting

Shell script or command help to extract specific contents from a long list of content

Hi, I got a long list of contents: >sequence_1 ASSSSSSSSSSSDDDDDDDDDDDCCCCCCC ASDSFDFFDFDFFWERERERERFSDFESFSFD >sequence_2 ASDFDFDFFDDFFDFDSFDSFDFSDFSDFDSFASDSADSADASD ASDFFDFDFASFASFASFAFSFFSDASFASFASFAFS >sequence_3 VEDFGSDGSDGSDGSDGSDGSDGSDG dDFSDFSDFSDFSDFSDFSDFSDFSDF... (2 Replies)
Discussion started by: patrick87
2 Replies

3. Shell Programming and Scripting

Moving files based on size (string to integer)

I have a log file that I want to archive out as it reaches 100MB. I am using the following to get the file size into a variable but get the error "line 5: filesize=$(wc -c < logfile.log) if then echo "is greater than 100M" else echo "is less than 100M" fi I'm sure there's something... (2 Replies)
Discussion started by: Flakman
2 Replies

4. Programming

Extract part of an archive to a different file

I need to save part of a file to a different one, start and end offset bytes are provided by two counters in long format. If the difference is big, how should I do it to prevent buffer overflow in java? (7 Replies)
Discussion started by: Tribe
7 Replies