Initial revision

git-svn-id: file:///srv/svn/joey/bsdgames-trunk@5086 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
joey
1999-09-08 23:56:51 +00:00
commit 03272d67da
623 changed files with 243457 additions and 0 deletions

17
include/signal.h Normal file
View File

@@ -0,0 +1,17 @@
/* signal.h - bsd-games wrapper for <signal.h> */
#include <features.h>
#ifndef __GLIBC__
#define __USE_BSD_SIGNAL 1 /* Get BSD signal semantics with libc5 */
#endif
#include_next <signal.h>
#ifndef __GLIBC__ /* glibc 2 has this; with libc5 we want to avoid
* <bsd/signal.h>. */
#ifndef LINUX_BSD_GAMES_DEFINED_SIG_T
typedef __sighandler_t sig_t;
#define LINUX_BSD_GAMES_DEFINED_SIG_T 1
#endif
#endif

5
include/stdio.h Normal file
View File

@@ -0,0 +1,5 @@
/* stdio.h - bsd-games wrapper for <stdio.h> */
#include_next <stdio.h>
extern char *fgetln(FILE *stream, size_t *len);

5
include/stdlib.h Normal file
View File

@@ -0,0 +1,5 @@
/* stdlib.h - bsd-games wrapper for <stdlib.h> */
#include_next <stdlib.h>
extern int getloadavg(double loadavg[], int nelem);

11
include/sys/cdefs.h Normal file
View File

@@ -0,0 +1,11 @@
/* cdefs.h - bsd-games wrapper for <sys/cdefs.h> */
#include_next <sys/cdefs.h>
#ifndef __RCSID
#define __RCSID(arg) static const char rcsid[] __attribute__((unused)) = arg
#endif
#ifndef __COPYRIGHT
#define __COPYRIGHT(arg) static const char copyright[] __attribute__((unused)) = arg
#endif

15
include/sys/ttydefaults.h Normal file
View File

@@ -0,0 +1,15 @@
/* ttydefaults.h - bsd-games wrapper for <sys/ttydefaults.h> */
#include <features.h>
#ifdef __GLIBC__
#include_next <sys/ttydefaults.h>
#endif
#ifndef CTRL
#define CTRL(x) ((x) & 037)
#endif
#ifndef OXTABS
#define OXTABS XTABS
#endif

5
include/termios.h Normal file
View File

@@ -0,0 +1,5 @@
/* termios.h - bsd-games wrapper for <termios.h> */
#include_next <termios.h>
#include <sys/ttydefaults.h>

8
include/tzfile.h Normal file
View File

@@ -0,0 +1,8 @@
/* tzfile.h - bsd-games version of <tzfile.h> that defines isleap */
#ifndef LINUX_BSD_GAMES_TZFILE_H
#define LINUX_BSD_GAMES_TZFILE_H 1
#define isleap(y) ((((y) % 4) == 0 && ((y) % 100) != 0) || ((y) % 400) == 0)
#endif /* !defined(LINUX_BSD_GAMES_TZFILE_H) */