Dear All,
In my /usr/include/libelf.h, I see function prototypes for functions like:
elf_begin
elf_ndxscn
etc.
What does one link against to get these functions? Where do I get source
for this library?
Jason
In my /usr/include/libelf.h, I see function prototypes for functions like:
elf_begin
elf_ndxscn
etc.
What does one link against to get these functions? Where do I get source
for this library?
Jason
1. gettimeofday prototype in /usr/include/sys/time.h on Solaris 2.4
man gettimeofday
Reformatting page. Wait... done
gettimeofday(3C) C Library Functions gettimeofday(3C)
NAME
gettimeofday, settimeofday - get or set the date and time
SYNOPSIS
#include <sys/time.h>
int gettimeofday(struct timeval *tp);
....
#ifdef __cplusplus
int gettimeofday(struct timeval *, void *);
int settimeofday(struct timeval *, void *);
#endif
What is void* for?
This makes it very hard to write code that compiles on other machines.
#ifdef Solaris24
gettimeofday(time);
#elseif SYSV
gettimeofday(time);
#else
gettimeofday(time, timezone);
#endif
--
- Bill
3. One more time: /usr/include/linux, /usr/include/asm
5. Help - clashes between /usr/include and /usr/include/linux
7. /usr/include/string.h and /usr/include/strings.h
9. /usr/include vs /usr/include/sys
10. Help - clashes between /usr/include and /usr/include/linux
11. Can't compile minicom (/usr/include/sys missing *.h files)
12. Missing /usr/include/bits/linux/errno.
13. 1.2 kernel missing /usr/src/linux/include/asm