8 int wifexited (int status)
10 return WIFEXITED (status);
13 int wexitstatus (int status)
15 return WEXITSTATUS (status);
18 int wifsignaled (int status)
20 return WIFSIGNALED (status);
23 int wtermsig (int status)
25 return WTERMSIG (status);
28 int wifstopped (int status)
30 return WIFSTOPPED (status);
33 int wstopsig (int status)
35 return WSTOPSIG (status);
38 int helper_Mono_Posix_Stat(char *filename, int dereference,
57 ret = stat(filename, &buf);
59 ret = lstat(filename, &buf);
66 *nlinks = buf.st_nlink;
71 *blksize = buf.st_blksize;
72 *blocks = buf.st_blocks;
73 *atime = buf.st_atime;
74 *mtime = buf.st_mtime;
75 *ctime = buf.st_ctime;
79 char *helper_Mono_Posix_GetUserName(int uid) {
80 struct passwd *p = getpwuid(uid);
81 if (p == NULL) return NULL;
84 char *helper_Mono_Posix_GetGroupName(int gid) {
85 struct group *p = getgrgid(gid);
86 if (p == NULL) return NULL;