diff options
Diffstat (limited to 'gnu/lib/libg++/g++-include/sys')
-rw-r--r-- | gnu/lib/libg++/g++-include/sys/dir.h | 42 | ||||
-rw-r--r-- | gnu/lib/libg++/g++-include/sys/fcntl.h | 15 | ||||
-rw-r--r-- | gnu/lib/libg++/g++-include/sys/file.h | 28 | ||||
-rw-r--r-- | gnu/lib/libg++/g++-include/sys/mman.h | 14 | ||||
-rw-r--r-- | gnu/lib/libg++/g++-include/sys/param.h | 22 | ||||
-rw-r--r-- | gnu/lib/libg++/g++-include/sys/resource.h | 29 | ||||
-rw-r--r-- | gnu/lib/libg++/g++-include/sys/select.h | 8 | ||||
-rw-r--r-- | gnu/lib/libg++/g++-include/sys/signal.h | 37 | ||||
-rw-r--r-- | gnu/lib/libg++/g++-include/sys/socket.h | 63 | ||||
-rw-r--r-- | gnu/lib/libg++/g++-include/sys/stat.h | 47 | ||||
-rw-r--r-- | gnu/lib/libg++/g++-include/sys/time.h | 41 | ||||
-rw-r--r-- | gnu/lib/libg++/g++-include/sys/times.h | 20 | ||||
-rw-r--r-- | gnu/lib/libg++/g++-include/sys/types.h | 25 | ||||
-rw-r--r-- | gnu/lib/libg++/g++-include/sys/wait.h | 42 |
14 files changed, 0 insertions, 433 deletions
diff --git a/gnu/lib/libg++/g++-include/sys/dir.h b/gnu/lib/libg++/g++-include/sys/dir.h deleted file mode 100644 index 586867252a6c..000000000000 --- a/gnu/lib/libg++/g++-include/sys/dir.h +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef __libgxx_sys_dir_h - -extern "C" { - -#ifdef __sys_dir_h_recursive -#include_next <sys/dir.h> -#else -#define __sys_dir_h_recursive -#define opendir __hide_opendir -#define closedir __hide_closedir -#define readdir __hide_readdir -#define telldir __hide_telldir -#define seekdir __hide_seekdir - -#include_next <sys/dir.h> - -#define __libgxx_sys_dir_h -#undef opendir -#undef closedir -#undef readdir -#undef telldir -#undef seekdir - -DIR *opendir(const char *); -int closedir(DIR *); -#ifdef __dirent_h_recursive -// Some operating systems we won't mention (such as the imitation -// of Unix marketed by IBM) implement dirent.h by including sys/dir.h, -// in which case sys/dir.h defines struct dirent, rather than -// the struct direct originally used by BSD. -struct dirent *readdir(DIR *); -#else -struct direct *readdir(DIR *); -#endif -long telldir(DIR *); -void seekdir(DIR *, long); -// We don't bother with rewinddir (many systems define it as a macro). -// void rewinddir(DIR *); -#endif -} - -#endif diff --git a/gnu/lib/libg++/g++-include/sys/fcntl.h b/gnu/lib/libg++/g++-include/sys/fcntl.h deleted file mode 100644 index d4fdcfeddaaa..000000000000 --- a/gnu/lib/libg++/g++-include/sys/fcntl.h +++ /dev/null @@ -1,15 +0,0 @@ -#ifndef __libgxx_sys_fcntl_h - -extern "C" -{ -#ifdef __sys_fcntl_h_recursive -#include_next <sys/fcntl.h> -#else -#define __sys_fcntl_h_recursive -#include_next <sys/fcntl.h> -#define __libgxx_sys_fcntl_h 1 -#endif -} - - -#endif diff --git a/gnu/lib/libg++/g++-include/sys/file.h b/gnu/lib/libg++/g++-include/sys/file.h deleted file mode 100644 index 70b49c244a80..000000000000 --- a/gnu/lib/libg++/g++-include/sys/file.h +++ /dev/null @@ -1,28 +0,0 @@ -#ifndef __libgxx_sys_file_h - -extern "C" -{ -#ifdef __sys_file_h_recursive -#include_next <sys/file.h> -#else -#define fcntl __hide_fcntl -#define open __hide_open -#define creat __hide_creat - -#define __sys_file_h_recursive - -#ifdef VMS -#include "GNU_CC_INCLUDE:[sys]file.h" -#else -#include_next <sys/file.h> -#endif - -#undef fcntl -#undef open -#undef creat - -#define __libgxx_sys_file_h 1 - -#endif -} -#endif diff --git a/gnu/lib/libg++/g++-include/sys/mman.h b/gnu/lib/libg++/g++-include/sys/mman.h deleted file mode 100644 index c4b2e15793dc..000000000000 --- a/gnu/lib/libg++/g++-include/sys/mman.h +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef __libgxx_sys_mman_h - -extern "C" { -#ifdef __sys_mman_h_recursive -#include_next <sys/mman.h> -#else -#define __sys_mman_h_recursive -#include_next <sys/mman.h> - -#define __libgxx_sys_mman_h 1 -#endif -} - -#endif diff --git a/gnu/lib/libg++/g++-include/sys/param.h b/gnu/lib/libg++/g++-include/sys/param.h deleted file mode 100644 index 610a19b8f424..000000000000 --- a/gnu/lib/libg++/g++-include/sys/param.h +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef __libgxx_sys_param_h - -extern "C" -{ -#ifdef __sys_param_h_recursive -#include_next <sys/param.h> -#else -#define __sys_param_h_recursive - -#ifdef VMS -#include "GNU_CC_INCLUDE:[sys]param.h" -#else -#include_next <sys/param.h> -#endif - -#undef setbit /* Conflicts with Integer::setbit(). */ - -#define __libgxx_sys_param_h 1 -#endif -} - -#endif diff --git a/gnu/lib/libg++/g++-include/sys/resource.h b/gnu/lib/libg++/g++-include/sys/resource.h deleted file mode 100644 index 3596c1b3145c..000000000000 --- a/gnu/lib/libg++/g++-include/sys/resource.h +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef __libgxx_sys_resource_h - -extern "C" -{ -#ifdef __sys_resource_h_recursive -#include_next <sys/resource.h> -#else -#include <_G_config.h> -#define __sys_resource_h_recursive -#include <sys/time.h> - -#ifdef VMS -#include "GNU_CC_INCLUDE:[sys]resource.h" -#else -#include_next <sys/resource.h> -#endif - -#define __libgxx_sys_resource_h 1 - -int getrusage(int, struct rusage*); -int getrlimit (int resource, struct rlimit *rlp); -int setrlimit _G_ARGS((int resource, const struct rlimit *rlp)); -long ulimit(int, long); -int getpriority(int, int); -int setpriority(int, int, int); -#endif -} - -#endif diff --git a/gnu/lib/libg++/g++-include/sys/select.h b/gnu/lib/libg++/g++-include/sys/select.h deleted file mode 100644 index 1c80ffef05e3..000000000000 --- a/gnu/lib/libg++/g++-include/sys/select.h +++ /dev/null @@ -1,8 +0,0 @@ -/* Needed by Interviews for AIX. */ -#ifndef __libgxx_sys_select_h -extern "C" -{ -#include_next <sys/select.h> -#define __libgxx_sys_select_h 1 -} -#endif diff --git a/gnu/lib/libg++/g++-include/sys/signal.h b/gnu/lib/libg++/g++-include/sys/signal.h deleted file mode 100644 index 68212052ceac..000000000000 --- a/gnu/lib/libg++/g++-include/sys/signal.h +++ /dev/null @@ -1,37 +0,0 @@ -// This may look like C code, but it is really -*- C++ -*- -/* -Copyright (C) 1989 Free Software Foundation - written by Doug Lea (dl@rocky.oswego.edu) - -This file is part of the GNU C++ Library. This library is free -software; you can redistribute it and/or modify it under the terms of -the GNU Library General Public License as published by the Free -Software Foundation; either version 2 of the License, or (at your -option) any later version. This library is distributed in the hope -that it will be useful, but WITHOUT ANY WARRANTY; without even the -implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR -PURPOSE. See the GNU Library General Public License for more details. -You should have received a copy of the GNU Library General Public -License along with this library; if not, write to the Free Software -Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. -*/ - -/* Partly for systems that think signal.h is is sys/ */ -/* But note that some systems that use sys/signal.h to define signal.h. */ - -#ifndef __libgxx_sys_signal_h -#if defined(__sys_signal_h_recursive) || defined(__signal_h_recursive) -#include_next <sys/signal.h> -#else -#define __sys_signal_h_recursive - -extern "C" { -#define signal __hide_signal -#include_next <sys/signal.h> -#undef signal -} - -#define __libgxx_sys_signal_h 1 -#endif -#endif - diff --git a/gnu/lib/libg++/g++-include/sys/socket.h b/gnu/lib/libg++/g++-include/sys/socket.h deleted file mode 100644 index 5ff6018ccbf4..000000000000 --- a/gnu/lib/libg++/g++-include/sys/socket.h +++ /dev/null @@ -1,63 +0,0 @@ -#ifndef __libgxx_sys_socket_h - -#include <_G_config.h> - -extern "C" -{ -#ifdef __sys_socket_h_recursive -#include_next <sys/socket.h> -#else -#define __sys_socket_h_recursive -#include <time.h> - -#ifdef VMS -#include "GNU_CC_INCLUDE:[sys]socket.h" -#else -#include_next <sys/socket.h> -#endif - -#define __libgxx_sys_socket_h 1 - -// void* in select, since different systems use int* or fd_set* -int accept _G_ARGS((int, struct sockaddr*, int*)); -#ifndef __386BSD__ -int select _G_ARGS((int, void*, void*, void*, struct timeval*)); - -int bind _G_ARGS((int, const void*, int)); -int connect _G_ARGS((int, struct sockaddr*, int)); -#else -int select _G_ARGS((int, struct fd_set*, struct fd_set*, struct fd_set*, struct timeval*)); - -int bind _G_ARGS((int, const struct sockaddr *, int)); -int connect _G_ARGS((int, const struct sockaddr*, int)); -#endif -int getsockname _G_ARGS((int, struct sockaddr*, int*)); -int getpeername _G_ARGS((int, struct sockaddr*, int*)); -int getsockopt(int, int, int, void*, int*); -int listen(int, int); -#ifndef hpux -int rcmd _G_ARGS((char**, int, const char*, const char*, const char*, int*)); -#endif -int recv(int, void*, int, int); -int recvmsg(int, struct msghdr*, int); -int rexec(char**, int, const char*, const char*, const char*, int*); -int rresvport(int*); -int send _G_ARGS((int, const void*, int, int)); -int sendmsg _G_ARGS((int, const struct msghdr*, int)); -int shutdown(int, int); -int socket(int, int, int); -int socketpair(int, int, int, int sv[2]); - -#ifndef __386BSD__ -int recvfrom _G_ARGS((int, void*, int, int, void*, int *)); -int sendto _G_ARGS((int, const void*, int, int, void*, int)); -int setsockopt _G_ARGS((int, int, int, const char*, int)); -#else -int recvfrom _G_ARGS((int, void*, int, int, struct sockaddr*, int *)); -int sendto _G_ARGS((int, const void*, int, int, const struct sockaddr*, int)); -int setsockopt _G_ARGS((int, int, int, const void*, int)); -#endif -#endif -} - -#endif diff --git a/gnu/lib/libg++/g++-include/sys/stat.h b/gnu/lib/libg++/g++-include/sys/stat.h deleted file mode 100644 index cffe2a5e1d31..000000000000 --- a/gnu/lib/libg++/g++-include/sys/stat.h +++ /dev/null @@ -1,47 +0,0 @@ -#ifndef __libgxx_sys_stat_h - -extern "C" -{ -#ifdef __sys_stat_h_recursive -#include_next <sys/stat.h> -#else -#define __sys_stat_h_recursive -#include <_G_config.h> -#define chmod __hide_chmod -#ifdef VMS -#include "GNU_CC_INCLUDE:[sys]stat.h" -#else -#include_next <sys/stat.h> -#endif -#undef chmod - -#define __libgxx_sys_stat_h 1 - -extern int chmod _G_ARGS((const char*, _G_mode_t)); -extern int stat _G_ARGS((const char *path, struct stat *buf)); -extern int lstat _G_ARGS((const char *path, struct stat *buf)); -extern int fstat _G_ARGS((int fd, struct stat *buf)); - -#ifndef S_ISDIR -#define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) -#endif -#ifndef S_ISBLK -#define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK) -#endif -#ifndef S_ISCHR -#define S_ISCHR(mode) (((mode) & S_IFMT) == S_IFCHR) -#endif -#ifndef S_ISFIFO -#define S_ISFIFO(mode) (((mode) & S_IFMT) == S_IFFIFO) -#endif -#ifndef S_ISREG -#define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG) -#endif -#if !defined(S_ISLNK) && defined(S_IFLNK) -#define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK) -#endif - -#endif -} - -#endif diff --git a/gnu/lib/libg++/g++-include/sys/time.h b/gnu/lib/libg++/g++-include/sys/time.h deleted file mode 100644 index 81419b8c4814..000000000000 --- a/gnu/lib/libg++/g++-include/sys/time.h +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef __libgxx_sys_time_h - -extern "C" -{ -#ifdef __sys_time_h_recursive -#include_next <sys/time.h> -#else -#define __sys_time_h_recursive - -// Some system (e.g Ultrix) define these in sys/time.h. - -#ifndef __time_h_recursive -#define time __hide_time -#define clock __hide_clock -#define gmtime __hide_gmtime -#define localtime __hide_localtime -#define ctime __hide_ctime -#define asctime __hide_asctime -#define strftime __hide_strftime -#endif - -#ifdef VMS -#include "GNU_CC_INCLUDE:[sys]resourcetime.h" -#else -#include_next <sys/time.h> -#endif -#undef __sys_time_h_recursive - -#define __libgxx_sys_time_h 1 - -#undef clock -#undef ctime -#undef gmtime -#undef localtime -#undef time -#undef asctime -#undef strftime -#endif -} - -#endif diff --git a/gnu/lib/libg++/g++-include/sys/times.h b/gnu/lib/libg++/g++-include/sys/times.h deleted file mode 100644 index d026ca5258f0..000000000000 --- a/gnu/lib/libg++/g++-include/sys/times.h +++ /dev/null @@ -1,20 +0,0 @@ -#ifndef __libgxx_sys_times_h - -extern "C" -{ -#ifdef __sys_times_h_recursive -#include_next <sys/times.h> -#else -#define __sys_times_h_recursive -#include_next <sys/times.h> -#define __libgxx_sys_times_h 1 - -#include <_G_config.h> - -extern _G_clock_t times _G_ARGS((struct tms*)); - -#endif -} - - -#endif diff --git a/gnu/lib/libg++/g++-include/sys/types.h b/gnu/lib/libg++/g++-include/sys/types.h deleted file mode 100644 index 67f4d316b5ea..000000000000 --- a/gnu/lib/libg++/g++-include/sys/types.h +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef __libgxx_sys_types_h - -extern "C" -{ -#ifdef __sys_types_h_recursive -#include_next <sys/types.h> -#else - -#define __sys_types_h_recursive -#include <stddef.h> - -#ifdef VMS -#include "GNU_CC_INCLUDE:[sys]types.h" -#else -#include_next <sys/types.h> -#endif - -#define __libgxx_sys_types_h 1 - -#endif -} - - -#endif - diff --git a/gnu/lib/libg++/g++-include/sys/wait.h b/gnu/lib/libg++/g++-include/sys/wait.h deleted file mode 100644 index e6e4e31924e9..000000000000 --- a/gnu/lib/libg++/g++-include/sys/wait.h +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef __libgxx_sys_wait_h - -#include <_G_config.h> - -extern "C" { -#ifdef __sys_wait_h_recursive -#include_next <sys/wait.h> -#else -#define __sys_wait_h_recursive - - -#if _G_HAVE_SYS_WAIT -#ifdef VMS -#include "GNU_CC_INCLUDE:[sys]wait.h" -#else -#include_next <sys/wait.h> -#endif -#else /* !_G_HAVE_SYS_WAIT */ -/* Traditional definitions. */ -#define WEXITSTATUS(status) (((x) >> 8) & 0xFF) -#define WIFSTOPPED(x) (((x) & 0xFF) == 0177) -#define WIFEXITED(x) (! WIFSTOPPED(x) && WTERMSIG(x) == 0) -#define WIFSIGNALED(x) (! WIFSTOPPED(x) && WTERMSIG(x) != 0) -#define WTERMSIG(status) ((x) & 0x7F) -#define WSTOPSIG(status) (((x) >> 8) & 0xFF) -#endif /* !_G_HAVE_SYS_WAIT */ - -#define __libgxx_sys_wait_h 1 - -struct rusage; -extern _G_pid_t wait _G_ARGS((int*)); -extern _G_pid_t waitpid _G_ARGS((_G_pid_t, int*, int)); -extern _G_pid_t wait3 _G_ARGS((int*, int options, struct rusage*)); -#ifndef __386BSD__ -extern _G_pid_t wait4 _G_ARGS((int, int*, int, struct rusage*)); -#else -extern _G_pid_t wait4 _G_ARGS((_G_pid_t, int*, int, struct rusage*)); -#endif -#endif -} - -#endif |