* libc/include/pwd.h: Add guards to avoid type clashes when compiling
Cygwin. * libc/include/sys/stat.h: Ditto. * libc/include/sys/unistd.h: Ditto. * libc/sys/cygwin/sys/dirent.h: Ditto.
This commit is contained in:
parent
d580d86c80
commit
f882fd15b0
|
@ -1,3 +1,11 @@
|
||||||
|
2003-03-09 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* libc/include/pwd.h: Add guards to avoid type clashes when compiling
|
||||||
|
Cygwin.
|
||||||
|
* libc/include/sys/stat.h: Ditto.
|
||||||
|
* libc/include/sys/unistd.h: Ditto.
|
||||||
|
* libc/sys/cygwin/sys/dirent.h: Ditto.
|
||||||
|
|
||||||
2003-03-07 Christopher Faylor <cgf@redhat.com>
|
2003-03-07 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* libc/include/sys/unistd.h: Guard getopt.h call to force only
|
* libc/include/sys/unistd.h: Guard getopt.h call to force only
|
||||||
|
|
|
@ -58,6 +58,7 @@ struct passwd {
|
||||||
char *pw_shell; /* default shell */
|
char *pw_shell; /* default shell */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifndef __INSIDE_CYGWIN__
|
||||||
struct passwd *getpwuid (uid_t);
|
struct passwd *getpwuid (uid_t);
|
||||||
struct passwd *getpwnam (const char *);
|
struct passwd *getpwnam (const char *);
|
||||||
int getpwnam_r (const char *, struct passwd *,
|
int getpwnam_r (const char *, struct passwd *,
|
||||||
|
@ -69,6 +70,7 @@ struct passwd *getpwent (void);
|
||||||
void setpwent (void);
|
void setpwent (void);
|
||||||
void endpwent (void);
|
void endpwent (void);
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
|
@ -127,7 +127,7 @@ int _EXFUN(mkfifo,( const char *__path, mode_t __mode ));
|
||||||
int _EXFUN(stat,( const char *__path, struct stat *__sbuf ));
|
int _EXFUN(stat,( const char *__path, struct stat *__sbuf ));
|
||||||
mode_t _EXFUN(umask,( mode_t __mask ));
|
mode_t _EXFUN(umask,( mode_t __mask ));
|
||||||
|
|
||||||
#if defined(__rtems__) || defined(__CYGWIN__)
|
#if defined(__rtems__) || defined(__CYGWIN__) && !defined(__INSIDE_CYGWIN__)
|
||||||
int _EXFUN(lstat,( const char *__path, struct stat *__buf ));
|
int _EXFUN(lstat,( const char *__path, struct stat *__buf ));
|
||||||
int _EXFUN(mknod,( const char *__path, mode_t __mode, dev_t __dev ));
|
int _EXFUN(mknod,( const char *__path, mode_t __mode, dev_t __dev ));
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -20,7 +20,9 @@ int _EXFUN(access,(const char *__path, int __amode ));
|
||||||
unsigned _EXFUN(alarm, (unsigned __secs ));
|
unsigned _EXFUN(alarm, (unsigned __secs ));
|
||||||
int _EXFUN(chdir, (const char *__path ));
|
int _EXFUN(chdir, (const char *__path ));
|
||||||
int _EXFUN(chmod, (const char *__path, mode_t __mode ));
|
int _EXFUN(chmod, (const char *__path, mode_t __mode ));
|
||||||
|
#if !defined(__INSIDE_CYGWIN__)
|
||||||
int _EXFUN(chown, (const char *__path, uid_t __owner, gid_t __group ));
|
int _EXFUN(chown, (const char *__path, uid_t __owner, gid_t __group ));
|
||||||
|
#endif
|
||||||
#if defined(__CYGWIN__) || defined(__rtems__)
|
#if defined(__CYGWIN__) || defined(__rtems__)
|
||||||
int _EXFUN(chroot, (const char *__path ));
|
int _EXFUN(chroot, (const char *__path ));
|
||||||
#endif
|
#endif
|
||||||
|
@ -42,7 +44,9 @@ int _EXFUN(execvp, (const char *__file, char * const __argv[] ));
|
||||||
int _EXFUN(fchdir, (int __fildes));
|
int _EXFUN(fchdir, (int __fildes));
|
||||||
#endif
|
#endif
|
||||||
int _EXFUN(fchmod, (int __fildes, mode_t __mode ));
|
int _EXFUN(fchmod, (int __fildes, mode_t __mode ));
|
||||||
|
#if !defined(__INSIDE_CYGWIN__)
|
||||||
int _EXFUN(fchown, (int __fildes, uid_t __owner, gid_t __group ));
|
int _EXFUN(fchown, (int __fildes, uid_t __owner, gid_t __group ));
|
||||||
|
#endif
|
||||||
pid_t _EXFUN(fork, (void ));
|
pid_t _EXFUN(fork, (void ));
|
||||||
long _EXFUN(fpathconf, (int __fd, int __name ));
|
long _EXFUN(fpathconf, (int __fd, int __name ));
|
||||||
int _EXFUN(fsync, (int __fd));
|
int _EXFUN(fsync, (int __fd));
|
||||||
|
@ -50,9 +54,11 @@ char _EXFUN(*getcwd, (char *__buf, size_t __size ));
|
||||||
#if defined(__CYGWIN__)
|
#if defined(__CYGWIN__)
|
||||||
int _EXFUN(getdomainname ,(char *__name, size_t __len));
|
int _EXFUN(getdomainname ,(char *__name, size_t __len));
|
||||||
#endif
|
#endif
|
||||||
|
#if !defined(__INSIDE_CYGWIN__)
|
||||||
gid_t _EXFUN(getegid, (void ));
|
gid_t _EXFUN(getegid, (void ));
|
||||||
uid_t _EXFUN(geteuid, (void ));
|
uid_t _EXFUN(geteuid, (void ));
|
||||||
gid_t _EXFUN(getgid, (void ));
|
gid_t _EXFUN(getgid, (void ));
|
||||||
|
#endif
|
||||||
int _EXFUN(getgroups, (int __gidsetsize, gid_t __grouplist[] ));
|
int _EXFUN(getgroups, (int __gidsetsize, gid_t __grouplist[] ));
|
||||||
char _EXFUN(*getlogin, (void ));
|
char _EXFUN(*getlogin, (void ));
|
||||||
#if defined(_POSIX_THREAD_SAFE_FUNCTIONS)
|
#if defined(_POSIX_THREAD_SAFE_FUNCTIONS)
|
||||||
|
@ -67,17 +73,23 @@ pid_t _EXFUN(getppid, (void ));
|
||||||
#ifdef __CYGWIN__
|
#ifdef __CYGWIN__
|
||||||
pid_t _EXFUN(getsid, (pid_t));
|
pid_t _EXFUN(getsid, (pid_t));
|
||||||
#endif
|
#endif
|
||||||
|
#if !defined(__INSIDE_CYGWIN__)
|
||||||
uid_t _EXFUN(getuid, (void ));
|
uid_t _EXFUN(getuid, (void ));
|
||||||
|
#endif
|
||||||
#ifdef __CYGWIN__
|
#ifdef __CYGWIN__
|
||||||
char * _EXFUN(getusershell, (void));
|
char * _EXFUN(getusershell, (void));
|
||||||
char _EXFUN(*getwd, (char *__buf ));
|
char _EXFUN(*getwd, (char *__buf ));
|
||||||
int _EXFUN(iruserok, (unsigned long raddr, int superuser, const char *ruser, const char *luser));
|
int _EXFUN(iruserok, (unsigned long raddr, int superuser, const char *ruser, const char *luser));
|
||||||
#endif
|
#endif
|
||||||
int _EXFUN(isatty, (int __fildes ));
|
int _EXFUN(isatty, (int __fildes ));
|
||||||
|
#if !defined(__INSIDE_CYGWIN__)
|
||||||
int _EXFUN(lchown, (const char *__path, uid_t __owner, gid_t __group ));
|
int _EXFUN(lchown, (const char *__path, uid_t __owner, gid_t __group ));
|
||||||
|
#endif
|
||||||
int _EXFUN(link, (const char *__path1, const char *__path2 ));
|
int _EXFUN(link, (const char *__path1, const char *__path2 ));
|
||||||
int _EXFUN(nice, (int __nice_value ));
|
int _EXFUN(nice, (int __nice_value ));
|
||||||
|
#if !defined(__INSIDE_CYGWIN__)
|
||||||
off_t _EXFUN(lseek, (int __fildes, off_t __offset, int __whence ));
|
off_t _EXFUN(lseek, (int __fildes, off_t __offset, int __whence ));
|
||||||
|
#endif
|
||||||
long _EXFUN(pathconf, (const char *__path, int __name ));
|
long _EXFUN(pathconf, (const char *__path, int __name ));
|
||||||
int _EXFUN(pause, (void ));
|
int _EXFUN(pause, (void ));
|
||||||
#ifdef __CYGWIN__
|
#ifdef __CYGWIN__
|
||||||
|
@ -96,22 +108,26 @@ int _EXFUN(rmdir, (const char *__path ));
|
||||||
int _EXFUN(ruserok, (const char *rhost, int superuser, const char *ruser, const char *luser));
|
int _EXFUN(ruserok, (const char *rhost, int superuser, const char *ruser, const char *luser));
|
||||||
#endif
|
#endif
|
||||||
void * _EXFUN(sbrk, (ptrdiff_t __incr));
|
void * _EXFUN(sbrk, (ptrdiff_t __incr));
|
||||||
|
#if !defined(__INSIDE_CYGWIN__)
|
||||||
#if defined(__CYGWIN__)
|
#if defined(__CYGWIN__)
|
||||||
int _EXFUN(setegid, (gid_t __gid ));
|
int _EXFUN(setegid, (gid_t __gid ));
|
||||||
int _EXFUN(seteuid, (uid_t __uid ));
|
int _EXFUN(seteuid, (uid_t __uid ));
|
||||||
#endif
|
#endif
|
||||||
int _EXFUN(setgid, (gid_t __gid ));
|
int _EXFUN(setgid, (gid_t __gid ));
|
||||||
|
#endif
|
||||||
#if defined(__CYGWIN__)
|
#if defined(__CYGWIN__)
|
||||||
int _EXFUN(setgroups, (int ngroups, const gid_t *grouplist ));
|
int _EXFUN(setgroups, (int ngroups, const gid_t *grouplist ));
|
||||||
#endif
|
#endif
|
||||||
int _EXFUN(setpgid, (pid_t __pid, pid_t __pgid ));
|
int _EXFUN(setpgid, (pid_t __pid, pid_t __pgid ));
|
||||||
int _EXFUN(setpgrp, (void ));
|
int _EXFUN(setpgrp, (void ));
|
||||||
#if defined(__CYGWIN__)
|
#if defined(__CYGWIN__) && !defined(__INSIDE_CYGWIN__)
|
||||||
int _EXFUN(setregid, (gid_t __rgid, gid_t __egid));
|
int _EXFUN(setregid, (gid_t __rgid, gid_t __egid));
|
||||||
int _EXFUN(setreuid, (uid_t __ruid, uid_t __euid));
|
int _EXFUN(setreuid, (uid_t __ruid, uid_t __euid));
|
||||||
#endif
|
#endif
|
||||||
pid_t _EXFUN(setsid, (void ));
|
pid_t _EXFUN(setsid, (void ));
|
||||||
|
#if !defined(__INSIDE_CYGWIN__)
|
||||||
int _EXFUN(setuid, (uid_t __uid ));
|
int _EXFUN(setuid, (uid_t __uid ));
|
||||||
|
#endif
|
||||||
#if defined(__CYGWIN__)
|
#if defined(__CYGWIN__)
|
||||||
void _EXFUN(setusershell, (void));
|
void _EXFUN(setusershell, (void));
|
||||||
#endif
|
#endif
|
||||||
|
@ -161,8 +177,10 @@ int _EXFUN(getdtablesize, (void));
|
||||||
int _EXFUN(setdtablesize, (int));
|
int _EXFUN(setdtablesize, (int));
|
||||||
useconds_t _EXFUN(ualarm, (useconds_t __useconds, useconds_t __interval));
|
useconds_t _EXFUN(ualarm, (useconds_t __useconds, useconds_t __interval));
|
||||||
unsigned _EXFUN(usleep, (unsigned int __useconds));
|
unsigned _EXFUN(usleep, (unsigned int __useconds));
|
||||||
|
#if !defined(__INSIDE_CYGWIN__)
|
||||||
int _EXFUN(ftruncate, (int __fd, off_t __length));
|
int _EXFUN(ftruncate, (int __fd, off_t __length));
|
||||||
int _EXFUN(truncate, (const char *, off_t __length));
|
int _EXFUN(truncate, (const char *, off_t __length));
|
||||||
|
#endif
|
||||||
#if !(defined (_WINSOCK_H) || defined (__USE_W32_SOCKETS))
|
#if !(defined (_WINSOCK_H) || defined (__USE_W32_SOCKETS))
|
||||||
/* winsock[2].h defines as __stdcall, and with int as 2nd arg */
|
/* winsock[2].h defines as __stdcall, and with int as 2nd arg */
|
||||||
int _EXFUN(gethostname, (char *__name, size_t __len));
|
int _EXFUN(gethostname, (char *__name, size_t __len));
|
||||||
|
|
|
@ -57,8 +57,10 @@ int closedir (DIR *);
|
||||||
int dirfd (DIR *);
|
int dirfd (DIR *);
|
||||||
|
|
||||||
#ifndef _POSIX_SOURCE
|
#ifndef _POSIX_SOURCE
|
||||||
|
#ifndef __INSIDE_CYGWIN__
|
||||||
off_t telldir (DIR *);
|
off_t telldir (DIR *);
|
||||||
void seekdir (DIR *, off_t loc);
|
void seekdir (DIR *, off_t loc);
|
||||||
|
#endif
|
||||||
|
|
||||||
int scandir (const char *__dir,
|
int scandir (const char *__dir,
|
||||||
struct dirent ***__namelist,
|
struct dirent ***__namelist,
|
||||||
|
|
Loading…
Reference in New Issue