Unix and Linux Discussions Tagged with archive |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
7 |
9,415 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
12,672 |
Debian |
|
|
|
2 |
1,768 |
Shell Programming and Scripting |
|
|
|
7 |
3,144 |
Shell Programming and Scripting |
|
|
|
3 |
3,270 |
UNIX for Dummies Questions & Answers |
|
|
|
13 |
33,093 |
Shell Programming and Scripting |
|
|
|
3 |
3,247 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
6,781 |
Shell Programming and Scripting |
|
|
|
8 |
5,883 |
Shell Programming and Scripting |
|
|
|
5 |
5,177 |
Shell Programming and Scripting |
|
|
|
2 |
3,810 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
40,863 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,378 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
9,616 |
Solaris |
|
|
|
0 |
3,169 |
Solaris BigAdmin RSS |
|
|
|
0 |
1,158 |
Software Releases - RSS News |
|
|
|
2 |
5,793 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,873 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,363 |
Solaris BigAdmin RSS |
|
|
|
0 |
1,036 |
Software Releases - RSS News |
|
|
|
0 |
4,752 |
Solaris BigAdmin RSS |
|
|
|
1 |
3,207 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,228 |
Software Releases - RSS News |
|
|
|
0 |
2,490 |
Solaris BigAdmin RSS |
|
|
|
0 |
4,192 |
OS X Support RSS |
|
|
|
0 |
1,495 |
Solaris BigAdmin RSS |
|
|
|
9 |
3,920 |
Shell Programming and Scripting |
|
|
|
0 |
3,233 |
Solaris BigAdmin RSS |
|
|
|
1 |
6,158 |
Shell Programming and Scripting |
|
|
|
0 |
1,631 |
OS X Support RSS |
|
|
|
0 |
2,711 |
OS X Support RSS |
|
|
|
0 |
1,018 |
Software Releases - RSS News |
|
|
|
0 |
1,419 |
Solaris BigAdmin RSS |
|
|
|
0 |
2,089 |
MySQL DevZone RSS |
|
|
|
0 |
883 |
Software Releases - RSS News |
|
|
|
0 |
974 |
Software Releases - RSS News |
|
|
|
0 |
908 |
Software Releases - RSS News |
|
|
|
1 |
3,210 |
UNIX Desktop Questions & Answers |
|
|
|
0 |
891 |
Software Releases - RSS News |
|
|
|
0 |
1,098 |
Software Releases - RSS News |
elf_rand(3E) elf_rand(3E)
NAME
elf_rand - random archive member access
SYNOPSIS
[flag... ] file... [library] ...
DESCRIPTION
and manipulate simple object files and archives. elf is an ELF descriptor previously returned from
provides random archive processing, preparing elf to access an arbitrary archive member. elf must be a descriptor for the archive itself,
not a member within the archive. offset gives the byte offset from the beginning of the archive to the archive header of the desired mem-
ber. See elf_getarsym(3E) for more information about archive member offsets. When works, it returns offset. Otherwise it returns 0,
because an error occurred, elf was null, or the file was not an archive (no archive member can have a zero offset). A program may mix ran-
dom and sequential archive processing.
EXAMPLES
An archive starts with a ``magic string'' that has bytes; the initial archive member follows immediately. An application could thus pro-
vide the following function to rewind an archive (the function returns -1 for errors and 0 otherwise).
#include <ar.h>
#include <libelf.h>
int
rewindelf(Elf *elf)
{
if (elf_rand(elf, (size_t)SARMAG) == SARMAG)
return 0;
return -1;
}
SEE ALSO
ar(4), elf(3E), elf_begin(3E), elf_getarsym(3E), elf_next(3E).
elf_rand(3E)