diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2021-10-13 16:46:20 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2021-10-13 16:46:20 -0700 |
commit | 566d54fe549286895fdef8aa9f385686405dd290 (patch) | |
tree | 184607f21a2e59f8896a0505fa5597a6976c76ab /sys/cmd/rc/unix.h | |
parent | f2efbb46ef89c7c1693400f7209113c50c959f02 (diff) |
RM(rc): old code. too many assumptions baked in
Diffstat (limited to 'sys/cmd/rc/unix.h')
-rw-r--r-- | sys/cmd/rc/unix.h | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/sys/cmd/rc/unix.h b/sys/cmd/rc/unix.h deleted file mode 100644 index 885c638..0000000 --- a/sys/cmd/rc/unix.h +++ /dev/null @@ -1,54 +0,0 @@ -#include <stdlib.h> -#include <stdarg.h> -#include <string.h> -#include <unistd.h> -#include <fcntl.h> -#include <signal.h> -#include <inttypes.h> -#include <string.h> - -#ifndef NSIG -#define NSIG 32 -#endif - -#ifndef ERRMAX -#define ERRMAX 128 -#endif - -/* plan 9 compatibility */ -#define RFPROC 1 -#define RFFDG 1 -#define RFNOTEG 1 - -#define uintptr uintptr_t -#define Rune wchar_t - -#define nil ((void*)0) - -/* in case uchar, etc. are built-in types */ -#define uchar _fmtuchar -#define ushort _fmtushort -#define uint _fmtuint -#define ulong _fmtulong -#define vlong _fmtvlong -#define uvlong _fmtuvlong - -typedef unsigned char uchar; -typedef unsigned short ushort; -typedef unsigned int uint; -typedef unsigned long ulong; -typedef unsigned long long uvlong; - -#define OREAD O_RDONLY -#define OWRITE O_WRONLY -#define ORDWR O_RDWR -#define OCEXEC 0 - -extern char *argv0; -extern int chartorune(wchar_t *, const char *); -extern int rfork(int); -extern void errstr(char *, int); -#define rerrstr errstr - -extern void exechistory(void); - |