Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/planix-v0/sys/include/ape/bsd.h – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#ifndef _BSD_EXTENSION
2
    This header file is an extension to ANSI/POSIX
3
#endif
4
 
5
#ifndef __BSD_H_
6
#define __BSD_H_
7
#pragma src "/sys/src/ape/lib/bsd"
8
#pragma lib "/$M/lib/ape/libbsd.a"
9
 
10
#ifndef __TYPES_H
11
#include <sys/types.h>
12
#endif
13
 
14
#ifdef __cplusplus
15
extern "C" {
16
#endif
17
 
18
#ifndef _SIZE_T
19
#define _SIZE_T
20
typedef unsigned long size_t;
21
#endif
22
 
23
/* ifndefs because X11 stuff (ugh) */
24
#ifndef bcopy
25
extern void	bcopy(void*, void*, size_t);
26
#endif
27
#ifndef bcmp
28
extern int	bcmp(void*, void*, size_t);
29
#endif
30
#ifndef bzero
31
extern void	bzero(void*, size_t);
32
#endif
33
extern int	ffs(unsigned int);
34
extern void	bhappy(void*);
35
extern int	rresvport(int*);
36
extern int	rcmd(char**, int, char*, char*, char*, int*);
37
extern int	strcasecmp(char*, char*);
38
extern int 	putenv(char*);
39
extern int	strncasecmp(char*, char*,int);
40
 
41
extern int	getopt(int, char**, char*);
42
extern int	opterr;
43
extern int	optind;
44
extern int	optopt;
45
extern char	*optarg;
46
extern char	*mktemp(char *);
47
extern char	*sys_errlist[];
48
extern int		sys_nerr;
49
 
50
#ifdef __cplusplus
51
}
52
#endif
53
 
54
#endif