Commit c4e1ba9f authored by monty@hundin.mysql.fi's avatar monty@hundin.mysql.fi
Browse files

Deleted files in MIT-pthreads that had wrong copyright

parent ecf2c4e1
Loading
Loading
Loading
Loading
+32 −1
Original line number Diff line number Diff line
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.
+0 −219
Original line number Diff line number Diff line
/* 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
+0 −109
Original line number Diff line number Diff line
/* 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
+0 −113
Original line number Diff line number Diff line
/* 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
+0 −137
Original line number Diff line number Diff line
/*
 *   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 */
Loading