aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-07-16 08:14:35 +0000
committerRob Landley <rob@landley.net>2006-07-16 08:14:35 +0000
commit534374755d618c9c36c9940c82756241c4b25a67 (patch)
treefac906b4fa40a68c53cecf20215a7a25b3b1cab6 /shell
parentafb94ecf2bb6c53ce2a381d6ce45a426243c76d9 (diff)
downloadbusybox-w32-534374755d618c9c36c9940c82756241c4b25a67.tar.gz
busybox-w32-534374755d618c9c36c9940c82756241c4b25a67.tar.bz2
busybox-w32-534374755d618c9c36c9940c82756241c4b25a67.zip
Cleaup read() and write() variants, plus a couple of new functions like
xlseek and fdlength() for the new mkswap.
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c10
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);