Commit 498cf2ba authored by unknown's avatar unknown

Deleted files in MIT-pthreads that had wrong copyright


BitKeeper/deleted/.del-__math.h~f3855eb411435a06:
  Delete: mit-pthreads/machdep/sco-3.2v5/__math.h
BitKeeper/deleted/.del-__signal.h~3d6f84e96bc1462:
  Delete: mit-pthreads/machdep/sco-3.2v5/__signal.h
BitKeeper/deleted/.del-__stdio.h~b991fad3327275e0:
  Delete: mit-pthreads/machdep/sco-3.2v5/__stdio.h
BitKeeper/deleted/.del-__stdlib.h~6179a0922d90025e:
  Delete: mit-pthreads/machdep/sco-3.2v5/__stdlib.h
BitKeeper/deleted/.del-__string.h~d2cc42eeb5e1666:
  Delete: mit-pthreads/machdep/sco-3.2v5/__string.h
BitKeeper/deleted/.del-__math.h~79d9a37715f2c7fe:
  Delete: mit-pthreads/machdep/i386-sco-3.2v5/__math.h
BitKeeper/deleted/.del-__signal.h~45332b2a56f62580:
  Delete: mit-pthreads/machdep/i386-sco-3.2v5/__signal.h
BitKeeper/deleted/.del-__signal.h~5e14827a3b91a6db:
  Delete: mit-pthreads/machdep/sco-3.2v5/posix/__signal.h
BitKeeper/deleted/.del-__signal.h~9bb7b240bec88b2d:
  Delete: mit-pthreads/machdep/i386-sco-3.2v5/posix/__signal.h
BitKeeper/deleted/.del-__stdio.h~a81562134446c64c:
  Delete: mit-pthreads/machdep/i386-sco-3.2v5/__stdio.h
BitKeeper/deleted/.del-__stdlib.h~bcbed6d62d1885ae:
  Delete: mit-pthreads/machdep/i386-sco-3.2v5/__stdlib.h
BitKeeper/deleted/.del-__string.h~94a2e4f9574bf1e8:
  Delete: mit-pthreads/machdep/i386-sco-3.2v5/__string.h
BitKeeper/deleted/.del-__time.h~2cde57d8feea7fc8:
  Delete: mit-pthreads/machdep/i386-sco-3.2v5/__time.h
BitKeeper/deleted/.del-__time.h~a9594bab280ced64:
  Delete: mit-pthreads/machdep/sco-3.2v5/__time.h
BitKeeper/deleted/.del-__unistd.h~5cc4575b5a74066f:
  Delete: mit-pthreads/machdep/i386-sco-3.2v5/__unistd.h
BitKeeper/deleted/.del-__unistd.h~99e6f1116d1f920:
  Delete: mit-pthreads/machdep/sco-3.2v5/__unistd.h
BitKeeper/deleted/.del-compat.h~1f7e450a2e18603e:
  Delete: mit-pthreads/machdep/i386-sco-3.2v5/compat.h
BitKeeper/deleted/.del-compat.h~3f150ff6223d49be:
  Delete: mit-pthreads/machdep/sco-3.2v5/compat.h
BitKeeper/deleted/.del-dirent.h~13608bf11af98f70:
  Delete: mit-pthreads/machdep/i386-sco-3.2v5/dirent.h
BitKeeper/deleted/.del-dirent.h~388af3465ad4680f:
  Delete: mit-pthreads/machdep/sco-3.2v5/dirent.h
BitKeeper/deleted/.del-socket.h~1b409f3f1fcbbf7a:
  Delete: mit-pthreads/machdep/sco-3.2v5/socket.h
BitKeeper/deleted/.del-socket.h~9f78f7e5a7b4a83f:
  Delete: mit-pthreads/machdep/i386-sco-3.2v5/socket.h
BitKeeper/deleted/.del-syscall.h~c69bd58eba4d5076:
  Delete: mit-pthreads/machdep/sco-3.2v5/syscall.h
BitKeeper/deleted/.del-syscall.h~d9543a0474656339:
  Delete: mit-pthreads/machdep/i386-sco-3.2v5/syscall.h
BitKeeper/deleted/.del-timers.h~4907a958151368ed:
  Delete: mit-pthreads/machdep/sco-3.2v5/timers.h
BitKeeper/deleted/.del-timers.h~d5e694e48990538c:
  Delete: mit-pthreads/machdep/i386-sco-3.2v5/timers.h
BitKeeper/deleted/.del-trash.can~7eecac9fc944ade2:
  Delete: mit-pthreads/machdep/sco-3.2v5/trash.can
BitKeeper/deleted/.del-trash.can~9332039abd82a925:
  Delete: mit-pthreads/machdep/i386-sco-3.2v5/trash.can
mit-pthreads/Changes-mysql:
  Added list of deleted files (copyright problem)
