File: _libc.h

package info (click to toggle)
9base 1%3A6-15
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,536 kB
  • sloc: ansic: 61,060; yacc: 1,991; asm: 1,621; cs: 1,150; perl: 965; makefile: 616; sh: 18; sed: 4
file content (40 lines) | stat: -rw-r--r-- 660 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#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);