Mercurial > hg > toybox
comparison lib/lib.h @ 292:b4077be6c746
Update mdev to work around the newest sysfs api breakage in the 2.6.25 kernel.
(Yeah, I know sysfs hasn't actually got an API, but I like to pretend...)
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 12 May 2008 00:52:27 -0500 |
parents | 603275a05524 |
children | 52600eee8dd6 |
comparison
equal
deleted
inserted
replaced
291:620a2eab6b82 | 292:b4077be6c746 |
---|---|
34 | 34 |
35 // dirtree.c | 35 // dirtree.c |
36 struct dirtree { | 36 struct dirtree { |
37 struct dirtree *next, *child, *parent; | 37 struct dirtree *next, *child, *parent; |
38 struct stat st; | 38 struct stat st; |
39 int depth; | |
39 char name[]; | 40 char name[]; |
40 }; | 41 }; |
41 | 42 |
42 struct dirtree *dirtree_add_node(char *path); | 43 struct dirtree *dirtree_add_node(char *path); |
43 struct dirtree *dirtree_read(char *path, struct dirtree *parent, | 44 struct dirtree *dirtree_read(char *path, struct dirtree *parent, |
73 void xreadall(int fd, void *buf, size_t len); | 74 void xreadall(int fd, void *buf, size_t len); |
74 void xwrite(int fd, void *buf, size_t len); | 75 void xwrite(int fd, void *buf, size_t len); |
75 char *xgetcwd(void); | 76 char *xgetcwd(void); |
76 void xstat(char *path, struct stat *st); | 77 void xstat(char *path, struct stat *st); |
77 char *xabspath(char *path); | 78 char *xabspath(char *path); |
79 void xchdir(char *path); | |
78 void xmkpath(char *path, int mode); | 80 void xmkpath(char *path, int mode); |
79 struct string_list *find_in_path(char *path, char *filename); | 81 struct string_list *find_in_path(char *path, char *filename); |
80 void utoa_to_buf(unsigned n, char *buf, unsigned buflen); | 82 void utoa_to_buf(unsigned n, char *buf, unsigned buflen); |
81 void itoa_to_buf(int n, char *buf, unsigned buflen); | 83 void itoa_to_buf(int n, char *buf, unsigned buflen); |
82 char *utoa(unsigned n); | 84 char *utoa(unsigned n); |