aboutsummaryrefslogtreecommitdiff
path: root/include/mingw.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2009-05-10 20:10:13 +1000
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2009-05-10 20:10:13 +1000
commitd2a9ddeb6cc58284996fbc5367877c99fee8914e (patch)
tree187cadb382d0336bbc529cc7ca9e3d1ccd680213 /include/mingw.h
parent1fa419fb3c7ef91e878398bb0388854d27d7bd8f (diff)
downloadbusybox-w32-old.tar.gz
busybox-w32-old.tar.bz2
busybox-w32-old.zip
general warning cleanupold
Diffstat (limited to 'include/mingw.h')
-rw-r--r--include/mingw.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/mingw.h b/include/mingw.h
index 500308947..1c3728ee4 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -83,8 +83,10 @@ static inline int symlink(const char *oldpath, const char *newpath)
83{ errno = ENOSYS; return -1; } 83{ errno = ENOSYS; return -1; }
84static inline int fchmod(int fildes, mode_t mode) 84static inline int fchmod(int fildes, mode_t mode)
85{ errno = ENOSYS; return -1; } 85{ errno = ENOSYS; return -1; }
86/*
86static inline int fork(void) 87static inline int fork(void)
87{ errno = ENOSYS; return -1; } 88{ errno = ENOSYS; return -1; }
89*/
88static inline unsigned int alarm(unsigned int seconds) 90static inline unsigned int alarm(unsigned int seconds)
89{ return 0; } 91{ return 0; }
90static inline int fsync(int fd) 92static inline int fsync(int fd)
@@ -93,7 +95,7 @@ static inline int getppid(void)
93{ return 1; } 95{ return 1; }
94static inline void sync(void) 96static inline void sync(void)
95{} 97{}
96static inline int getuid() 98static inline int getuid(void)
97{ return 1; } 99{ return 1; }
98static inline struct passwd *getpwnam(const char *name) 100static inline struct passwd *getpwnam(const char *name)
99{ return NULL; } 101{ return NULL; }
@@ -148,6 +150,13 @@ int setitimer(int type, struct itimerval *in, struct itimerval *out);
148int sigaction(int sig, struct sigaction *in, struct sigaction *out); 150int sigaction(int sig, struct sigaction *in, struct sigaction *out);
149int link(const char *oldpath, const char *newpath); 151int link(const char *oldpath, const char *newpath);
150time_t tm_to_time_t(const struct tm *tm); 152time_t tm_to_time_t(const struct tm *tm);
153char *strsep(char **stringp, const char *delim);
154char *strptime(const char *s, const char *format, struct tm *tm);
155void unsetenv(const char *env);
156char *realpath(const char *path, char *resolved_path);
157int fdprintf(int fd, const char *format, ...);
158int setenv(const char *name, const char *value, int replace);
159size_t strlcpy(char *dest, const char *src, size_t size);
151 160
152/* 161/*
153 * replacements of existing functions 162 * replacements of existing functions
@@ -251,7 +260,7 @@ char **copy_environ(void);
251void free_environ(char **env); 260void free_environ(char **env);
252char **env_setenv(char **env, const char *name); 261char **env_setenv(char **env, const char *name);
253 262
254const char *get_busybox_exec_path(); 263const char *get_busybox_exec_path(void);
255/* 264/*
256 * A replacement of main() that ensures that argv[0] has a path 265 * A replacement of main() that ensures that argv[0] has a path
257 */ 266 */