]> git.lizzy.rs Git - plan9front.git/blob - sys/include/ape/bsd.h
libsec: implement elliptic curve group operations in jacobian coordinate system
[plan9front.git] / sys / include / ape / bsd.h
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      strncasecmp(char*, char*,int);
39
40 extern int      getopt(int, char**, char*);
41 extern int      opterr;
42 extern int      optind;
43 extern int      optopt;
44 extern char     *optarg;
45 extern char     *mktemp(char *);
46 extern char     *sys_errlist[];
47 extern int              sys_nerr;
48
49 #ifdef __cplusplus
50 }
51 #endif
52
53 #endif