diff options
author | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-07-16 08:14:35 +0000 |
---|---|---|
committer | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-07-16 08:14:35 +0000 |
commit | a15cdc358e5f9d1cb517e2b2e490ac209b0dfa17 (patch) | |
tree | fac906b4fa40a68c53cecf20215a7a25b3b1cab6 /shell | |
parent | a4b7afd4143063613cf88fb5304803e424f5c72a (diff) | |
download | busybox-w32-a15cdc358e5f9d1cb517e2b2e490ac209b0dfa17.tar.gz busybox-w32-a15cdc358e5f9d1cb517e2b2e490ac209b0dfa17.tar.bz2 busybox-w32-a15cdc358e5f9d1cb517e2b2e490ac209b0dfa17.zip |
Cleaup read() and write() variants, plus a couple of new functions like
xlseek and fdlength() for the new mkswap.
git-svn-id: svn://busybox.net/trunk/busybox@15703 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/shell/ash.c b/shell/ash.c index de8d06e90..5031ae153 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -3322,7 +3322,7 @@ evalcommand(union node *cmd, int flags) | |||
3322 | } | 3322 | } |
3323 | sp = arglist.list; | 3323 | sp = arglist.list; |
3324 | } | 3324 | } |
3325 | bb_full_write(preverrout_fd, "\n", 1); | 3325 | full_write(preverrout_fd, "\n", 1); |
3326 | } | 3326 | } |
3327 | 3327 | ||
3328 | cmd_is_exec = 0; | 3328 | cmd_is_exec = 0; |
@@ -4559,7 +4559,7 @@ expandhere(union node *arg, int fd) | |||
4559 | { | 4559 | { |
4560 | herefd = fd; | 4560 | herefd = fd; |
4561 | expandarg(arg, (struct arglist *)NULL, 0); | 4561 | expandarg(arg, (struct arglist *)NULL, 0); |
4562 | bb_full_write(fd, stackblock(), expdest - (char *)stackblock()); | 4562 | full_write(fd, stackblock(), expdest - (char *)stackblock()); |
4563 | } | 4563 | } |
4564 | 4564 | ||
4565 | 4565 | ||
@@ -8378,7 +8378,7 @@ growstackstr(void) | |||
8378 | { | 8378 | { |
8379 | size_t len = stackblocksize(); | 8379 | size_t len = stackblocksize(); |
8380 | if (herefd >= 0 && len >= 1024) { | 8380 | if (herefd >= 0 && len >= 1024) { |
8381 | bb_full_write(herefd, stackblock(), len); | 8381 | full_write(herefd, stackblock(), len); |
8382 | return stackblock(); | 8382 | return stackblock(); |
8383 | } | 8383 | } |
8384 | growstackblock(); | 8384 | growstackblock(); |
@@ -10973,7 +10973,7 @@ openhere(union node *redir) | |||
10973 | if (redir->type == NHERE) { | 10973 | if (redir->type == NHERE) { |
10974 | len = strlen(redir->nhere.doc->narg.text); | 10974 | len = strlen(redir->nhere.doc->narg.text); |
10975 | if (len <= PIPESIZE) { | 10975 | if (len <= PIPESIZE) { |
10976 | bb_full_write(pip[1], redir->nhere.doc->narg.text, len); | 10976 | full_write(pip[1], redir->nhere.doc->narg.text, len); |
10977 | goto out; | 10977 | goto out; |
10978 | } | 10978 | } |
10979 | } | 10979 | } |
@@ -10987,7 +10987,7 @@ openhere(union node *redir) | |||
10987 | #endif | 10987 | #endif |
10988 | signal(SIGPIPE, SIG_DFL); | 10988 | signal(SIGPIPE, SIG_DFL); |
10989 | if (redir->type == NHERE) | 10989 | if (redir->type == NHERE) |
10990 | bb_full_write(pip[1], redir->nhere.doc->narg.text, len); | 10990 | full_write(pip[1], redir->nhere.doc->narg.text, len); |
10991 | else | 10991 | else |
10992 | expandhere(redir->nhere.doc, pip[1]); | 10992 | expandhere(redir->nhere.doc, pip[1]); |
10993 | _exit(0); | 10993 | _exit(0); |