Mercurial > hg > toybox
comparison lib/lib.h @ 1327:85f297591693 draft
Introduce xfork() and make commands use it, and make some WEXITSTATUS() use WIFEXITED() and WTERMSIG()+127.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 31 May 2014 12:33:24 -0500 |
parents | 4d898affda0c |
children | 9fd2bcedbeb5 |
comparison
equal
deleted
inserted
replaced
1326:78a3eaf5555f | 1327:85f297591693 |
---|---|
89 char *xmprintf(char *format, ...); | 89 char *xmprintf(char *format, ...); |
90 void xprintf(char *format, ...); | 90 void xprintf(char *format, ...); |
91 void xputs(char *s); | 91 void xputs(char *s); |
92 void xputc(char c); | 92 void xputc(char c); |
93 void xflush(void); | 93 void xflush(void); |
94 pid_t xfork(void); | |
94 void xexec_optargs(int skip); | 95 void xexec_optargs(int skip); |
95 void xexec(char **argv); | 96 void xexec(char **argv); |
96 void xaccess(char *path, int flags); | 97 void xaccess(char *path, int flags); |
97 void xunlink(char *path); | 98 void xunlink(char *path); |
98 int xcreate(char *path, int flags, int mode); | 99 int xcreate(char *path, int flags, int mode); |