diff options
Diffstat (limited to 'newlib/libc/sys/cygwin/sys')
-rw-r--r-- | newlib/libc/sys/cygwin/sys/dirent.h | 71 | ||||
-rw-r--r-- | newlib/libc/sys/cygwin/sys/param.h | 51 | ||||
-rw-r--r-- | newlib/libc/sys/cygwin/sys/utime.h | 30 | ||||
-rw-r--r-- | newlib/libc/sys/cygwin/sys/utmp.h | 66 |
4 files changed, 0 insertions, 218 deletions
diff --git a/newlib/libc/sys/cygwin/sys/dirent.h b/newlib/libc/sys/cygwin/sys/dirent.h deleted file mode 100644 index 411aa74b0..000000000 --- a/newlib/libc/sys/cygwin/sys/dirent.h +++ /dev/null @@ -1,71 +0,0 @@ -/* Posix dirent.h for WIN32. - - Copyright 2001 Red Hat, Inc. - - This software is a copyrighted work licensed under the terms of the - Cygwin license. Please consult the file "CYGWIN_LICENSE" for - details. */ - -/* Including this file should not require any Windows headers. */ - -#ifndef _SYS_DIRENT_H -#define _SYS_DIRENT_H - -#include <sys/types.h> - -#define __DIRENT_VERSION 1 - -struct dirent -{ - long d_version; /* Used since Cygwin 1.3.3. */ - long __d_reserved[2]; - long d_fd; /* File descriptor of open directory. - Used since Cygwin 1.3.3. */ - ino_t d_ino; /* Just for compatibility, it's junk */ - char d_name[256]; /* FIXME: use NAME_MAX? */ -}; - -#define __DIRENT_COOKIE 0xdede4242 - -typedef struct __DIR -{ - /* This is first to set alignment in non _COMPILING_NEWLIB case. */ - unsigned long __d_cookie; - struct dirent *__d_dirent; - char *__d_dirname; /* directory name with trailing '*' */ - __off32_t __d_position; /* used by telldir/seekdir */ - unsigned long __d_dirhash; /* hash of directory name for use by - readdir */ - union - { -#ifdef _COMPILING_NEWLIB - struct - { - void *__handle; - void *__fh; - } __d_data; -#endif - char __d_filler[16]; - } __d_u; -} DIR; - -DIR *opendir (const char *); -struct dirent *readdir (DIR *); -void rewinddir (DIR *); -int closedir (DIR *); - -int dirfd (DIR *); - -#ifndef _POSIX_SOURCE -off_t telldir (DIR *); -void seekdir (DIR *, off_t loc); - -int scandir (const char *__dir, - struct dirent ***__namelist, - int (*select) (const struct dirent *), - int (*compar) (const struct dirent **, const struct dirent **)); - -int alphasort (const struct dirent **__a, const struct dirent **__b); -#endif /* _POSIX_SOURCE */ - -#endif diff --git a/newlib/libc/sys/cygwin/sys/param.h b/newlib/libc/sys/cygwin/sys/param.h deleted file mode 100644 index 09ef74ed9..000000000 --- a/newlib/libc/sys/cygwin/sys/param.h +++ /dev/null @@ -1,51 +0,0 @@ -/* sys/param.h - - Copyright 2001 Red Hat, Inc. - - This software is a copyrighted work licensed under the terms of the - Cygwin license. Please consult the file "CYGWIN_LICENSE" for - details. */ - -#ifndef _SYS_PARAM_H -#define _SYS_PARAM_H - -#include <sys/types.h> -/* Linux includes limits.h, but this is not universally done. */ -#include <limits.h> - -/* Max number of open files. The Posix version is OPEN_MAX. */ -/* Number of fds is virtually unlimited in cygwin, but we must provide - some reasonable value for Posix conformance */ -#define NOFILE 8192 - -/* Max number of groups; must keep in sync with NGROUPS_MAX in limits.h */ -#define NGROUPS 16 - -/* Ticks/second for system calls such as times() */ -/* FIXME: is this the appropriate value? */ -#define HZ 1000 - -/* Max hostname size that can be dealt with */ -/* FIXME: is this the appropriate value? */ -#define MAXHOSTNAMELEN 64 - -/* This is defined to be the same as MAX_PATH which is used internally. - The Posix version is PATH_MAX. */ -#define MAXPATHLEN (260 - 1 /*NUL*/) - -/* Some autoconf'd packages check for endianness. When cross-building we - can't run programs on the target. Fortunately, autoconf supports the - definition of byte order in sys/param.h (that's us!). - The values here are the same as used in gdb/defs.h (are the more - appropriate values?). */ -#define BIG_ENDIAN 4321 -#define LITTLE_ENDIAN 1234 - -/* All known win32 systems are little endian. */ -#define BYTE_ORDER LITTLE_ENDIAN - -#ifndef NULL -#define NULL 0L -#endif - -#endif diff --git a/newlib/libc/sys/cygwin/sys/utime.h b/newlib/libc/sys/cygwin/sys/utime.h deleted file mode 100644 index 5565b361d..000000000 --- a/newlib/libc/sys/cygwin/sys/utime.h +++ /dev/null @@ -1,30 +0,0 @@ -/* sys/utime.h - - Copyright 2001 Red Hat, Inc. - - This software is a copyrighted work licensed under the terms of the - Cygwin license. Please consult the file "CYGWIN_LICENSE" for - details. */ - -#ifndef _SYS_UTIME_H -#define _SYS_UTIME_H - -#ifdef __cplusplus -extern "C" { -#endif -#include <_ansi.h> -#include <sys/types.h> - -struct utimbuf -{ - time_t actime; - time_t modtime; -}; - -int _EXFUN(utime, (const char *__path, struct utimbuf *__buf)); - -#ifdef __cplusplus -}; -#endif - -#endif /* _SYS_UTIME_H */ diff --git a/newlib/libc/sys/cygwin/sys/utmp.h b/newlib/libc/sys/cygwin/sys/utmp.h deleted file mode 100644 index 494754bd6..000000000 --- a/newlib/libc/sys/cygwin/sys/utmp.h +++ /dev/null @@ -1,66 +0,0 @@ -/* sys/utmp.h - - Copyright 2001 Red Hat, Inc. - - This software is a copyrighted work licensed under the terms of the - Cygwin license. Please consult the file "CYGWIN_LICENSE" for - details. */ - -#ifndef UTMP_H -#define UTMP_H - -#include <sys/types.h> -#include <time.h> -#include <paths.h> - -#define UTMP_FILE _PATH_UTMP - -#ifdef __cplusplus -extern "C" { -#endif - -#define UT_LINESIZE 16 -#define UT_NAMESIZE 16 -#define UT_HOSTSIZE 256 -#define ut_name ut_user - -struct utmp -{ - short ut_type; - pid_t ut_pid; - char ut_line[UT_LINESIZE]; - char ut_id[2]; - time_t ut_time; - char ut_user[UT_NAMESIZE]; - char ut_host[UT_HOSTSIZE]; - long ut_addr; -}; - -#define RUN_LVL 1 -#define BOOT_TIME 2 -#define NEW_TIME 3 -#define OLD_TIME 4 - -#define INIT_PROCESS 5 -#define LOGIN_PROCESS 6 -#define USER_PROCESS 7 -#define DEAD_PROCESS 8 - -extern struct utmp *_getutline (struct utmp *); -extern struct utmp *getutent (void); -extern struct utmp *getutid (struct utmp *); -extern struct utmp *getutline (struct utmp *); -extern void endutent (void); -extern void pututline (struct utmp *); -extern void setutent (void); -extern void utmpname (const char *); - -void login (struct utmp *); -int logout (char *); -int login_tty (int); -void logwtmp (char *, char *, char *); - -#ifdef __cplusplus -} -#endif -#endif /* UTMP_H */ |