kpilot/lib
fakes.h00001 #ifndef _KPILOT_FAKES_H
00002 #define _KPILOT_FAKES_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifdef __cplusplus
00026 extern "C" {
00027 #endif
00028
00029 #ifndef HAVE_SETENV
00030 int setenv(const char *name, const char *value, int overwrite);
00031 #endif
00032
00033 #ifndef HAVE_UNSETENV
00034 void unsetenv (const char *name);
00035 #endif
00036
00037 #ifndef HAVE_USLEEP
00038 void usleep(unsigned int usec);
00039 #endif
00040
00041 #ifndef HAVE_RANDOM
00042 long int random();
00043 void srandom(unsigned int seed);
00044 #endif
00045
00046 #ifndef HAVE_SETEUID
00047 int seteuid(uid_t euid);
00048 #endif
00049
00050 #ifndef HAVE_MKSTEMPS
00051 int mkstemps (char* _template, int suffix_len);
00052 #endif
00053
00054 #ifndef HAVE_MKSTEMP
00055 int mkstemp (char* _template);
00056 #endif
00057
00058 #ifndef HAVE_MKDTEMP
00059 char* mkdtemp (char* _template);
00060 #endif
00061
00062 #ifndef HAVE_REVOKE
00063 int revoke(const char *tty);
00064 #endif
00065
00066 #ifndef HAVE_STRLCPY
00067 unsigned long strlcpy(char* d, const char* s, unsigned long bufsize);
00068 #endif
00069
00070 #ifndef HAVE_STRLCAT
00071 unsigned long strlcat(char* d, const char* s, unsigned long bufsize);
00072 #endif
00073
00074 #ifdef __cplusplus
00075 }
00076 #endif
00077
00078
00079 #endif
|