You should have /usr/include/linux directory and some files do include
files with the same name (but in another directory)
/usr/include/time.h includes /usr/include/sys/time.h includes
/usr/include/linux/time.h.
this is because /usr/include/time.h is generic for all architectures of
computers and the particularities are implemented in /usr/include/linux
So now your problem:
/usr/include/linux is a symlink to /usr/src/linux/include/linux
and the content of this directory comes with the kernel sources ...
-----Message d'origine-----
De: Count Zero [SMTP:[EMAIL PROTECTED]]
Date: vendredi 25 septembre 1998 06:55
�: [EMAIL PROTECTED]
Objet: Help with standiard GCC include files...
For some reason all my include file contain an include line that would
include themselves, for instance time.h would/does have
#include <linux/time.h>
but all my include file are in /usr/include and there is no /linux or
/usr/include/linux and anyways why would an include file want to include
itself? Wouldn't that just result in an unending loop? (Please excuse my
ignorance in programming) I'm running Slackware 2.0.34 with a 2.0.30
kernal. If you need any more info on my machine or if I've left
something out please just ask...
I'll attach a small header file for you gurus to peruse...
#ifndef _SYS_TIME_H
#define _SYS_TIME_H
#include <features.h>
#include <linux/types.h>
#include <linux/time.h>
#define DST_NONE 0 /* not on dst */
#define DST_USA 1 /* USA style dst */
#define DST_AUST 2 /* Australian style dst */
#define DST_WET 3 /* Western European dst */
#define DST_MET 4 /* Middle European dst */
#define DST_EET 5 /* Eastern European dst */
#define DST_CAN 6 /* Canada */
#define DST_GB 7 /* Great Britain and Eire */
#define DST_RUM 8 /* Rumania */
#define DST_TUR 9 /* Turkey */
#define DST_AUSTALT 10 /* Australian style with shift in 1986 */
#ifdef __SVR4_I386_ABI_L1__
typedef struct timestruc {
time_t tv_sec;
long tv_nsec;
} timestruc_t;
#endif /* __SVR4_I386_ABI_L1__ */
/*
* Operations on timevals.
*
* NB: timercmp does not work for >= or <=.
* */
#define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
#define timercmp(tvp, uvp, cmp) \
(((tvp)->tv_sec == (uvp)->tv_sec && (tvp)->tv_usec cmp (uvp)->tv_usec) \
|| (tvp)->tv_sec cmp (uvp)->tv_sec)
#define timerclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0)
#include <time.h>
#include <sys/types.h>
__BEGIN_DECLS
extern int __gettimeofday __P ((struct timeval * __tp,
struct timezone * __tz));
extern int gettimeofday __P ((struct timeval * __tp,
struct timezone * __tz));
extern int __settimeofday __P ((__const struct timeval *__tv,
__const struct timezone *__tz));
extern int settimeofday __P ((__const struct timeval *__tv,
__const struct timezone *__tz));
extern int __select __P ((int __width, fd_set * __readfds,
fd_set * __writefds, fd_set * __exceptfds,
struct timeval * __timeout));
extern int select __P ((int __width, fd_set * __readfds,
fd_set * __writefds, fd_set * __exceptfds,
struct timeval * __timeout));
extern int __getitimer __P ((int __which,
struct itimerval *__value));
extern int getitimer __P ((int __which,
struct itimerval *__value));
extern int __setitimer __P ((int __which,
__const struct itimerval *__value,
struct itimerval *__ovalue));
extern int setitimer __P ((int __which,
__const struct itimerval *__value,
struct itimerval *__ovalue));
extern int __adjtime __P ((struct timeval * __itv,
struct timeval * __otv));
extern int adjtime __P ((struct timeval * __itv,
struct timeval * __otv));
extern int __utimes __P((char *__path, struct timeval *tvp));
extern int utimes __P((char *__path, struct timeval *tvp));
__END_DECLS
#endif /*_SYS_TIME_H*/