comparison lib/lib.h @ 51:63edd4de94dd

Add xaccess()
author Rob Landley <rob@landley.net>
date Mon, 08 Jan 2007 03:25:47 -0500
parents 63c168b65fa6
children ba561c21ea27
comparison
equal deleted inserted replaced
50:63c168b65fa6 51:63edd4de94dd
36 void xrealloc(void **ptr, size_t size); 36 void xrealloc(void **ptr, size_t size);
37 void *xstrndup(char *s, size_t n); 37 void *xstrndup(char *s, size_t n);
38 void *xstrdup(char *s); 38 void *xstrdup(char *s);
39 char *xmsprintf(char *format, ...); 39 char *xmsprintf(char *format, ...);
40 void xexec(char **argv); 40 void xexec(char **argv);
41 void xaccess(char *path, int flags);
41 int xcreate(char *path, int flags, int mode); 42 int xcreate(char *path, int flags, int mode);
42 int xopen(char *path, int flags); 43 int xopen(char *path, int flags);
43 FILE *xfopen(char *path, char *mode); 44 FILE *xfopen(char *path, char *mode);
44 ssize_t reread(int fd, void *buf, size_t count); 45 ssize_t reread(int fd, void *buf, size_t count);
45 ssize_t rewrite(int fd, void *buf, size_t count); 46 ssize_t rewrite(int fd, void *buf, size_t count);