vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

unix.h (1511B)


      1 #undef _FORTIFY_SOURCE	/* stupid ubuntu setting that warns about not checking the return value from write */
      2 #define _BSD_SOURCE 1
      3 #define _NETBSD_SOURCE 1	/* NetBSD */
      4 #define _SVID_SOURCE 1
      5 #if !defined(__APPLE__) && !defined(__OpenBSD__)
      6 #	define _XOPEN_SOURCE 1000
      7 #	define _XOPEN_SOURCE_EXTENDED 1
      8 #endif
      9 #if defined(__FreeBSD__)
     10 #	include <sys/cdefs.h>
     11 	/* for strtoll */
     12 #	undef __ISO_C_VISIBLE
     13 #	define __ISO_C_VISIBLE 1999
     14 #	undef __LONG_LONG_SUPPORTED
     15 #	define __LONG_LONG_SUPPORTED
     16 #	undef __BSD_VISIBLE
     17 #	define __BSD_VISIBLE 1
     18 #endif
     19 #define _LARGEFILE64_SOURCE 1
     20 #define _FILE_OFFSET_BITS 64
     21 
     22 #include <stdio.h>
     23 #include <stdlib.h>
     24 #include <string.h>
     25 #include <math.h>
     26 #include <fcntl.h>
     27 #include <setjmp.h>
     28 #include <time.h>
     29 #include <assert.h>
     30 #include <unistd.h>
     31 #include <stdarg.h>
     32 #include <inttypes.h>
     33 #include <ctype.h>
     34 #include <errno.h>
     35 #include <sys/types.h>
     36 #include <sys/stat.h>
     37 #include <sys/time.h>
     38 #include <dirent.h>
     39 #include <time.h>
     40 #include <errno.h>
     41 #include <limits.h>
     42 
     43 #define ushort _ushort
     44 #define uint _uint
     45 #define ulong _ulong
     46 #define uchar _uchar
     47 
     48 typedef unsigned char uchar;
     49 typedef unsigned short ushort;
     50 typedef unsigned int uint;
     51 typedef unsigned long ulong;
     52 typedef unsigned long long uvlong;
     53 typedef long long vlong;
     54 typedef ulong uintptr;
     55 typedef signed char schar;
     56 
     57 typedef unsigned short Rune;
     58 
     59 typedef unsigned int uint32;
     60 typedef unsigned long long uint64;
     61 typedef int int32;
     62 typedef long long int64;
     63 
     64 #define USED(x) ((void)(x))
     65 
     66 void plimit(pid_t, int);