Sponsored Content
The Lounge What is on Your Mind? Happy SysAdmin Appreciation Day! Post 302543237 by linuxadmin on Saturday 30th of July 2011 03:45:04 AM
Old 07-30-2011
Belated wishes.. to all
 

5 More Discussions You Might Find Interesting

1. News, Links, Events and Announcements

Sysadmin Day.

We have Labour day, Secretary Day Etc. But there is another day upcoming, which is System Administrator Day. (System Administrator Appreciation Day Friday - July 26th, 2002) http://www.sysadminday.com/ " Nice to hear that all our hardworks are getting noticed " :cool: (2 Replies)
Discussion started by: killerserv
2 Replies

2. What is on Your Mind?

Happy turkey day!

Hello all, Happy turkey day! I have no questions at this time. (1 Reply)
Discussion started by: mskcc
1 Replies

3. Red Hat

Happy Document Freedom Day

Document Freedom Day (DFD) is a global grassroots effort* to promote and build awareness of the importance of free document formats in particular and open standards in general.* If you have ever received a document from a friend that your software could not open, then you know the frustration of... (0 Replies)
Discussion started by: Linux Bot
0 Replies

4. News, Links, Events and Announcements

Sysadmin Day Meetup in NYC

Hi All, I just joined this forum, and I think its great! I wanted to let you know in honor of Systems Administrator Appreciation Day (which is next Friday, as you probably know), I'm organizing a meetup in New York City to celebrate. I've made a page with more information here: ... (0 Replies)
Discussion started by: MPSimmons
0 Replies

5. What is on Your Mind?

Alita Battle Angel - Happy Valentines Day

Just saw Alita Battle Angel with my Valentine and we really liked it. Hope many will go see it so they will make a sequel. https://www.unix.com/members/1-albums221-picture1089.jpg (0 Replies)
Discussion started by: Neo
0 Replies
elf_cntl(3ELF)						       ELF Library Functions						    elf_cntl(3ELF)

NAME
elf_cntl - control an elf file descriptor SYNOPSIS
cc [ flag ... ] file ... -lelf [ library ... ] #include <libelf.h> int elf_cntl(Elf *elf, Elf_Cmd cmd); DESCRIPTION
elf_cntl() instructs the library to modify its behavior with respect to an ELF descriptor, elf. As elf_begin(3ELF) describes, an ELF descriptor can have multiple activations, and multiple ELF descriptors may share a single file descriptor. Generally, elf_cntl() commands apply to all activations of elf. Moreover, if the ELF descriptor is associated with an archive file, descriptors for members within the ar- chive will also be affected as described below. Unless stated otherwise, operations on archive members do not affect the descriptor for the containing archive. The cmd argument tells what actions to take and may have the following values: ELF_C_FDDONE This value tells the library not to use the file descriptor associated with elf. A program should use this command when it has requested all the information it cares to use and wishes to avoid the overhead of reading the rest of the file. The memory for all completed operations remains valid, but later file operations, such as the initial elf_getdata() for a sec- tion, will fail if the data are not in memory already. ELF_C_FDREAD This command is similar to ELF_C_FDDONE, except it forces the library to read the rest of the file. A program should use this command when it must close the file descriptor but has not yet read everything it needs from the file. After elf_cntl() completes the ELF_C_FDREAD command, future operations, such as elf_getdata(), will use the memory version of the file without needing to use the file descriptor. If elf_cntl() succeeds, it returns 0. Otherwise elf was NULL or an error occurred, and the function returns -1. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Stable | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
elf(3ELF), elf_begin(3ELF), elf_getdata(3ELF), elf_rawfile(3ELF), libelf(3LIB), attributes(5) NOTES
If the program wishes to use the ``raw'' operations (see elf_rawdata(), which elf_getdata(3ELF) describes, and elf_rawfile(3ELF)) after disabling the file descriptor with ELF_C_FDDONE or ELF_C_FDREAD, it must execute the raw operations explicitly beforehand. Otherwise, the raw file operations will fail. Calling elf_rawfile() makes the entire image available, thus supporting subsequent elf_rawdata() calls. SunOS 5.10 11 Jul 2001 elf_cntl(3ELF)
All times are GMT -4. The time now is 04:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy