home *** CD-ROM | disk | FTP | other *** search
- head 14020.14;
- access;
- symbols
- ORIGINAL:14020.13;
- locks; strict;
- comment @ * @;
-
-
- 14020.14
- date 93.10.10.20.03.06; author alph; state Exp;
- branches;
- next 14020.13;
-
- 14020.13
- date 93.06.21.06.42.11; author alph; state Exp;
- branches;
- next ;
-
-
- desc
- @Original version
- @
-
-
- 14020.14
- log
- @amigados changes
- @
- text
- @/* Sys.h
- * See the README for details.
- */
-
- /* $RCSfile: sys.h,v $
- * $Revision: 1.1 $
- * $Date: 1993/10/02 10:34:34 $
- */
-
- #ifdef amigados
- # ifdef __SASC
- # /* raw amiga port by Carsten Heyl, 10/93 */
- # /* amiga sockets are not included within stdio */
- # include <s_socket.h>
- # define NO_FORK
- # define NO_POPEN
- # define NO_GETPWUID /* FIXME */
- # define NO_PWSTUFF
- # define NO_GETPID
- # define NO_UTIME
- # /* the compiler does not like defined(const) test */
- # define HAS_CONST
- # define HAS_SELECT_PROTO
- # define USE_TMPNAM
- # define USE_GETCWD
- # define HAS_GETCWD_PROTO
- # define NEED_TIME_T
- # define HOME_DIR "s:"
- # define TMP_NAME t:ncftpXXXXXX
- # define System "AmigaOS"
- void sleep(unsigned int ul);
- # define h_errno errno
- # define dLOGNAME "t:.ftplog"
- # define dRECENTF "s:.nrecent"
- # else
- # error only SASC/AmiTCP supported
- # endif
- #endif
-
- #ifdef SVR4
- # define System "System V.4"
- # ifndef SYSV
- # define SYSV 1
- # endif
- # define VOID void
- # ifndef HERROR
- # define HERROR 1
- # endif
- # ifdef TERMH
- # define TERMH 1
- # endif
- # define Gettimeofday gettimeofday
- # include <sys/types.h>
- #endif /* SVR4 */
-
- #ifdef __sun
- # ifndef sun
- # define sun 1
- # endif
- #endif
-
- #ifdef sun
- # if !defined(__GNUC__) && !defined(__STDC__) && !defined(SunOverride)
- ^^^ "You need to use an ANSI C compiler. Try using gcc or acc." ^^^
- # endif
- # define System "SunOS"
- # ifndef RINDEX
- # define RINDEX 1
- # endif
- # ifndef TERMIOS
- # define TERMIOS 1
- # endif
- # ifndef HAS_DOMAINNAME
- # define HAS_DOMAINNAME 1
- # endif
- #endif /* sun */
-
- #ifdef __sgi
- # ifndef sgi
- # define sgi 1
- # endif
- #endif
-
- #ifdef sgi
- # define System "IRIX"
- # ifndef SYSV
- # define SYSV 1
- # endif
- # ifndef HERROR
- # define HERROR 1
- # endif
- # ifndef U_WAIT
- # define U_WAIT 1
- # endif
- # ifndef STRICT_PROTOS
- # define STRICT_PROTOS 1
- # endif
- # ifndef TERMIOS
- # define TERMIOS 1
- # endif
- #endif /* sgi */
-
- #ifdef _AIX
- # define System "AIX"
- # define SYSSELECTH 1
- #endif /* _AIX */
-
- #ifdef SCOXNX
- # define System "SCO Xenix"
- # define LAI_TCP
- # define NO_UTIMEH
- # define NO_MKTIME
- # define NO_STRFTIME
- # define NO_STRSTR
- # define NO_RENAME
- # define SYSV 1
- #endif /* SCOXNX */
-
- #ifdef SCO322
- # define System "SCO Unix 3.2v2"
- # define BOTCHED_FOPEN_RW
- # define NO_RENAME /* it exists, but it corrupts filesystems */
- # define BROKEN_MEMCPY 1
- # define SYSV 1
- #endif /* SCO322 */
-
- #ifdef SCO324
- # define System "SCO Unix 3.2v4"
- # ifndef SYSV
- # define SYSV 1
- # endif
- # ifndef BROKEN_MEMCPY
- # define BROKEN_MEMCPY 1
- # endif
- #endif /* SCO324 */
-
- #ifdef aux
- # define System "A/UX"
- # ifndef BROKEN_MEMCPY
- # define BROKEN_MEMCPY 1
- # endif
- # ifndef SYSV
- # define SYSV 1
- # endif
- #endif
-
- #ifdef NeXT
- # define System "NeXTStep"
- # ifndef RINDEX
- # define RINDEX 1
- # endif
- # ifndef BSD
- # define BSD 1
- # endif
- # ifndef NO_UNISTDH
- # define NO_UNISTDH 1
- # endif
- # ifndef NO_UTIMEH
- # define NO_UTIMEH
- # endif
- #endif
-
- #ifdef pyr
- # define System "OSx"
- # ifndef BSD
- # define BSD 1
- # endif
- # ifndef SGTTYB
- # define SGTTYB 1
- # endif
- # ifndef NO_STDLIBH
- # define NO_STDLIBH 1
- # endif
- # include <sys/types.h>
- extern int errno;
- #endif /* pyr */
-
- #ifdef DYNIX
- # define System "Dynix"
- # ifndef BSD
- # define BSD 1
- # endif
- # ifndef SGTTYB
- # define SGTTYB 1
- # endif
- # ifndef NO_UTIMEH
- # define NO_UTIMEH 1
- # endif
- # ifndef NO_STDLIBH
- # define NO_STDLIBH 1
- # endif
- # ifndef NO_VARARGS
- # define NO_VARARGS 1
- # endif
- # include <sys/types.h>
- #endif /* DYNIX */
-
- #ifdef ultrix
- # define System "Ultrix"
- # ifndef BSD
- # define BSD 1
- # endif
- # ifndef __GNUC__
- # ifndef NO_CONST
- # define NO_CONST 1
- # endif
- # endif
- #endif /* ultrix */
-
- #ifdef __hpux
- # ifndef HPUX
- # define HPUX 1
- # endif
- # define Select(a,b,c,d,e) select((a), (int *)(b), (c), (d), (e))
- #endif
-
- #ifdef HPUX
- # define System "HP-UX"
- # ifndef _HPUX_SOURCE
- # define _HPUX_SOURCE 1
- # endif
- # ifndef GETCWDSIZET
- # define GETCWDSIZET 1
- # endif
- # define SYSV 1
- #endif /* HPUX */
-
- #ifdef SINIX
- # define System "SINIX"
- # ifndef SYSV
- # define SYSV 1
- # endif
- /* You may need to add -lresolv, -lport, -lcurses to MORELIBS in Makefile. */
- #endif
-
- #ifdef BULL /* added 23nov92 for Bull DPX/2 */
- # define _POSIX_SOURCE
- # define _XOPEN_SOURCE
- # define _BULL_SOURCE
- # ifndef SYSV
- # define SYSV 1
- # endif
- # define bull
- # define System "Bull DPX/2 BOS"
- # include <sys/types.h>
- # define SYSSELECTH
- #endif /* BULL */ /* added 23nov92 for Bull DPX/2 */
-
- #ifdef __dgux
- # ifndef DGUX
- # define DGUX 1
- # endif
- #endif
-
- #ifdef DGUX
- # ifndef _DGUX_SOURCE
- # define _DGUX_SOURCE
- # endif
- # define GETCWDSIZET 1
- # define BAD_INETADDR 1
- # define SYSV 1
- # define System "DG/UX"
- #endif /* DGUX */
-
- #ifdef apollo
- # ifndef BSD
- # define BSD 43
- # endif
- # define SIG_PARAMS (int sig, ...)
- # define NO_UTIMEH 1
- # define System "Apollo"
- #endif
-
- /* -------------------------------------------------------------------- */
-
- #ifdef _SYSV
- # ifndef SYSV
- # define SYSV 1
- # endif
- #endif
-
- #ifdef USG
- # ifndef SYSV
- # define SYSV 1
- # endif
- #endif
-
- #ifdef _BSD
- # ifndef BSD
- # define BSD 1
- # endif
- #endif
-
- #ifdef SYSV
- # ifndef RINDEX
- # define RINDEX 1
- # endif
- # define bcopy(s,d,l) memcpy((d),(s),(l))
- #ifdef __386BSD__
- # define TERMIOS
- # ifndef BSD
- # define BSD
- # endif
- #endif
-
- # define bzero(cp,l) memset((cp),0,(l))
- #endif
-
- #ifdef BSD
- # ifndef __386BSD__
- # ifndef SYSDIRH
- # define SYSDIRH 1
- # endif
- # ifndef SGTTYB
- # define SGTTYB
- # endif
- # endif
- # ifndef SGTTYB
- # define SGTTYB
- # endif
- # ifndef RINDEX
- # define RINDEX 1
- # endif
- #endif
-
- /*
- * Generic pointer type, e.g. as returned by malloc().
- */
- #ifndef PTRTYPE
- # define PTRTYPE void
- #endif
-
- #ifndef Free
- # define Free(a) free((PTRTYPE *)(a))
- #endif
-
- /*
- * Some systems besides System V don't use rindex/index (like SunOS).
- * Add -DRINDEX to your SDEFS line if you need to.
- */
- #ifdef RINDEX
- /* or #include <strings.h> if you have it. */
- # define rindex strrchr
- # define index strchr
- #endif /* RINDEX */
-
- #ifdef SOCKS
- #define Getsockname(d,a,l) Rgetsockname((d), (struct sockaddr *)(a), (l))
- #else
- #ifdef SYSV
- # define Getsockname(d,a,l) getsockname((d), (void *)(a), (l))
- #else
- # define Getsockname(d,a,l) getsockname((d), (struct sockaddr *)(a), (l))
- #endif
- #endif
-
- #ifndef Select
- # define Select(a,b,c,d,e) select((a), (b), (c), (d), (e))
- #endif
-
- #ifndef Connect
- #ifndef SVR4
- # define Connect(a,b,c) (connect((a), (struct sockaddr *)(b), (int)(c)))
- # define Bind(a,b,c) (bind((a), (struct sockaddr *)(b), (int)(c)))
- # define Accept(a,b,c) (accept((a), (struct sockaddr *)(b), (int *)(c)))
- #else /* SVR4 */
- # define Connect(a,b,c) (connect((a), (addr_t)(b), (int)(c)))
- # define Bind(a,b,c) (bind((a), (caddr_t)(b), (int)(c)))
- # define Accept(a,b,c) (accept((a), (caddr_t)(b), (int *)(c)))
- #endif /* SVR4 */
- #endif /* Connect */
-
- #ifndef Gettimeofday
- # define Gettimeofday(a) gettimeofday(a, (struct timezone *)0)
- #endif /* Gettimeofday */
-
- #ifdef GETPASS
- # define Getpass getpass
- #endif
-
- /* Enable connections through firewall gateways */
- #ifndef GATEWAY
- # define GATEWAY 1
- #endif
-
- #ifdef _POSIX_SOURCE
- # define TERMIOS
- #endif
-
- #include <stdio.h>
- #ifndef NO_STDLIBH
- # include <stdlib.h>
- #else
- extern PTRTYPE *malloc(size_t);
- extern PTRTYPE *calloc(size_t, size_t);
- extern PTRTYPE *malloc(size_t);
- extern void free(PTRTYPE *);
- extern PTRTYPE *realloc(PTRTYPE *, size_t);
- extern void exit(int);
-
- #ifdef NO_CONST
- extern char *getenv(char *);
- extern int atoi(char *);
- #else
- extern char *getenv(const char *);
- extern int atoi(const char *);
- #endif
-
- #endif /* NO_STDLIBH */
-
- #ifdef NO_UNISTDH
- char *getlogin (void);
- #ifdef NO_CONST
- extern char *getenv(char *);
- #else
- extern char *getenv(const char *);
- #endif
- #endif /* NO_UNISTDH */
-
- #ifdef NO_STD_PROTOS
- #include <sys/time.h>
- #include <sys/types.h>
- #include <sys/socket.h>
- #include <time.h>
- extern int _filbuf(FILE *);
- extern int _flsbuf(int, FILE *);
- extern int fflush(FILE *);
- extern int fprintf(FILE *, char *, ...);
- extern int fputc(int, FILE *);
- extern int fputs(char *, FILE *);
- extern int fclose(FILE *);
- extern int pclose(FILE *);
- extern void perror(char *);
- extern int printf(char *, ...);
- extern int rewind(FILE *);
- extern int sscanf(char *, char *, ...);
-
- extern char * mktemp(char *);
- extern int rename(char *, char *);
-
- extern int gettimeofday(struct timeval *, struct timezone *);
- extern time_t mktime(struct tm *);
- extern int strftime(char *, int, char *, struct tm *);
- extern time_t time(time_t *);
-
- extern int tolower(int);
-
- #ifndef bcopy
- extern void bcopy(char *, char *, size_t);
- #endif
- #ifndef bzero
- extern void bzero(char *, size_t);
- #endif
-
- #ifdef SOCKS
- extern int Raccept(int, struct sockaddr *, int *);
- extern int Rbind(int, struct sockaddr *, int, unsigned long);
- extern int Rconnect(int, struct sockaddr *, int);
- extern int Rlisten(int, int);
- extern int Rgetsockname(int, struct sockaddr *, int *);
- #else
- extern int accept(int, struct sockaddr *, int *);
- extern int bind(int, struct sockaddr *, int);
- extern int connect(int, struct sockaddr *, int);
- extern int listen(int, int);
- extern int getsockname(int, struct sockaddr *, int *);
- #endif
- extern int gethostname(char *, int), getdomainname(char *, int);
- extern int select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
- extern int send(int, char *, int, int);
- extern int setsockopt(int, int, int, char *, int);
- extern int shutdown(int, int);
- extern int socket(int, int, int);
- #endif /* NO_STD_PROTOS */
-
- /* eof sys.h */
- @
-
-
- 14020.13
- log
- @checked in with -k by alph at 1993/10/10 19:59:56
- @
- text
- @d6 2
- a7 2
- * $Revision: 14020.13 $
- * $Date: 93/06/21 06:42:11 $
- d9 30
- @
-