aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/sam/_libc.h
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2021-01-03 00:54:20 -0500
committerRuss Cox <rsc@swtch.com>2021-01-05 23:37:04 -0500
commit0a513e65607223d11ba94003256b13ef5779e7e8 (patch)
tree421bfe8d2b3f2a2212ec7e65afe34cd62d86fadf /src/cmd/sam/_libc.h
parent7f6458b045e04b97dd06b3171ac67e9ecde32429 (diff)
downloadplan9port-0a513e65607223d11ba94003256b13ef5779e7e8.tar.gz
plan9port-0a513e65607223d11ba94003256b13ef5779e7e8.tar.bz2
plan9port-0a513e65607223d11ba94003256b13ef5779e7e8.zip
sam: rm dregs
Diffstat (limited to 'src/cmd/sam/_libc.h')
-rw-r--r--src/cmd/sam/_libc.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/cmd/sam/_libc.h b/src/cmd/sam/_libc.h
deleted file mode 100644
index 65618918..00000000
--- a/src/cmd/sam/_libc.h
+++ /dev/null
@@ -1,40 +0,0 @@
-#define __USE_UNIX98 // for pread/pwrite, supposedly
-#include <unistd.h>
-#include <stdlib.h>
-#include <stdarg.h>
-#include <setjmp.h>
-#include <string.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <errno.h>
-#include <stdio.h>
-
-#include "utf.h"
-#include "fmt.h"
-
-#define nil 0
-#define dup dup2
-#define exec execv
-#define seek lseek
-#define getwd getcwd
-#define USED(a)
-#define SET(a)
-
-enum {
- OREAD = 0,
- OWRITE = 1,
- ORDWR = 2,
- OCEXEC = 4,
- ORCLOSE = 8
-};
-
-enum {
- ERRMAX = 255
-};
-
-void exits(const char *);
-void _exits(const char *);
-int notify (void(*f)(void *, char *));
-int create(char *, int, int);
-int errstr(char *, int);