10 int wifexited (int status)
12 return WIFEXITED (status);
15 int wexitstatus (int status)
17 return WEXITSTATUS (status);
20 int wifsignaled (int status)
22 return WIFSIGNALED (status);
25 int wtermsig (int status)
27 return WTERMSIG (status);
30 int wifstopped (int status)
32 return WIFSTOPPED (status);
35 int wstopsig (int status)
37 return WSTOPSIG (status);
40 int helper_Mono_Posix_Stat(char *filename, int dereference,
59 ret = stat(filename, &buf);
61 ret = lstat(filename, &buf);
68 *nlinks = buf.st_nlink;
73 *blksize = buf.st_blksize;
74 *blocks = buf.st_blocks;
75 *atime = buf.st_atime;
76 *mtime = buf.st_mtime;
77 *ctime = buf.st_ctime;
81 char *helper_Mono_Posix_GetUserName(int uid) {
82 struct passwd *p = getpwuid(uid);
83 if (p == NULL) return NULL;
86 char *helper_Mono_Posix_GetGroupName(int gid) {
87 struct group *p = getgrgid(gid);
88 if (p == NULL) return NULL;
92 char *helper_Mono_Posix_readdir(DIR *dir) {
93 struct dirent* e = readdir(dir);
94 if (e == NULL) return NULL;