summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1e63341)
raw | patch | inline | side by side (parent: 1e63341)
author | Sebastian Schuberth <sschuberth@gmail.com> | |
Mon, 28 Dec 2009 17:04:21 +0000 (18:04 +0100) | ||
committer | Pat Thoyts <patthoyts@users.sourceforge.net> | |
Fri, 1 Oct 2010 22:08:42 +0000 (23:08 +0100) |
Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
compat/mingw.h | patch | blob | history |
diff --git a/compat/mingw.h b/compat/mingw.h
index 3b2477be5f658be665f19a12b48cc47fa07d1c6b..912c4256fd99e95b0b941d89274b63668ceb18b1 100644 (file)
--- a/compat/mingw.h
+++ b/compat/mingw.h
*/
typedef int pid_t;
+typedef int uid_t;
#define hstrerror strerror
#define S_IFLNK 0120000 /* Symbolic link */
{ errno = ENOSYS; return -1; }
static inline int fchmod(int fildes, mode_t mode)
{ errno = ENOSYS; return -1; }
-static inline int fork(void)
+static inline pid_t fork(void)
{ errno = ENOSYS; return -1; }
static inline unsigned int alarm(unsigned int seconds)
{ return 0; }
static inline int fsync(int fd)
{ return _commit(fd); }
-static inline int getppid(void)
+static inline pid_t getppid(void)
{ return 1; }
static inline void sync(void)
{}
-static inline int getuid()
+static inline uid_t getuid(void)
{ return 1; }
static inline struct passwd *getpwnam(const char *name)
{ return NULL; }
}
#define unlink mingw_unlink
-static inline int waitpid(pid_t pid, int *status, unsigned options)
+static inline pid_t waitpid(pid_t pid, int *status, unsigned options)
{
if (options == 0)
return _cwait(status, pid, 0);
struct tm *gmtime_r(const time_t *timep, struct tm *result);
struct tm *localtime_r(const time_t *timep, struct tm *result);
int getpagesize(void); /* defined in MinGW's libgcc.a */
-struct passwd *getpwuid(int uid);
+struct passwd *getpwuid(uid_t uid);
int setitimer(int type, struct itimerval *in, struct itimerval *out);
int sigaction(int sig, struct sigaction *in, struct sigaction *out);
int link(const char *oldpath, const char *newpath);