parent 64cc5612
Changes done to this distrubtion (pthreads-1_60_beta6) by Monty (monty@tcx.se)
Changes done to this distrubtion (pthreads-1_60_beta6) by Monty (monty@mysql.com)
02.04.26
- removed the following files because of copyright problems
machdep/i386-sco-3.2v5/__signal.h
machdep/i386-sco-3.2v5/__stdio.h
machdep/i386-sco-3.2v5/__stdlib.h
machdep/i386-sco-3.2v5/__string.h
machdep/i386-sco-3.2v5/__time.h
machdep/i386-sco-3.2v5/__unistd.h
machdep/i386-sco-3.2v5/compat.h
machdep/i386-sco-3.2v5/dirent.h
machdep/i386-sco-3.2v5/posix/__signal.h
machdep/i386-sco-3.2v5/socket.h
machdep/i386-sco-3.2v5/syscall.h
machdep/i386-sco-3.2v5/timers.h
machdep/i386-sco-3.2v5/trash.can
machdep/sco-3.2v5/__math.h
machdep/sco-3.2v5/__signal.h
machdep/sco-3.2v5/__stdio.h
machdep/sco-3.2v5/__stdlib.h
machdep/sco-3.2v5/__string.h
machdep/sco-3.2v5/__time.h
machdep/sco-3.2v5/__unistd.h
machdep/sco-3.2v5/compat.h
machdep/sco-3.2v5/dirent.h
machdep/sco-3.2v5/posix/__signal.h
machdep/sco-3.2v5/socket.h
machdep/sco-3.2v5/syscall.h
machdep/sco-3.2v5/timers.h
machdep/sco-3.2v5/trash.can
93.04.01
- socket() didn't return NOTOK (-1) on error.
......
/* Copyright 1994-1995 The Santa Cruz Operation, Inc. All Rights Reserved. */
#if defined(_NO_PROTOTYPE) /* Old, crufty environment */
#include <oldstyle/__math.h>
#elif defined(_XOPEN_SOURCE) || defined(_XPG4_VERS) /* Xpg4 environment */
#include <xpg4/__math.h>
#elif defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) /* Posix environment */
#include <posix/__math.h>
#elif _STRICT_ANSI /* Pure Ansi/ISO environment */
#include <ansi/__math.h>
#elif defined(_SCO_ODS_30) /* Old, Tbird compatible environment */
#include <ods_30_compat/__math.h>
#else /* Normal, default environment */
/*
* Portions Copyright (C) 1983-1995 The Santa Cruz Operation, Inc.
* All Rights Reserved.
*
* The information in this file is provided for the exclusive use of
* the licensees of The Santa Cruz Operation, Inc. Such users have the
* right to use, modify, and incorporate this code into other products
* for purposes authorized by the license agreement provided they include
* this notice and the associated copyright notice with any such product.
* The information in this file is provided "AS IS" without warranty.
*/
/* Portions Copyright (c) 1990, 1991, 1992, 1993 UNIX System Laboratories, Inc. */
/* Portions Copyright (c) 1979 - 1990 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */
/* UNIX System Laboratories, Inc. */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ifndef ___MATH_H
#define ___MATH_H
#pragma comment(exestr, "xpg4plus @(#) math.h 20.1 94/12/04 ")
#pragma pack(4)
#ifdef __cplusplus
extern "C" {
#endif
extern double acos(double);
extern double asin(double);
extern double atan(double);
extern double atan2(double, double);
extern double cos(double);
extern double sin(double);
extern double tan(double);
extern double cosh(double);
extern double sinh(double);
extern double tanh(double);
extern double exp(double);
extern double frexp(double, int *);
extern double ldexp(double, int);
extern double log(double);
extern double log10(double);
extern double modf(double, double *);
extern double pow(double, double);
extern double sqrt(double);
extern double ceil(double);
extern double fabs(double);
extern double floor(double);
extern double fmod(double, double);
#ifndef HUGE_VAL
extern const double __huge_val;
#define HUGE_VAL (+__huge_val)
#endif
extern double erf(double);
extern double erfc(double);
extern double gamma(double);
extern double hypot(double, double);
extern double j0(double);
extern double j1(double);
extern double jn(int, double);
extern double y0(double);
extern double y1(double);
extern double yn(int, double);
extern double lgamma(double);
extern int isnan(double);
#define MAXFLOAT ((float)3.40282346638528860e+38)
#define HUGE MAXFLOAT
/*
* The following are all legal as XPG4 external functions but must only
* be declared in the non standards environments as they conflict with
* the user name space
*/
extern long double frexpl(long double, int *);
extern long double ldexpl(long double, int);
extern long double modfl(long double, long double *);
extern float acosf(float);
extern float asinf(float);
extern float atanf(float);
extern float atan2f(float, float);
extern float cosf(float);
extern float sinf(float);
extern float tanf(float);
extern float coshf(float);
extern float sinhf(float);
extern float tanhf(float);
extern float expf(float);
extern float logf(float);
extern float log10f(float);
extern float powf(float, float);
extern float sqrtf(float);
extern float ceilf(float);
extern float fabsf(float);
extern float floorf(float);
extern float fmodf(float, float);
extern float modff(float, float *);
/* These are all extensions from XPG4 */
extern double atof(const char *);
extern double scalb(double, double);
extern double logb(double);
extern double log1p(double);
extern double nextafter(double, double);
extern double acosh(double);
extern double asinh(double);
extern double atanh(double);
extern double cbrt(double);
extern double copysign(double, double);
extern double expm1(double);
extern int ilogb(double);
extern double remainder(double, double);
extern double rint(double);
extern int unordered(double, double);
extern int finite(double);
extern long double scalbl(long double, long double);
extern long double logbl(long double);
extern long double nextafterl(long double, long double);
extern int unorderedl(long double, long double);
extern int finitel(long double);
extern int signgam;
#define M_E 2.7182818284590452354
#define M_LOG2E 1.4426950408889634074
#define M_LOG10E 0.43429448190325182765
#define M_LN2 0.69314718055994530942
#define M_LN10 2.30258509299404568402
#define M_PI 3.14159265358979323846
#define M_PI_2 1.57079632679489661923
#define M_PI_4 0.78539816339744830962
#define M_1_PI 0.31830988618379067154
#define M_2_PI 0.63661977236758134308
#define M_2_SQRTPI 1.12837916709551257390
#define M_SQRT2 1.41421356237309504880
#define M_SQRT1_2 0.70710678118654752440
#define _ABS(x) ((x) < 0 ? -(x) : (x))
#define _REDUCE(TYPE, X, XN, C1, C2) { \
double x1 = (double)(TYPE)X, x2 = X - x1; \
X = x1 - (XN) * (C1); X += x2; X -= (XN) * (C2); }
#define DOMAIN 1
#define SING 2
#define OVERFLOW 3
#define UNDERFLOW 4
#define TLOSS 5
#define PLOSS 6
#define _POLY1(x, c) ((c)[0] * (x) + (c)[1])
#define _POLY2(x, c) (_POLY1((x), (c)) * (x) + (c)[2])
#define _POLY3(x, c) (_POLY2((x), (c)) * (x) + (c)[3])
#define _POLY4(x, c) (_POLY3((x), (c)) * (x) + (c)[4])
#define _POLY5(x, c) (_POLY4((x), (c)) * (x) + (c)[5])
#define _POLY6(x, c) (_POLY5((x), (c)) * (x) + (c)[6])
#define _POLY7(x, c) (_POLY6((x), (c)) * (x) + (c)[7])
#define _POLY8(x, c) (_POLY7((x), (c)) * (x) + (c)[8])
#define _POLY9(x, c) (_POLY8((x), (c)) * (x) + (c)[9])
#ifdef __cplusplus
}
inline int sqr(int i) {return(i*i);}
inline double sqr(double i) {return(i*i);}
#endif /* __cplusplus */
#pragma pack()
#if __cplusplus && !defined(PI)
#define PI M_PI
#endif /* __cplusplus */
#endif /* _MATH_H */
#endif
/* Copyright 1994-1995 The Santa Cruz Operation, Inc. All Rights Reserved. */
#if defined(_NO_PROTOTYPE) /* Old, crufty environment */
#include <sys/oldstyle/signal.h>
#elif defined(_XOPEN_SOURCE) || defined(_XPG4_VERS) /* Xpg4 environment */
#include <xpg4/signal.h>
#elif defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) /* Posix environment */
#include <sys/posix/__signal.h>
#elif _STRICT_ANSI /* Pure Ansi/ISO environment */
#include <sys/ansi/signal.h>
#elif defined(_SCO_ODS_30) /* Old, Tbird compatible environment */
#include <sys/ods_30_compat/signal.h>
#else /* Normal, default environment */
/*
* Portions Copyright (C) 1983-1995 The Santa Cruz Operation, Inc.
* All Rights Reserved.
*
* The information in this file is provided for the exclusive use of
* the licensees of The Santa Cruz Operation, Inc. Such users have the
* right to use, modify, and incorporate this code into other products
* for purposes authorized by the license agreement provided they include
* this notice and the associated copyright notice with any such product.
* The information in this file is provided "AS IS" without warranty.
*/
/* Portions Copyright (c) 1990, 1991, 1992, 1993 UNIX System Laboratories, Inc. */
/* Portions Copyright (c) 1979 - 1990 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */
/* UNIX System Laboratories, Inc. */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ifndef ___SIGNAL_H
#define ___SIGNAL_H
#pragma comment(exestr, "xpg4plus @(#) signal.h 20.3 94/12/19 ")
#ifndef _SIG_ATOMIC_T
#define _SIG_ATOMIC_T
/* atomic entity for signal handling */
typedef int sig_atomic_t;
#endif
extern const char * const _sys_siglist[];
extern const int _sys_nsig;
#ifndef _SYS_SIGNAL_H
#include <sys/signal.h>
#endif
#define SignalBad ((SignalHandler)-1)
#define SignalDefault ((SignalHandler)0)
#define SignalIgnore ((SignalHandler)1)
#define __sigmask(sig) (1 << ((sig) - 1))
#define __SIGEMPTYSET (~SIGALL)
#define __SIGFILLSET SIGALL
#define __SIGADDSET(s,n) ((*s) |= (__sigmask(n)))
#define __SIGDELSET(s,n) ((*s) &= ~(__sigmask(n)))
#define __SIGISMEMBER(s,n) ((*s) & (__sigmask(n)))
#if !defined(_SYS_TYPES_H)
#include <sys/types.h>
#endif
#if __cplusplus
extern "C" {
#endif
extern void (*signal(int, void(*)(int)))(int);
extern int raise(int);
extern void (*bsd_signal(int, void(*)(int)))(int);
extern int ( *ssignal( int, int(*)(int) ) )(int);
extern void ( *sigset( int, void(*)(int) ) )(int);
extern int killpg(pid_t, int);
#ifdef SS_ONSTACK /* Not defined on old versions of the OS */
extern int sigaltstack(const stack_t *, stack_t *);
extern int sigstack(struct sigstack *, struct sigstack *);
#endif
extern int sighold(int);
extern int sigignore(int);
extern int siginterrupt(int, int);
extern int sigpause(int);
extern int sigrelse(int);
extern int (sigfillset)(sigset_t *);
extern int (sigemptyset)(sigset_t *);
extern int (sigaddset)(sigset_t *, int);
extern int (sigdelset)(sigset_t *, int);
extern int (sigismember)(const sigset_t *, int);
extern int sigpending(sigset_t *);
extern int sigsuspend(const sigset_t *);
extern int sigprocmask(int, const sigset_t *, sigset_t *);
extern int kill(pid_t, int);
extern int sigaction(int, const struct sigaction *, struct sigaction *);
#if __cplusplus
};
#endif
#endif /* ___SIGNAL_H */
#endif
/* Copyright 1994-1995 The Santa Cruz Operation, Inc. All Rights Reserved. */
#if defined(_NO_PROTOTYPE) /* Old, crufty environment */
#include <oldstyle/__stdio.h>
#elif defined(_XOPEN_SOURCE) || defined(_XPG4_VERS) /* Xpg4 environment */
#include <xpg4/__stdio.h>
#elif defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) /* Posix environment */
#include <posix/__stdio.h>
#elif _STRICT_ANSI /* Pure Ansi/ISO environment */
#include <ansi/__stdio.h>
#elif defined(_SCO_ODS_30) /* Old, Tbird compatible environment */
#include <ods_30_compat/__stdio.h>
#else /* Normal, default environment */
/*
* Portions Copyright (C) 1984-1995 The Santa Cruz Operation, Inc.
* All Rights Reserved.
*
* The information in this file is provided for the exclusive use of
* the licensees of The Santa Cruz Operation, Inc. Such users have the
* right to use, modify, and incorporate this code into other products
* for purposes authorized by the license agreement provided they include
* this notice and the associated copyright notice with any such product.
* The information in this file is provided "AS IS" without warranty.
*/
/* Portions Copyright (c) 1990, 1991, 1992, 1993 UNIX System Laboratories, Inc. */
/* Portions Copyright (c) 1979 - 1990 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */
/* UNIX System Laboratories, Inc. */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ifndef ___STDIO_H
#define ___STDIO_H
#pragma comment(exestr, "xpg4plus @(#) stdio.h 20.1 94/12/04 ")
#pragma pack(4)
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _SIZE_T
#define _SIZE_T
typedef unsigned int size_t;
#endif
#ifndef _FPOS_T
#define _FPOS_T
typedef long fpos_t;
#endif
#ifndef _WCHAR_T
#define _WCHAR_T
typedef long wchar_t;
#endif
#ifndef _WINT_T
#define _WINT_T
typedef long wint_t;
#endif
#ifndef NULL
#define NULL 0
#endif /* NULL */
#ifndef EOF
#define EOF (-1)
#endif
#define SEEK_SET 0
#define SEEK_CUR 1
#define SEEK_END 2
#ifndef TMP_MAX
#define TMP_MAX 17576 /* 26 * 26 * 26 */
#endif
#define BUFSIZ 1024 /* default buffer size */
#define _IOEOF 0020 /* EOF reached on read */
#define _IOERR 0040 /* I/O error from system */
#define _IOREAD 0001 /* currently reading */
#define _IOWRT 0002 /* currently writing */
#define _IORW 0200 /* opened for reading and writing */
#define _IOMYBUF 0010 /* stdio malloc()'d buffer */
#define _SBFSIZ 8
#define L_cuserid 9
/* Non name space polluting version of above */
#define _P_tmpdir "/usr/tmp/"
#ifndef _VA_LIST
#define _VA_LIST char *
#endif
#ifdef __cplusplus
}
#endif
#pragma pack()
#endif /* ___STDIO_H */
#endif
/*
* Copyright (C) 1984-1995 The Santa Cruz Operation, Inc.
* All Rights Reserved.
*
* The information in this file is provided for the exclusive use of
* the licensees of The Santa Cruz Operation, Inc. Such users have the
* right to use, modify, and incorporate this code into other products
* for purposes authorized by the license agreement provided they include
* this notice and the associated copyright notice with any such product.
* The information in this file is provided "AS IS" without warranty.
*/
/* Portions Copyright (c) 1990, 1991, 1992, 1993 UNIX System Laboratories, Inc. */
/* Portions Copyright (c) 1979 - 1990 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */
/* UNIX System Laboratories, Inc. */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ifndef ___STDLIB_H
#define ___STDLIB_H
#pragma comment(exestr, "posix @(#) stdlib.h 20.1 94/12/04 ")
#ifdef __cplusplus
extern "C" {
#endif
#pragma pack(4)
#ifndef _DIV_T
#define _DIV_T
typedef struct
{
int quot;
int rem;
} div_t;
#endif
#ifndef _LDIV_T
#define _LDIV_T
typedef struct
{
long quot;
long rem;
} ldiv_t;
#endif
#ifndef _SIZE_T
#define _SIZE_T
typedef unsigned int size_t;
#endif
#if !defined(_SSIZE_T)
#define _SSIZE_T
typedef int ssize_t;
#endif
#ifndef _WCHAR_T
#define _WCHAR_T
typedef long wchar_t;
#endif
#ifndef NULL
#define NULL 0
#endif /* NULL */
#define EXIT_FAILURE 1
#define EXIT_SUCCESS 0
#define RAND_MAX 077777
extern unsigned char __ctype[];
#define MB_CUR_MAX ((int)__ctype[520])
extern double atof(const char *);
extern int atoi(const char *);
extern long atol(const char *);
extern double strtod(const char *, char **);
extern float strtof(const char *, char **);
extern long strtol(const char *, char **, int);
extern unsigned long strtoul(const char *, char **, int);
extern int rand(void);
extern void srand(unsigned int);
extern void *calloc(size_t, size_t);
extern void free(void *);
extern void *malloc(size_t);
extern void *realloc(void *, size_t);
extern void abort(void);
extern void exit(int);
extern char *getenv(const char *);
extern int system(const char *);
extern void *bsearch(const void *, const void *, size_t, size_t,
int (*)(const void *, const void *));
extern void qsort(void *, size_t, size_t,
int (*)(const void *, const void *));
#ifdef __cplusplus
#ifndef _ABS_INL
#define _ABS_INL
inline int (abs)(int i) {return (i > 0) ? i : -i;}
#endif
#else
extern int (abs)(int); /* Protect from macro definitions */
#endif
extern div_t div(int, int);
extern long labs(long);
extern ldiv_t ldiv(long, long);
extern int mbtowc(wchar_t *, const char *, size_t);
extern int mblen(const char *, size_t);
extern int wctomb(char *, wchar_t);
extern size_t mbstowcs(wchar_t *, const char *, size_t);
extern size_t wcstombs(char *, const wchar_t *, size_t);
#define mblen(s, n) mbtowc((wchar_t *)0, s, n)
#ifdef __cplusplus
}
#endif
#pragma pack()
#endif /* ___STDLIB_H */
/* Copyright 1994-1995 The Santa Cruz Operation, Inc. All Rights Reserved. */
#if defined(_NO_PROTOTYPE) /* Old, crufty environment */
#include <oldstyle/string.h>
#elif defined(_XOPEN_SOURCE) || defined(_XPG4_VERS) /* Xpg4 environment */
#include <xpg4/string.h>
#elif defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) /* Posix environment */
#include <posix/string.h>
#elif _STRICT_ANSI /* Pure Ansi/ISO environment */
#include <ansi/string.h>
#elif defined(_SCO_ODS_30) /* Old, Tbird compatible environment */
#include <ods_30_compat/string.h>
#else /* Normal, default environment */
/*
* Portions Copyright (C) 1983-1995 The Santa Cruz Operation, Inc.
* All Rights Reserved.
*
* The information in this file is provided for the exclusive use of
* the licensees of The Santa Cruz Operation, Inc. Such users have the
* right to use, modify, and incorporate this code into other products
* for purposes authorized by the license agreement provided they include
* this notice and the associated copyright notice with any such product.
* The information in this file is provided "AS IS" without warranty.
*/
/* Portions Copyright (c) 1990, 1991, 1992, 1993 UNIX System Laboratories, Inc. */
/* Portions Copyright (c) 1979 - 1990 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */
/* UNIX System Laboratories, Inc. */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ifndef ___STRING_H
#define ___STRING_H
#pragma comment(exestr, "xpg4plus @(#) string.h 20.1 94/12/04 ")
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _SIZE_T
#define _SIZE_T
typedef unsigned int size_t;
#endif
#ifndef NULL
#define NULL 0
#endif /* NULL */
extern void *memchr(const void *, int, size_t);
extern void *memcpy(void *, const void *, size_t);
extern void *memccpy(void *, const void *, int, size_t);
extern void *memmove(void *, const void *, size_t);
extern void *memset(void *, int, size_t);
extern char *strchr(const char *, int);
extern char *strcpy(char *, const char *);
extern char *strncpy(char *, const char *, size_t);
extern char *strcat(char *, const char *);
extern char *strncat(char *, const char *, size_t);
extern char *strpbrk(const char *, const char *);
extern char *strrchr(const char *, int);
extern char *strstr(const char *, const char *);
extern char *strtok(char *, const char *);
extern char *strtok_r(char *, const char *, char **);
extern char *strerror(int);
extern char *strlist(char *, const char *, ...);
extern int memcmp(const void *, const void *, size_t);
extern int strcmp(const char *, const char *);
extern int strcoll(const char *, const char *);
extern int strncmp(const char *, const char *, size_t);
extern void perror(const char *);
extern char *strdup(const char *);
extern int strncoll(const char *, const char *, int);
extern size_t strnxfrm(char *, const char *, size_t , int);
extern size_t strxfrm(char *, const char *, size_t);
extern size_t strcspn(const char *, const char *);
extern size_t strspn(const char *, const char *);
extern size_t strlen(const char *);
#ifdef __USLC__
#pragma int_to_unsigned strcspn
#pragma int_to_unsigned strspn
#pragma int_to_unsigned strlen
#endif
#if !defined(__cplusplus) && defined(__USLC__)
/* Use intrinsic ??? */
#ifndef strlen
#define strlen __std_hdr_strlen
#endif
#ifndef strcpy
#define strcpy __std_hdr_strcpy
#endif
#ifndef strncpy
#define strncpy __std_hdr_strncpy
#endif
#endif
extern int ffs(int);
/*
* The following two functions were withdrawn in XPG3,
* but are provided for backwards compatibility.
*/
extern int nl_strcmp(char *, char *);
extern int nl_strncmp(char *, char *, int n);
#ifdef __cplusplus
}
#endif
#endif /* ___STRING_H */
#endif
/* Copyright 1994-1995 The Santa Cruz Operation, Inc. All Rights Reserved. */
#if defined(_NO_PROTOTYPE) /* Old, crufty environment */
#include <oldstyle/time.h>
#elif defined(_XOPEN_SOURCE) || defined(_XPG4_VERS) /* Xpg4 environment */
#include <xpg4/time.h>
#elif defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) /* Posix environment */
#include <posix/time.h>
#elif _STRICT_ANSI /* Pure Ansi/ISO environment */
#include <ansi/time.h>
#elif defined(_SCO_ODS_30) /* Old, Tbird compatible environment */
#include <ods_30_compat/time.h>
#else /* Normal, default environment */
/*
* Portions Copyright (C) 1983-1995 The Santa Cruz Operation, Inc.
* All Rights Reserved.
*
* The information in this file is provided for the exclusive use of
* the licensees of The Santa Cruz Operation, Inc. Such users have the
* right to use, modify, and incorporate this code into other products
* for purposes authorized by the license agreement provided they include
* this notice and the associated copyright notice with any such product.
* The information in this file is provided "AS IS" without warranty.
*/
/* Portions Copyright (c) 1990, 1991, 1992, 1993 UNIX System Laboratories, Inc. */
/* Portions Copyright (c) 1979 - 1990 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */
/* UNIX System Laboratories, Inc. */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ifndef ___TIME_H
#define ___TIME_H
#pragma comment(exestr, "xpg4plus @(#) time.h 20.2 95/01/04 ")
#ifdef __cplusplus
extern "C" {
#endif
#ifndef NULL
#define NULL 0
#endif /* NULL */
#ifndef _SIZE_T
#define _SIZE_T
typedef unsigned int size_t;
#endif
#ifndef _CLOCK_T
#define _CLOCK_T
typedef long clock_t;
#endif
#ifndef _TIME_T
#define _TIME_T
typedef long time_t;
#endif
#ifdef _POSIXTIMERS
#include <sys/sudstime.h>
#endif
#define CLOCKS_PER_SEC 1000000 /* As required by XPG4 and friends */
#pragma pack(4)
#ifndef _STRUCT_TM
#define _STRUCT_TM
struct tm
{
int tm_sec;
int tm_min;
int tm_hour;
int tm_mday;
int tm_mon;
int tm_year;
int tm_wday;
int tm_yday;
int tm_isdst;
#define LTZNMAX 50
long tm_tzadj;
char tm_name[LTZNMAX]; /* name of timezone */
};
#pragma pack()
#endif /* _STRUCT_TM */
extern clock_t clock(void);
extern double difftime(time_t, time_t);
extern time_t mktime(struct tm *);
extern time_t time(time_t *);
extern char *asctime(const struct tm *);
extern char *ctime (const time_t *);
extern struct tm *gmtime(const time_t *);
extern struct tm *localtime(const time_t *);
extern size_t strftime(char *, size_t, const char *, const struct tm *);
extern void tzset(void);
extern char *tzname[];
#ifndef CLK_TCK
#define CLK_TCK _sysconf(2) /* 2 is _SC_CLK_TCK */
#endif
extern long timezone;
extern int daylight;
extern char *strptime(const char *, const char *, struct tm *);
#include <sys/timeb.h>
extern int ftime ( struct timeb * );
extern char * nl_cxtime( long *, char * );
extern char * nl_ascxtime( struct tm *, char * );
extern int cftime(char *, const char *, const time_t *);
extern int ascftime(char *, const char *, const struct tm *);
extern long altzone;
extern struct tm *getdate(const char *);
extern int getdate_err;
extern char *asctime_r(const struct tm *, char *,int);
extern char *ctime_r(const time_t *, char *,int);
extern struct tm *localtime_r(const time_t *, struct tm *);
extern struct tm *gmtime_r(const time_t *, struct tm *);
#ifdef __cplusplus
}
#endif
#ifndef difftime
#define difftime(t1, t0) ((double)((t1) - (t0)))
#endif
#endif /* ___TIME_H */
#endif
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the University of
* California, Berkeley and its contributors.
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* from: @(#)stdlib.h 5.13 (Berkeley) 6/4/91
* __unistd.h,v 1.1 1995/01/03 12:54:54 proven Exp
*/
#ifndef ___UNISTD_H_
#define ___UNISTD_H_
#include <sys/types.h>
#include <stddef.h>
#ifndef MAXPATHLEN
#define MAXPATHLEN 1024
#endif
#endif
/* ==== compat.h ============================================================
* Copyright (c) 1994 by Chris Provenzano, proven@mit.edu
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by Chris Provenzano.
* 4. The name of Chris Provenzano may not be used to endorse or promote
* products derived from this software without specific prior written
* permission.
*
* THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* compat.h,v 1.52 1995/10/20 09:32:56 proven Exp
*
* Description : Basic timers header.
*
* 1.00 94/06/13 proven
* -Started coding this file.
*/
#ifndef _SYS_COMPAT_H_
#define _SYS_COMPAT_H_
#include <sys/types.h>
#define omsghdr msghdr
#endif
/* Copyright 1994-1995 The Santa Cruz Operation, Inc. All Rights Reserved. */
#if defined(_NO_PROTOTYPE) /* Old, crufty environment */
#include <oldstyle/dirent.h>
#elif defined(_XOPEN_SOURCE) || defined(_XPG4_VERS) /* Xpg4 environment */
#include <xpg4/dirent.h>
#elif defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) /* Posix environment */
#include <posix/dirent.h>
#elif defined(_SCO_ODS_30) /* Old, Tbird compatible environment */
#include <ods_30_compat/dirent.h>
#else /* Normal, default environment */
/*
* Portions Copyright (C) 1983-1995 The Santa Cruz Operation, Inc.
* All Rights Reserved.
*
* The information in this file is provided for the exclusive use of
* the licensees of The Santa Cruz Operation, Inc. Such users have the
* right to use, modify, and incorporate this code into other products
* for purposes authorized by the license agreement provided they include
* this notice and the associated copyright notice with any such product.
* The information in this file is provided "AS IS" without warranty.
*/
/* Portions Copyright (c) 1990, 1991, 1992, 1993 UNIX System Laboratories, Inc. */
/* Portions Copyright (c) 1979 - 1990 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */
/* UNIX System Laboratories, Inc. */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ifndef _DIRENT_H
#define _DIRENT_H
#pragma comment(exestr, "xpg4plus @(#) dirent.h 20.1 94/12/04 ")
#ifdef __cplusplus
extern "C" {
#endif
#pragma pack(4)
#define MAXNAMLEN 512 /* maximum filename length */
#ifndef MAXPATHLEN
#define MAXPATHLEN 1024
#endif
#undef DIRBLKSIZ
#define DIRBLKSIZ 1048 /* buffer size for fs-indep. dirs */
#ifndef _SYS_TYPES_H
#include <sys/types.h>
#endif
#ifndef _SYS_DIRENT_H
#define _SYS_DIRENT_H
#ifdef __STDC__
#pragma comment(exestr, "@(#) dirent.h 25.8 94/09/22 ")
#else
#ident "@(#) dirent.h 25.8 94/09/22 "
#endif
/*
* Copyright (C) 1988-1994 The Santa Cruz Operation, Inc.
* All Rights Reserved.
* The information in this file is provided for the exclusive use of
* the licensees of The Santa Cruz Operation, Inc. Such users have the
* right to use, modify, and incorporate this code into other products
* for purposes authorized by the license agreement provided they include
* this notice and the associated copyright notice with any such product.
* The information in this file is provided "AS IS" without warranty.
*/
/* Copyright (c) 1984, 1986, 1987, 1988 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
/* #ident "@)#(head.sys:dirent.h 1.3" */
/*
* The following structure defines the file
* system independent directory entry.
*
*/
#include <sys/types.h>
#ifdef _M_I386
#pragma pack(4)
#else
#pragma pack(2)
#endif
#ifdef _INKERNEL
/*
* dirent used by the kernel
*/
struct dirent {
ino32_t d_ino; /* inode number of entry */
off_t d_off; /* offset of disk directory entry */
unsigned short d_reclen; /* length of this record */
char d_name[MAXNAMLEN+1]; /* name of file */
};
#else /* !_INKERNEL */
/*
* dirent as used by application code
* For now leave the declaration as is. When the new development system
* is implemented, ino_t may be ushort or ulong. If ino_t is ulong, there
* will be no d_pad field.
*/
struct dirent /* data from readdir() */
{
#if defined(_IBCS2)
long d_ino;
#else /* !_IBCS2 */
ino_t d_ino; /* inode number of entry */
#if defined(_INO_16_T)
short d_pad; /* because ino_t is ushort */
#endif /* defined(_INO_16_T) */
#endif /* defined(_IBCS2) */
off_t d_off; /* offset of disk directory entry */
unsigned short d_reclen; /* length of this record */
char d_name[MAXNAMLEN+1]; /* name of file */
};
#endif /* _INKERNEL */
typedef struct dirent dirent_t;
#pragma pack()
#endif /* _SYS_DIRENT_H */
#define d_fileno d_ino
#define d_namlen d_reclen
#ifdef __cplusplus
}
#endif
#pragma pack()
#endif /* _DIRENT_H */
#endif
/*
* Portions Copyright (C) 1983-1995 The Santa Cruz Operation, Inc.
* All Rights Reserved.
*
* The information in this file is provided for the exclusive use of
* the licensees of The Santa Cruz Operation, Inc. Such users have the
* right to use, modify, and incorporate this code into other products
* for purposes authorized by the license agreement provided they include
* this notice and the associated copyright notice with any such product.
* The information in this file is provided "AS IS" without warranty.
*/
/* Portions Copyright (c) 1990, 1991, 1992, 1993 UNIX System Laboratories, Inc. */
/* Portions Copyright (c) 1979 - 1990 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */
/* UNIX System Laboratories, Inc. */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ifndef ___SIGNAL_H
#define ___SIGNAL_H
#pragma comment(exestr, "posix @(#) signal.h 20.3 94/12/19 ")
#ifndef _SIG_ATOMIC_T
#define _SIG_ATOMIC_T
/* atomic entity for signal handling */
typedef int sig_atomic_t;
#endif
#ifndef _SYS_SIGNAL_H
#include <sys/signal.h>
#endif
#if !defined(_SYS_TYPES_H)
#include <sys/types.h>
#endif
#if __cplusplus
extern "C" {
#endif
extern void (*signal(int, void(*)(int)))(int);
extern int raise(int);
extern int (sigfillset)(sigset_t *);
extern int (sigemptyset)(sigset_t *);
extern int (sigaddset)(sigset_t *, int);
extern int (sigdelset)(sigset_t *, int);
extern int (sigismember)(const sigset_t *, int);
extern int sigpending(sigset_t *);
extern int sigsuspend(const sigset_t *);
extern int sigprocmask(int, const sigset_t *, sigset_t *);
extern int kill(pid_t, int);
extern int sigaction(int, const struct sigaction *, struct sigaction *);
#if __cplusplus
};
#endif
#endif /* ___SIGNAL_H */
This diff is collapsed.
/* Copyright 1994-1995 The Santa Cruz Operation, Inc. All Rights Reserved. */
#if defined(_NO_PROTOTYPE) /* Old, crufty environment */
#include <oldstyle/syscall.h>
#elif defined(_SCO_ODS_30) /* Old, Tbird compatible environment */
#include <ods_30_compat/syscall.h>
#else /* Normal, default environment */
/*
/ Portions Copyright (C) 1983-1995 The Santa Cruz Operation, Inc.
* All Rights Reserved.
*
* The information in this file is provided for the exclusive use of
* the licensees of The Santa Cruz Operation, Inc. Such users have the
* right to use, modify, and incorporate this code into other products
* for purposes authorized by the license agreement provided they include
* this notice and the associated copyright notice with any such product.
* The information in this file is provided "AS IS" without warranty.
*/
/* Portions Copyright (c) 1990, 1991, 1992, 1993 UNIX System Laboratories, Inc. */
/* Portions Copyright (c) 1979 - 1990 AT&T */
#ident "xpg4plus @(#) sys.i386 20.1 94/12/04 "
/* #ident "xpg4plus @(#)head:sys.i386 1.2" */
/*
/* Definitions of Kernel Entry Call Gates
*/
#ifndef _SYSCALL_H_
#define _SYSCALL_H_
/*#define SYSCALL $0x7,$0*/
/*#define SIGCALL $0xF,$0*/
/*
/* Definitions of System Call Entry Point Numbers
*/
#define SYS_access 33
#define SYS_acct 51
#define SYS_advfs 70
#define SYS_alarm 27
#define SYS_break 17
#define SYS_brk 17
#define SYS_chdir 12
#define SYS_chmod 15
#define SYS_chown 16
#define SYS_chroot 61
#define SYS_close 6
#define SYS_creat 8
#define SYS_dup 41
#define SYS_exec 11
#define SYS_execve 59
#define SYS_exit 1
#define SYS_fcntl 62
#define SYS_fork 2
#define SYS_fstat 28
#define SYS_fstatfs 38
#define SYS_fxstat 125
#define SYS_getdents 81
#define SYS_getgid 47
#define SYS_getmsg 85
#define SYS_getpid 20
#define SYS_gettimeofday 171
#define SYS_getuid 24
#define SYS_gtty 32
#define SYS_ioctl 54
#define SYS_kill 37
#define SYS_link 9
#define SYS_lock 45
#define SYS_lseek 19
#define SYS_lstat 91
#define SYS_lxstat 124
#define SYS_mkdir 80
#define SYS_mknod 14
#define SYS_mount 21
#define SYS_msgsys 49
#define SYS_nice 34
#define SYS_open 5
#define SYS_pause 29
#define SYS_pipe 42
#define SYS_plock 45
#define SYS_poll 87
#define SYS_prof 44
#define SYS_ptrace 26
#define SYS_putmsg 86
#define SYS_rdebug 76
#define SYS_read 3
#define SYS_readlink 92
#define SYS_readv 121
#define SYS_rfstart 74
#define SYS_rfstop 77
#define SYS_rfsys 78
#define SYS_rmdir 79
#define SYS_rmount 72
#define SYS_rumount 73
#define SYS_seek 19
#define SYS_semsys 53
#define SYS_setgid 46
#define SYS_setpgrp 39
#define SYS_settimeofday 172
#define SYS_setuid 23
#define SYS_shmsys 52
#define SYS_signal 48
#define SYS_stat 18
#define SYS_statfs 35
#define SYS_stime 25
#define SYS_stty 31
#define SYS_symlink 90
#define SYS_sync 36
#define SYS_sys3b 50
#define SYS_sysi86 50
#define SYS_sysacct 51
#define SYS_sysfs 84
#define SYS_time 13
#define SYS_times 43
#define SYS_uadmin 55
#define SYS_ulimit 63
#define SYS_umask 60
#define SYS_umount 22
#define SYS_unadvfs 71
#define SYS_unlink 10
#define SYS_utime 30
#define SYS_utssys 57
#define SYS_wait 7
#define SYS_write 4
#define SYS_writev 122
#define SYS_xstat 123
#define SYS_ftruncate 192
/* cxenix numbers are created by the formula
* (table index << 8) + CXENIX
*/
#define CXENIX 0x28 /* Decimal 40 */
#define XLOCKING 0x0128
#define CREATSEM 0x0228
#define OPENSEM 0x0328
#define SIGSEM 0x0428
#define WAITSEM 0x0528
#define NBWAITSEM 0x0628
#define RDCHK 0x0728
#define CHSIZE 0x0a28
#define SYS_ftime 0x0b28
#define NAP 0x0c28
#define SDGET 0x0d28
#define SDFREE 0x0e28
#define SDENTER 0x0f28
#define SDLEAVE 0x1028
#define SDGETV 0x1128
#define SDWAITV 0x1228
#define PROCTL 0x2028
#define EXECSEG 0x2128
#define UNEXECSEG 0x2228
#define SYS_select 0x2428
#define SYS_eaccess 0x2528
#define SYS_paccess 0x2628
#define SYS_sigaction 0x2728
#define SYS_sigprocmask 0x2828
#define SYS_sigpending 0x2928
#define SYS_sigsuspend 0x2a28
#define SYS_getgroups 0x2b28
#define SYS_setgroups 0x2c28
#define SYS_sysconf 0x2d28
#define SYS_pathconf 0x2e28
#define SYS_fpathconf 0x2f28
#define SYS_rename 0x3028
#define SYS_setitimer 0x3828
#define CLOCAL 127
#endif
#endif
/* ==== timers.h ============================================================
* Copyright (c) 1994 by Chris Provenzano, proven@mit.edu
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by Chris Provenzano.
* 4. The name of Chris Provenzano may not be used to endorse or promote
* products derived from this software without specific prior written
* permission.
*
* THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* timers.h,v 1.50.8.1 1996/03/05 08:28:36 proven Exp
*
* Description : Basic timers header.
*
* 1.00 94/06/13 proven
* -Started coding this file.
*/
#ifndef _SYS_TIMERS_H_
#define _SYS_TIMERS_H_
#include <sys/types.h>
#include <time.h>
struct timespec {
long tv_sec;
long tv_nsec;
};
#define TIMEVAL_TO_TIMESPEC(tv, ts) { \
(ts)->tv_sec = (tv)->tv_sec; \
(ts)->tv_nsec = (tv)->tv_usec * 1000; \
}
#define TIMESPEC_TO_TIMEVAL(tv, ts) { \
(tv)->tv_sec = (ts)->tv_sec; \
(tv)->tv_usec = (ts)->tv_nsec / 1000; \
}
/*
* New functions
*/
__BEGIN_DECLS
__END_DECLS
#endif
make: *** No targets specified and no makefile found. Stop.
/* Copyright 1994-1995 The Santa Cruz Operation, Inc. All Rights Reserved. */
#if defined(_NO_PROTOTYPE) /* Old, crufty environment */
#include <oldstyle/__math.h>
#elif defined(_XOPEN_SOURCE) || defined(_XPG4_VERS) /* Xpg4 environment */
#include <xpg4/__math.h>
#elif defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) /* Posix environment */
#include <posix/__math.h>
#elif _STRICT_ANSI /* Pure Ansi/ISO environment */
#include <ansi/__math.h>
#elif defined(_SCO_ODS_30) /* Old, Tbird compatible environment */
#include <ods_30_compat/__math.h>
#else /* Normal, default environment */
/*
* Portions Copyright (C) 1983-1995 The Santa Cruz Operation, Inc.
* All Rights Reserved.
*
* The information in this file is provided for the exclusive use of
* the licensees of The Santa Cruz Operation, Inc. Such users have the
* right to use, modify, and incorporate this code into other products
* for purposes authorized by the license agreement provided they include
* this notice and the associated copyright notice with any such product.
* The information in this file is provided "AS IS" without warranty.
*/
/* Portions Copyright (c) 1990, 1991, 1992, 1993 UNIX System Laboratories, Inc. */
/* Portions Copyright (c) 1979 - 1990 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */
/* UNIX System Laboratories, Inc. */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ifndef ___MATH_H
#define ___MATH_H
#pragma comment(exestr, "xpg4plus @(#) math.h 20.1 94/12/04 ")
#pragma pack(4)
#ifdef __cplusplus
extern "C" {
#endif
extern double acos(double);
extern double asin(double);
extern double atan(double);
extern double atan2(double, double);
extern double cos(double);
extern double sin(double);
extern double tan(double);
extern double cosh(double);
extern double sinh(double);
extern double tanh(double);
extern double exp(double);
extern double frexp(double, int *);
extern double ldexp(double, int);
extern double log(double);
extern double log10(double);
extern double modf(double, double *);
extern double pow(double, double);
extern double sqrt(double);
extern double ceil(double);
extern double fabs(double);
extern double floor(double);
extern double fmod(double, double);
#ifndef HUGE_VAL
extern const double __huge_val;
#define HUGE_VAL (+__huge_val)
#endif
extern double erf(double);
extern double erfc(double);
extern double gamma(double);
extern double hypot(double, double);
extern double j0(double);
extern double j1(double);
extern double jn(int, double);
extern double y0(double);
extern double y1(double);
extern double yn(int, double);
extern double lgamma(double);
extern int isnan(double);
#define MAXFLOAT ((float)3.40282346638528860e+38)
#define HUGE MAXFLOAT
/*
* The following are all legal as XPG4 external functions but must only
* be declared in the non standards environments as they conflict with
* the user name space
*/
extern long double frexpl(long double, int *);
extern long double ldexpl(long double, int);
extern long double modfl(long double, long double *);
extern float acosf(float);
extern float asinf(float);
extern float atanf(float);
extern float atan2f(float, float);
extern float cosf(float);
extern float sinf(float);
extern float tanf(float);
extern float coshf(float);
extern float sinhf(float);
extern float tanhf(float);
extern float expf(float);
extern float logf(float);
extern float log10f(float);
extern float powf(float, float);
extern float sqrtf(float);
extern float ceilf(float);
extern float fabsf(float);
extern float floorf(float);
extern float fmodf(float, float);
extern float modff(float, float *);
/* These are all extensions from XPG4 */
extern double atof(const char *);
extern double scalb(double, double);
extern double logb(double);
extern double log1p(double);
extern double nextafter(double, double);
extern double acosh(double);
extern double asinh(double);
extern double atanh(double);
extern double cbrt(double);
extern double copysign(double, double);
extern double expm1(double);
extern int ilogb(double);
extern double remainder(double, double);
extern double rint(double);
extern int unordered(double, double);
extern int finite(double);
extern long double scalbl(long double, long double);
extern long double logbl(long double);
extern long double nextafterl(long double, long double);
extern int unorderedl(long double, long double);
extern int finitel(long double);
extern int signgam;
#define M_E 2.7182818284590452354
#define M_LOG2E 1.4426950408889634074
#define M_LOG10E 0.43429448190325182765
#define M_LN2 0.69314718055994530942
#define M_LN10 2.30258509299404568402
#define M_PI 3.14159265358979323846
#define M_PI_2 1.57079632679489661923
#define M_PI_4 0.78539816339744830962
#define M_1_PI 0.31830988618379067154
#define M_2_PI 0.63661977236758134308
#define M_2_SQRTPI 1.12837916709551257390
#define M_SQRT2 1.41421356237309504880
#define M_SQRT1_2 0.70710678118654752440
#define _ABS(x) ((x) < 0 ? -(x) : (x))
#define _REDUCE(TYPE, X, XN, C1, C2) { \
double x1 = (double)(TYPE)X, x2 = X - x1; \
X = x1 - (XN) * (C1); X += x2; X -= (XN) * (C2); }
#define DOMAIN 1
#define SING 2
#define OVERFLOW 3
#define UNDERFLOW 4
#define TLOSS 5
#define PLOSS 6
#define _POLY1(x, c) ((c)[0] * (x) + (c)[1])
#define _POLY2(x, c) (_POLY1((x), (c)) * (x) + (c)[2])
#define _POLY3(x, c) (_POLY2((x), (c)) * (x) + (c)[3])
#define _POLY4(x, c) (_POLY3((x), (c)) * (x) + (c)[4])
#define _POLY5(x, c) (_POLY4((x), (c)) * (x) + (c)[5])
#define _POLY6(x, c) (_POLY5((x), (c)) * (x) + (c)[6])
#define _POLY7(x, c) (_POLY6((x), (c)) * (x) + (c)[7])
#define _POLY8(x, c) (_POLY7((x), (c)) * (x) + (c)[8])
#define _POLY9(x, c) (_POLY8((x), (c)) * (x) + (c)[9])
#ifdef __cplusplus
}
inline int sqr(int i) {return(i*i);}
inline double sqr(double i) {return(i*i);}
#endif /* __cplusplus */
#pragma pack()
#if __cplusplus && !defined(PI)
#define PI M_PI
#endif /* __cplusplus */
#endif /* _MATH_H */
#endif
/* Copyright 1994-1995 The Santa Cruz Operation, Inc. All Rights Reserved. */
#if defined(_NO_PROTOTYPE) /* Old, crufty environment */
#include <sys/oldstyle/signal.h>
#elif defined(_XOPEN_SOURCE) || defined(_XPG4_VERS) /* Xpg4 environment */
#include <xpg4/signal.h>
#elif defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) /* Posix environment */
#include <sys/posix/__signal.h>
#elif _STRICT_ANSI /* Pure Ansi/ISO environment */
#include <sys/ansi/signal.h>
#elif defined(_SCO_ODS_30) /* Old, Tbird compatible environment */
#include <sys/ods_30_compat/signal.h>
#else /* Normal, default environment */
/*
* Portions Copyright (C) 1983-1995 The Santa Cruz Operation, Inc.
* All Rights Reserved.
*
* The information in this file is provided for the exclusive use of
* the licensees of The Santa Cruz Operation, Inc. Such users have the
* right to use, modify, and incorporate this code into other products
* for purposes authorized by the license agreement provided they include
* this notice and the associated copyright notice with any such product.
* The information in this file is provided "AS IS" without warranty.
*/
/* Portions Copyright (c) 1990, 1991, 1992, 1993 UNIX System Laboratories, Inc. */
/* Portions Copyright (c) 1979 - 1990 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */
/* UNIX System Laboratories, Inc. */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ifndef ___SIGNAL_H
#define ___SIGNAL_H
#pragma comment(exestr, "xpg4plus @(#) signal.h 20.3 94/12/19 ")
#ifndef _SIG_ATOMIC_T
#define _SIG_ATOMIC_T
/* atomic entity for signal handling */
typedef int sig_atomic_t;
#endif
extern const char * const _sys_siglist[];
extern const int _sys_nsig;
#ifndef _SYS_SIGNAL_H
#include <sys/signal.h>
#endif
#define SignalBad ((SignalHandler)-1)
#define SignalDefault ((SignalHandler)0)
#define SignalIgnore ((SignalHandler)1)
#define __sigmask(sig) (1 << ((sig) - 1))
#define __SIGEMPTYSET (~SIGALL)
#define __SIGFILLSET SIGALL
#define __SIGADDSET(s,n) ((*s) |= (__sigmask(n)))
#define __SIGDELSET(s,n) ((*s) &= ~(__sigmask(n)))
#define __SIGISMEMBER(s,n) ((*s) & (__sigmask(n)))
#if !defined(_SYS_TYPES_H)
#include <sys/types.h>
#endif
#if __cplusplus
extern "C" {
#endif
extern void (*signal(int, void(*)(int)))(int);
extern int raise(int);
extern void (*bsd_signal(int, void(*)(int)))(int);
extern int ( *ssignal( int, int(*)(int) ) )(int);
extern void ( *sigset( int, void(*)(int) ) )(int);
extern int killpg(pid_t, int);
#ifdef SS_ONSTACK /* Not defined on old versions of the OS */
extern int sigaltstack(const stack_t *, stack_t *);
extern int sigstack(struct sigstack *, struct sigstack *);
#endif
extern int sighold(int);
extern int sigignore(int);
extern int siginterrupt(int, int);
extern int sigpause(int);
extern int sigrelse(int);
extern int (sigfillset)(sigset_t *);
extern int (sigemptyset)(sigset_t *);
extern int (sigaddset)(sigset_t *, int);
extern int (sigdelset)(sigset_t *, int);
extern int (sigismember)(const sigset_t *, int);
extern int sigpending(sigset_t *);
extern int sigsuspend(const sigset_t *);
extern int sigprocmask(int, const sigset_t *, sigset_t *);
extern int kill(pid_t, int);
extern int sigaction(int, const struct sigaction *, struct sigaction *);
#if __cplusplus
};
#endif
#endif /* ___SIGNAL_H */
#endif
/* Copyright 1994-1995 The Santa Cruz Operation, Inc. All Rights Reserved. */
#if defined(_NO_PROTOTYPE) /* Old, crufty environment */
#include <oldstyle/__stdio.h>
#elif defined(_XOPEN_SOURCE) || defined(_XPG4_VERS) /* Xpg4 environment */
#include <xpg4/__stdio.h>
#elif defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) /* Posix environment */
#include <posix/__stdio.h>
#elif _STRICT_ANSI /* Pure Ansi/ISO environment */
#include <ansi/__stdio.h>
#elif defined(_SCO_ODS_30) /* Old, Tbird compatible environment */
#include <ods_30_compat/__stdio.h>
#else /* Normal, default environment */
/*
* Portions Copyright (C) 1984-1995 The Santa Cruz Operation, Inc.
* All Rights Reserved.
*
* The information in this file is provided for the exclusive use of
* the licensees of The Santa Cruz Operation, Inc. Such users have the
* right to use, modify, and incorporate this code into other products
* for purposes authorized by the license agreement provided they include
* this notice and the associated copyright notice with any such product.
* The information in this file is provided "AS IS" without warranty.
*/
/* Portions Copyright (c) 1990, 1991, 1992, 1993 UNIX System Laboratories, Inc. */
/* Portions Copyright (c) 1979 - 1990 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */
/* UNIX System Laboratories, Inc. */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ifndef ___STDIO_H
#define ___STDIO_H
#pragma comment(exestr, "xpg4plus @(#) stdio.h 20.1 94/12/04 ")
#pragma pack(4)
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _SIZE_T
#define _SIZE_T
typedef unsigned int size_t;
#endif
#ifndef _FPOS_T
#define _FPOS_T
typedef long fpos_t;
#endif
#ifndef _WCHAR_T
#define _WCHAR_T
typedef long wchar_t;
#endif
#ifndef _WINT_T
#define _WINT_T
typedef long wint_t;
#endif
#ifndef NULL
#define NULL 0
#endif /* NULL */
#ifndef EOF
#define EOF (-1)
#endif
#define SEEK_SET 0
#define SEEK_CUR 1
#define SEEK_END 2
#ifndef TMP_MAX
#define TMP_MAX 17576 /* 26 * 26 * 26 */
#endif
#define BUFSIZ 1024 /* default buffer size */
#define _IOEOF 0020 /* EOF reached on read */
#define _IOERR 0040 /* I/O error from system */
#define _IOREAD 0001 /* currently reading */
#define _IOWRT 0002 /* currently writing */
#define _IORW 0200 /* opened for reading and writing */
#define _IOMYBUF 0010 /* stdio malloc()'d buffer */
#define _SBFSIZ 8
#define L_cuserid 9
/* Non name space polluting version of above */
#define _P_tmpdir "/usr/tmp/"
#ifndef _VA_LIST
#define _VA_LIST char *
#endif
#ifdef __cplusplus
}
#endif
#pragma pack()
#endif /* ___STDIO_H */
#endif
/*
* Copyright (C) 1984-1995 The Santa Cruz Operation, Inc.
* All Rights Reserved.
*
* The information in this file is provided for the exclusive use of
* the licensees of The Santa Cruz Operation, Inc. Such users have the
* right to use, modify, and incorporate this code into other products
* for purposes authorized by the license agreement provided they include
* this notice and the associated copyright notice with any such product.
* The information in this file is provided "AS IS" without warranty.
*/
/* Portions Copyright (c) 1990, 1991, 1992, 1993 UNIX System Laboratories, Inc. */
/* Portions Copyright (c) 1979 - 1990 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */
/* UNIX System Laboratories, Inc. */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ifndef ___STDLIB_H
#define ___STDLIB_H
#pragma comment(exestr, "posix @(#) stdlib.h 20.1 94/12/04 ")
#ifdef __cplusplus
extern "C" {
#endif
#pragma pack(4)
#ifndef _DIV_T
#define _DIV_T
typedef struct
{
int quot;
int rem;
} div_t;
#endif
#ifndef _LDIV_T
#define _LDIV_T
typedef struct
{
long quot;
long rem;
} ldiv_t;
#endif
#ifndef _SIZE_T
#define _SIZE_T
typedef unsigned int size_t;
#endif
#if !defined(_SSIZE_T)
#define _SSIZE_T
typedef int ssize_t;
#endif
#ifndef _WCHAR_T
#define _WCHAR_T
typedef long wchar_t;
#endif
#ifndef NULL
#define NULL 0
#endif /* NULL */
#define EXIT_FAILURE 1
#define EXIT_SUCCESS 0
#define RAND_MAX 077777
extern unsigned char __ctype[];
#define MB_CUR_MAX ((int)__ctype[520])
extern double atof(const char *);
extern int atoi(const char *);
extern long atol(const char *);
extern double strtod(const char *, char **);
extern float strtof(const char *, char **);
extern long strtol(const char *, char **, int);
extern unsigned long strtoul(const char *, char **, int);
extern int rand(void);
extern void srand(unsigned int);
extern void *calloc(size_t, size_t);
extern void free(void *);
extern void *malloc(size_t);
extern void *realloc(void *, size_t);
extern void abort(void);
extern void exit(int);
extern char *getenv(const char *);
extern int system(const char *);
extern void *bsearch(const void *, const void *, size_t, size_t,
int (*)(const void *, const void *));
extern void qsort(void *, size_t, size_t,
int (*)(const void *, const void *));
#ifdef __cplusplus
#ifndef _ABS_INL
#define _ABS_INL
inline int (abs)(int i) {return (i > 0) ? i : -i;}
#endif
#else
extern int (abs)(int); /* Protect from macro definitions */
#endif
extern div_t div(int, int);
extern long labs(long);
extern ldiv_t ldiv(long, long);
extern int mbtowc(wchar_t *, const char *, size_t);
extern int mblen(const char *, size_t);
extern int wctomb(char *, wchar_t);
extern size_t mbstowcs(wchar_t *, const char *, size_t);
extern size_t wcstombs(char *, const wchar_t *, size_t);
#define mblen(s, n) mbtowc((wchar_t *)0, s, n)
#ifdef __cplusplus
}
#endif
#pragma pack()
#endif /* ___STDLIB_H */
/* Copyright 1994-1995 The Santa Cruz Operation, Inc. All Rights Reserved. */
#if defined(_NO_PROTOTYPE) /* Old, crufty environment */
#include <oldstyle/string.h>
#elif defined(_XOPEN_SOURCE) || defined(_XPG4_VERS) /* Xpg4 environment */
#include <xpg4/string.h>
#elif defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) /* Posix environment */
#include <posix/string.h>
#elif _STRICT_ANSI /* Pure Ansi/ISO environment */
#include <ansi/string.h>
#elif defined(_SCO_ODS_30) /* Old, Tbird compatible environment */
#include <ods_30_compat/string.h>
#else /* Normal, default environment */
/*
* Portions Copyright (C) 1983-1995 The Santa Cruz Operation, Inc.
* All Rights Reserved.
*
* The information in this file is provided for the exclusive use of
* the licensees of The Santa Cruz Operation, Inc. Such users have the
* right to use, modify, and incorporate this code into other products
* for purposes authorized by the license agreement provided they include
* this notice and the associated copyright notice with any such product.
* The information in this file is provided "AS IS" without warranty.
*/
/* Portions Copyright (c) 1990, 1991, 1992, 1993 UNIX System Laboratories, Inc. */
/* Portions Copyright (c) 1979 - 1990 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */
/* UNIX System Laboratories, Inc. */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ifndef ___STRING_H
#define ___STRING_H
#pragma comment(exestr, "xpg4plus @(#) string.h 20.1 94/12/04 ")
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _SIZE_T
#define _SIZE_T
typedef unsigned int size_t;
#endif
#ifndef NULL
#define NULL 0
#endif /* NULL */
extern void *memchr(const void *, int, size_t);
extern void *memcpy(void *, const void *, size_t);
extern void *memccpy(void *, const void *, int, size_t);
extern void *memmove(void *, const void *, size_t);
extern void *memset(void *, int, size_t);
extern char *strchr(const char *, int);
extern char *strcpy(char *, const char *);
extern char *strncpy(char *, const char *, size_t);
extern char *strcat(char *, const char *);
extern char *strncat(char *, const char *, size_t);
extern char *strpbrk(const char *, const char *);
extern char *strrchr(const char *, int);
extern char *strstr(const char *, const char *);
extern char *strtok(char *, const char *);
extern char *strtok_r(char *, const char *, char **);
extern char *strerror(int);
extern char *strlist(char *, const char *, ...);
extern int memcmp(const void *, const void *, size_t);
extern int strcmp(const char *, const char *);
extern int strcoll(const char *, const char *);
extern int strncmp(const char *, const char *, size_t);
extern void perror(const char *);
extern char *strdup(const char *);
extern int strncoll(const char *, const char *, int);
extern size_t strnxfrm(char *, const char *, size_t , int);
extern size_t strxfrm(char *, const char *, size_t);
extern size_t strcspn(const char *, const char *);
extern size_t strspn(const char *, const char *);
extern size_t strlen(const char *);
#ifdef __USLC__
#pragma int_to_unsigned strcspn
#pragma int_to_unsigned strspn
#pragma int_to_unsigned strlen
#endif
#if !defined(__cplusplus) && defined(__USLC__)
/* Use intrinsic ??? */
#ifndef strlen
#define strlen __std_hdr_strlen
#endif
#ifndef strcpy
#define strcpy __std_hdr_strcpy
#endif
#ifndef strncpy
#define strncpy __std_hdr_strncpy
#endif
#endif
extern int ffs(int);
/*
* The following two functions were withdrawn in XPG3,
* but are provided for backwards compatibility.
*/
extern int nl_strcmp(char *, char *);
extern int nl_strncmp(char *, char *, int n);
#ifdef __cplusplus
}
#endif
#endif /* ___STRING_H */
#endif
/* Copyright 1994-1995 The Santa Cruz Operation, Inc. All Rights Reserved. */
#if defined(_NO_PROTOTYPE) /* Old, crufty environment */
#include <oldstyle/time.h>
#elif defined(_XOPEN_SOURCE) || defined(_XPG4_VERS) /* Xpg4 environment */
#include <xpg4/time.h>
#elif defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) /* Posix environment */
#include <posix/time.h>
#elif _STRICT_ANSI /* Pure Ansi/ISO environment */
#include <ansi/time.h>
#elif defined(_SCO_ODS_30) /* Old, Tbird compatible environment */
#include <ods_30_compat/time.h>
#else /* Normal, default environment */
/*
* Portions Copyright (C) 1983-1995 The Santa Cruz Operation, Inc.
* All Rights Reserved.
*
* The information in this file is provided for the exclusive use of
* the licensees of The Santa Cruz Operation, Inc. Such users have the
* right to use, modify, and incorporate this code into other products
* for purposes authorized by the license agreement provided they include
* this notice and the associated copyright notice with any such product.
* The information in this file is provided "AS IS" without warranty.
*/
/* Portions Copyright (c) 1990, 1991, 1992, 1993 UNIX System Laboratories, Inc. */
/* Portions Copyright (c) 1979 - 1990 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */
/* UNIX System Laboratories, Inc. */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ifndef ___TIME_H
#define ___TIME_H
#pragma comment(exestr, "xpg4plus @(#) time.h 20.2 95/01/04 ")
#ifdef __cplusplus
extern "C" {
#endif
#ifndef NULL
#define NULL 0
#endif /* NULL */
#ifndef _SIZE_T
#define _SIZE_T
typedef unsigned int size_t;
#endif
#ifndef _CLOCK_T
#define _CLOCK_T
typedef long clock_t;
#endif
#ifndef _TIME_T
#define _TIME_T
typedef long time_t;
#endif
#ifdef _POSIXTIMERS
#include <sys/sudstime.h>
#endif
#define CLOCKS_PER_SEC 1000000 /* As required by XPG4 and friends */
#pragma pack(4)
#ifndef _STRUCT_TM
#define _STRUCT_TM
struct tm
{
int tm_sec;
int tm_min;
int tm_hour;
int tm_mday;
int tm_mon;
int tm_year;
int tm_wday;
int tm_yday;
int tm_isdst;
#define LTZNMAX 50
long tm_tzadj;
char tm_name[LTZNMAX]; /* name of timezone */
};
#pragma pack()
#endif /* _STRUCT_TM */
extern clock_t clock(void);
extern double difftime(time_t, time_t);
extern time_t mktime(struct tm *);
extern time_t time(time_t *);
extern char *asctime(const struct tm *);
extern char *ctime (const time_t *);
extern struct tm *gmtime(const time_t *);
extern struct tm *localtime(const time_t *);
extern size_t strftime(char *, size_t, const char *, const struct tm *);
extern void tzset(void);
extern char *tzname[];
#ifndef CLK_TCK
#define CLK_TCK _sysconf(2) /* 2 is _SC_CLK_TCK */
#endif
extern long timezone;
extern int daylight;
extern char *strptime(const char *, const char *, struct tm *);
#include <sys/timeb.h>
extern int ftime ( struct timeb * );
extern char * nl_cxtime( long *, char * );
extern char * nl_ascxtime( struct tm *, char * );
extern int cftime(char *, const char *, const time_t *);
extern int ascftime(char *, const char *, const struct tm *);
extern long altzone;
extern struct tm *getdate(const char *);
extern int getdate_err;
extern char *asctime_r(const struct tm *, char *,int);
extern char *ctime_r(const time_t *, char *,int);
extern struct tm *localtime_r(const time_t *, struct tm *);
extern struct tm *gmtime_r(const time_t *, struct tm *);
#ifdef __cplusplus
}
#endif
#ifndef difftime
#define difftime(t1, t0) ((double)((t1) - (t0)))
#endif
#endif /* ___TIME_H */
#endif
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the University of
* California, Berkeley and its contributors.
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* from: @(#)stdlib.h 5.13 (Berkeley) 6/4/91
* __unistd.h,v 1.1 1995/01/03 12:54:54 proven Exp
*/
#ifndef ___UNISTD_H_
#define ___UNISTD_H_
#include <sys/types.h>
#include <stddef.h>
#ifndef MAXPATHLEN
#define MAXPATHLEN 1024
#endif
#endif
/* ==== compat.h ============================================================
* Copyright (c) 1994 by Chris Provenzano, proven@mit.edu
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by Chris Provenzano.
* 4. The name of Chris Provenzano may not be used to endorse or promote
* products derived from this software without specific prior written
* permission.
*
* THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* compat.h,v 1.52 1995/10/20 09:32:56 proven Exp
*
* Description : Basic timers header.
*
* 1.00 94/06/13 proven
* -Started coding this file.
*/
#ifndef _SYS_COMPAT_H_
#define _SYS_COMPAT_H_
#include <sys/types.h>
#define omsghdr msghdr
#endif
/* Copyright 1994-1995 The Santa Cruz Operation, Inc. All Rights Reserved. */
#if defined(_NO_PROTOTYPE) /* Old, crufty environment */
#include <oldstyle/dirent.h>
#elif defined(_XOPEN_SOURCE) || defined(_XPG4_VERS) /* Xpg4 environment */
#include <xpg4/dirent.h>
#elif defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) /* Posix environment */
#include <posix/dirent.h>
#elif defined(_SCO_ODS_30) /* Old, Tbird compatible environment */
#include <ods_30_compat/dirent.h>
#else /* Normal, default environment */
/*
* Portions Copyright (C) 1983-1995 The Santa Cruz Operation, Inc.
* All Rights Reserved.
*
* The information in this file is provided for the exclusive use of
* the licensees of The Santa Cruz Operation, Inc. Such users have the
* right to use, modify, and incorporate this code into other products
* for purposes authorized by the license agreement provided they include
* this notice and the associated copyright notice with any such product.
* The information in this file is provided "AS IS" without warranty.
*/
/* Portions Copyright (c) 1990, 1991, 1992, 1993 UNIX System Laboratories, Inc. */
/* Portions Copyright (c) 1979 - 1990 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */
/* UNIX System Laboratories, Inc. */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ifndef _DIRENT_H
#define _DIRENT_H
#pragma comment(exestr, "xpg4plus @(#) dirent.h 20.1 94/12/04 ")
#ifdef __cplusplus
extern "C" {
#endif
#pragma pack(4)
#define MAXNAMLEN 512 /* maximum filename length */
#ifndef MAXPATHLEN
#define MAXPATHLEN 1024
#endif
#undef DIRBLKSIZ
#define DIRBLKSIZ 1048 /* buffer size for fs-indep. dirs */
#ifndef _SYS_TYPES_H
#include <sys/types.h>
#endif
#ifndef _SYS_DIRENT_H
#define _SYS_DIRENT_H
#ifdef __STDC__
#pragma comment(exestr, "@(#) dirent.h 25.8 94/09/22 ")
#else
#ident "@(#) dirent.h 25.8 94/09/22 "
#endif
/*
* Copyright (C) 1988-1994 The Santa Cruz Operation, Inc.
* All Rights Reserved.
* The information in this file is provided for the exclusive use of
* the licensees of The Santa Cruz Operation, Inc. Such users have the
* right to use, modify, and incorporate this code into other products
* for purposes authorized by the license agreement provided they include
* this notice and the associated copyright notice with any such product.
* The information in this file is provided "AS IS" without warranty.
*/
/* Copyright (c) 1984, 1986, 1987, 1988 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
/* #ident "@)#(head.sys:dirent.h 1.3" */
/*
* The following structure defines the file
* system independent directory entry.
*
*/
#include <sys/types.h>
#ifdef _M_I386
#pragma pack(4)
#else
#pragma pack(2)
#endif
#ifdef _INKERNEL
/*
* dirent used by the kernel
*/
struct dirent {
ino32_t d_ino; /* inode number of entry */
off_t d_off; /* offset of disk directory entry */
unsigned short d_reclen; /* length of this record */
char d_name[MAXNAMLEN+1]; /* name of file */
};
#else /* !_INKERNEL */
/*
* dirent as used by application code
* For now leave the declaration as is. When the new development system
* is implemented, ino_t may be ushort or ulong. If ino_t is ulong, there
* will be no d_pad field.
*/
struct dirent /* data from readdir() */
{
#if defined(_IBCS2)
long d_ino;
#else /* !_IBCS2 */
ino_t d_ino; /* inode number of entry */
#if defined(_INO_16_T)
short d_pad; /* because ino_t is ushort */
#endif /* defined(_INO_16_T) */
#endif /* defined(_IBCS2) */
off_t d_off; /* offset of disk directory entry */
unsigned short d_reclen; /* length of this record */
char d_name[MAXNAMLEN+1]; /* name of file */
};
#endif /* _INKERNEL */
typedef struct dirent dirent_t;
#pragma pack()
#endif /* _SYS_DIRENT_H */
#define d_fileno d_ino
#define d_namlen d_reclen
#ifdef __cplusplus
}
#endif
#pragma pack()
#endif /* _DIRENT_H */
#endif
/*
* Portions Copyright (C) 1983-1995 The Santa Cruz Operation, Inc.
* All Rights Reserved.
*
* The information in this file is provided for the exclusive use of
* the licensees of The Santa Cruz Operation, Inc. Such users have the
* right to use, modify, and incorporate this code into other products
* for purposes authorized by the license agreement provided they include
* this notice and the associated copyright notice with any such product.
* The information in this file is provided "AS IS" without warranty.
*/
/* Portions Copyright (c) 1990, 1991, 1992, 1993 UNIX System Laboratories, Inc. */
/* Portions Copyright (c) 1979 - 1990 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */
/* UNIX System Laboratories, Inc. */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ifndef ___SIGNAL_H
#define ___SIGNAL_H
#pragma comment(exestr, "posix @(#) signal.h 20.3 94/12/19 ")
#ifndef _SIG_ATOMIC_T
#define _SIG_ATOMIC_T
/* atomic entity for signal handling */
typedef int sig_atomic_t;
#endif
#ifndef _SYS_SIGNAL_H
#include <sys/signal.h>
#endif
#if !defined(_SYS_TYPES_H)
#include <sys/types.h>
#endif
#if __cplusplus
extern "C" {
#endif
extern void (*signal(int, void(*)(int)))(int);
extern int raise(int);
extern int (sigfillset)(sigset_t *);
extern int (sigemptyset)(sigset_t *);
extern int (sigaddset)(sigset_t *, int);
extern int (sigdelset)(sigset_t *, int);
extern int (sigismember)(const sigset_t *, int);
extern int sigpending(sigset_t *);
extern int sigsuspend(const sigset_t *);
extern int sigprocmask(int, const sigset_t *, sigset_t *);
extern int kill(pid_t, int);
extern int sigaction(int, const struct sigaction *, struct sigaction *);
#if __cplusplus
};
#endif
#endif /* ___SIGNAL_H */
This diff is collapsed.
/* Copyright 1994-1995 The Santa Cruz Operation, Inc. All Rights Reserved. */
#if defined(_NO_PROTOTYPE) /* Old, crufty environment */
#include <oldstyle/syscall.h>
#elif defined(_SCO_ODS_30) /* Old, Tbird compatible environment */
#include <ods_30_compat/syscall.h>
#else /* Normal, default environment */
/*
/ Portions Copyright (C) 1983-1995 The Santa Cruz Operation, Inc.
* All Rights Reserved.
*
* The information in this file is provided for the exclusive use of
* the licensees of The Santa Cruz Operation, Inc. Such users have the
* right to use, modify, and incorporate this code into other products
* for purposes authorized by the license agreement provided they include
* this notice and the associated copyright notice with any such product.
* The information in this file is provided "AS IS" without warranty.
*/
/* Portions Copyright (c) 1990, 1991, 1992, 1993 UNIX System Laboratories, Inc. */
/* Portions Copyright (c) 1979 - 1990 AT&T */
#ident "xpg4plus @(#) sys.i386 20.1 94/12/04 "
/* #ident "xpg4plus @(#)head:sys.i386 1.2" */
/*
/* Definitions of Kernel Entry Call Gates
*/
#ifndef _SYSCALL_H_
#define _SYSCALL_H_
/*#define SYSCALL $0x7,$0*/
/*#define SIGCALL $0xF,$0*/
/*
/* Definitions of System Call Entry Point Numbers
*/
#define SYS_access 33
#define SYS_acct 51
#define SYS_advfs 70
#define SYS_alarm 27
#define SYS_break 17
#define SYS_brk 17
#define SYS_chdir 12
#define SYS_chmod 15
#define SYS_chown 16
#define SYS_chroot 61
#define SYS_close 6
#define SYS_creat 8
#define SYS_dup 41
#define SYS_exec 11
#define SYS_execve 59
#define SYS_exit 1
#define SYS_fcntl 62
#define SYS_fork 2
#define SYS_fstat 28
#define SYS_fstatfs 38
#define SYS_fxstat 125
#define SYS_getdents 81
#define SYS_getgid 47
#define SYS_getmsg 85
#define SYS_getpid 20
#define SYS_gettimeofday 171
#define SYS_getuid 24
#define SYS_gtty 32
#define SYS_ioctl 54
#define SYS_kill 37
#define SYS_link 9
#define SYS_lock 45
#define SYS_lseek 19
#define SYS_lstat 91
#define SYS_lxstat 124
#define SYS_mkdir 80
#define SYS_mknod 14
#define SYS_mount 21
#define SYS_msgsys 49
#define SYS_nice 34
#define SYS_open 5
#define SYS_pause 29
#define SYS_pipe 42
#define SYS_plock 45
#define SYS_poll 87
#define SYS_prof 44
#define SYS_ptrace 26
#define SYS_putmsg 86
#define SYS_rdebug 76
#define SYS_read 3
#define SYS_readlink 92
#define SYS_readv 121
#define SYS_rfstart 74
#define SYS_rfstop 77
#define SYS_rfsys 78
#define SYS_rmdir 79
#define SYS_rmount 72
#define SYS_rumount 73
#define SYS_seek 19
#define SYS_semsys 53
#define SYS_setgid 46
#define SYS_setpgrp 39
#define SYS_settimeofday 172
#define SYS_setuid 23
#define SYS_shmsys 52
#define SYS_signal 48
#define SYS_stat 18
#define SYS_statfs 35
#define SYS_stime 25
#define SYS_stty 31
#define SYS_symlink 90
#define SYS_sync 36
#define SYS_sys3b 50
#define SYS_sysi86 50
#define SYS_sysacct 51
#define SYS_sysfs 84
#define SYS_time 13
#define SYS_times 43
#define SYS_uadmin 55
#define SYS_ulimit 63
#define SYS_umask 60
#define SYS_umount 22
#define SYS_unadvfs 71
#define SYS_unlink 10
#define SYS_utime 30
#define SYS_utssys 57
#define SYS_wait 7
#define SYS_write 4
#define SYS_writev 122
#define SYS_xstat 123
#define SYS_ftruncate 192
/* cxenix numbers are created by the formula
* (table index << 8) + CXENIX
*/
#define CXENIX 0x28 /* Decimal 40 */
#define XLOCKING 0x0128
#define CREATSEM 0x0228
#define OPENSEM 0x0328
#define SIGSEM 0x0428
#define WAITSEM 0x0528
#define NBWAITSEM 0x0628
#define RDCHK 0x0728
#define CHSIZE 0x0a28
#define SYS_ftime 0x0b28
#define NAP 0x0c28
#define SDGET 0x0d28
#define SDFREE 0x0e28
#define SDENTER 0x0f28
#define SDLEAVE 0x1028
#define SDGETV 0x1128
#define SDWAITV 0x1228
#define PROCTL 0x2028
#define EXECSEG 0x2128
#define UNEXECSEG 0x2228
#define SYS_select 0x2428
#define SYS_eaccess 0x2528
#define SYS_paccess 0x2628
#define SYS_sigaction 0x2728
#define SYS_sigprocmask 0x2828
#define SYS_sigpending 0x2928
#define SYS_sigsuspend 0x2a28
#define SYS_getgroups 0x2b28
#define SYS_setgroups 0x2c28
#define SYS_sysconf 0x2d28
#define SYS_pathconf 0x2e28
#define SYS_fpathconf 0x2f28
#define SYS_rename 0x3028
#define SYS_setitimer 0x3828
#define CLOCAL 127
#endif
#endif
/* ==== timers.h ============================================================
* Copyright (c) 1994 by Chris Provenzano, proven@mit.edu
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by Chris Provenzano.
* 4. The name of Chris Provenzano may not be used to endorse or promote
* products derived from this software without specific prior written
* permission.
*
* THIS SOFTWARE IS PROVIDED BY CHRIS PROVENZANO ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL CHRIS PROVENZANO BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* timers.h,v 1.50.8.1 1996/03/05 08:28:36 proven Exp
*
* Description : Basic timers header.
*
* 1.00 94/06/13 proven
* -Started coding this file.
*/
#ifndef _SYS_TIMERS_H_
#define _SYS_TIMERS_H_
#include <sys/types.h>
#include <time.h>
struct timespec {
long tv_sec;
long tv_nsec;
};
#define TIMEVAL_TO_TIMESPEC(tv, ts) { \
(ts)->tv_sec = (tv)->tv_sec; \
(ts)->tv_nsec = (tv)->tv_usec * 1000; \
}
#define TIMESPEC_TO_TIMEVAL(tv, ts) { \
(tv)->tv_sec = (ts)->tv_sec; \
(tv)->tv_usec = (ts)->tv_nsec / 1000; \
}
/*
* New functions
*/
__BEGIN_DECLS
__END_DECLS
#endif
make: *** No targets specified and no makefile found. Stop.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment