comparison lib/lib.h @ 216:5697a3f7c8cf

Make patch's file add actually work, including directory creating and understanding zero-context hunks.
author Rob Landley <rob@landley.net>
date Thu, 27 Dec 2007 21:36:33 -0600
parents 98820d1eaa79
children 630b2e12db16
comparison
equal deleted inserted replaced
215:34e36dffd47a 216:5697a3f7c8cf
71 void xreadall(int fd, void *buf, size_t len); 71 void xreadall(int fd, void *buf, size_t len);
72 void xwrite(int fd, void *buf, size_t len); 72 void xwrite(int fd, void *buf, size_t len);
73 char *xgetcwd(void); 73 char *xgetcwd(void);
74 void xstat(char *path, struct stat *st); 74 void xstat(char *path, struct stat *st);
75 char *xabspath(char *path); 75 char *xabspath(char *path);
76 void xmkpath(char *path, int mode);
76 struct string_list *find_in_path(char *path, char *filename); 77 struct string_list *find_in_path(char *path, char *filename);
77 void utoa_to_buf(unsigned n, char *buf, unsigned buflen); 78 void utoa_to_buf(unsigned n, char *buf, unsigned buflen);
78 void itoa_to_buf(int n, char *buf, unsigned buflen); 79 void itoa_to_buf(int n, char *buf, unsigned buflen);
79 char *utoa(unsigned n); 80 char *utoa(unsigned n);
80 char *itoa(int n); 81 char *itoa(int n);