Update docs. Rearrange includes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11957 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 2002-01-02 21:01:26 +00:00
parent 2a7cd1989c
commit 15cbe22642
13 changed files with 649 additions and 3014 deletions

View file

@ -50,16 +50,45 @@
#ifdef __FreeBSD__
#include <fcntl.h>
#endif
#ifndef __MINGW__
#include <sys/signal.h>
#include <sys/param.h>
#include <sys/wait.h>
#endif
#if HAVE_WINDOWS_H
# include <windows.h>
#endif
#if HAVE_SYS_SIGNAL_H
#include <sys/signal.h>
#endif
#if HAVE_SIGNAL_H
#include <signal.h>
#endif
#if HAVE_SYS_FILE_H
#include <sys/file.h>
#endif
#if HAVE_SYS_FCNTL_H
#include <sys/fcntl.h>
#endif
#if HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
#endif
#if HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif
#if HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
/*
* If we are on a streams based system, we need to include stropts.h
* for definitions needed to set up slave pseudo-terminal stream.
*/
#if HAVE_SYS_STROPTS_H
#include <sys/stropts.h>
#endif
#ifndef MAX_OPEN
#define MAX_OPEN 64
#endif
/*
* If we don't have NFILE, default to 256 open descriptors.
*/
@ -97,34 +126,6 @@ static void handleSignal(int sig)
@end
#define NSConcreteTask NSConcreteUnixTask
#if HAVE_SIGNAL_H
#include <signal.h>
#endif
#if HAVE_SYS_FILE_H
#include <sys/file.h>
#endif
#if HAVE_SYS_FCNTL_H
#include <sys/fcntl.h>
#endif
#if HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
#endif
#if HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif
/*
* If we are on a streams based system, we need to include stropts.h
* for definitions needed to set up slave pseudo-terminal stream.
*/
#if HAVE_SYS_STROPTS_H
#include <sys/stropts.h>
#endif
#ifndef MAX_OPEN
#define MAX_OPEN 64
#endif
static int
pty_master(char* name, int len)
{