From 566d54fe549286895fdef8aa9f385686405dd290 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Wed, 13 Oct 2021 16:46:20 -0700 Subject: RM(rc): old code. too many assumptions baked in --- sys/cmd/rc/unix.h | 54 ------------------------------------------------------ 1 file changed, 54 deletions(-) delete mode 100644 sys/cmd/rc/unix.h (limited to 'sys/cmd/rc/unix.h') 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 -#include -#include -#include -#include -#include -#include -#include - -#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); - -- cgit v1.2.1