diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-10-14 02:23:43 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-10-14 02:23:43 +0000 |
commit | 9e617927e057d79ceb2ac4869b18b1e84567dc68 (patch) | |
tree | 37b7584ae40b99edb5583fbc4392b62ffdadf278 /util-linux/mdev.c | |
parent | 6147e0907e5b5e3a07a4c8976097a585faaa3895 (diff) | |
download | busybox-w32-9e617927e057d79ceb2ac4869b18b1e84567dc68.tar.gz busybox-w32-9e617927e057d79ceb2ac4869b18b1e84567dc68.tar.bz2 busybox-w32-9e617927e057d79ceb2ac4869b18b1e84567dc68.zip |
add open_read_close() and similar stuff
git-svn-id: svn://busybox.net/trunk/busybox@16377 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'util-linux/mdev.c')
-rw-r--r-- | util-linux/mdev.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c index f43393692..1df144fa9 100644 --- a/util-linux/mdev.c +++ b/util-linux/mdev.c | |||
@@ -39,10 +39,8 @@ static void make_device(char *path, int delete) | |||
39 | 39 | ||
40 | if (!delete) { | 40 | if (!delete) { |
41 | strcat(path, "/dev"); | 41 | strcat(path, "/dev"); |
42 | fd = open(path, O_RDONLY); | 42 | len = open_read_close(path, temp + 1, 64); |
43 | len = read(fd, temp + 1, 64); | ||
44 | *temp++ = 0; | 43 | *temp++ = 0; |
45 | close(fd); | ||
46 | if (len < 1) return; | 44 | if (len < 1) return; |
47 | } | 45 | } |
48 | 46 | ||