From dc73119e1d42e969ba7081a1e15dbab7811721c6 Mon Sep 17 00:00:00 2001 From: herbert Date: Wed, 2 Mar 2005 19:46:59 +1100 Subject: Renamed error to sh_error. --- src/redir.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/redir.c') diff --git a/src/redir.c b/src/redir.c index 9bebcb6..e7bcd50 100644 --- a/src/redir.c +++ b/src/redir.c @@ -157,7 +157,7 @@ redirect(union node *redir, int flags) if (i != EBADF) { const char *m = strerror(i); close(newfd); - error("%d: %s", fd, m); + sh_error("%d: %s", fd, m); /* NOTREACHED */ } } else { @@ -238,9 +238,9 @@ openredirect(union node *redir) return f; ecreate: - error("cannot create %s: %s", fname, errmsg(errno, E_CREAT)); + sh_error("cannot create %s: %s", fname, errmsg(errno, E_CREAT)); eopen: - error("cannot open %s: %s", fname, errmsg(errno, E_OPEN)); + sh_error("cannot open %s: %s", fname, errmsg(errno, E_OPEN)); } @@ -294,7 +294,7 @@ openhere(union node *redir) size_t len = 0; if (pipe(pip) < 0) - error("Pipe call failed"); + sh_error("Pipe call failed"); if (redir->type == NHERE) { len = strlen(redir->nhere.doc->narg.text); if (len <= PIPESIZE) { @@ -401,7 +401,7 @@ copyfd(int from, int to) if (errno2 == EMFILE) return EMPTY; else - error("%d: %s", from, strerror(errno2)); + sh_error("%d: %s", from, strerror(errno2)); } return newfd; } -- cgit 1.4.1 rc/log/bin/shotty.c'>
path: root/bin/shotty.c (unfollow)
Commit message (Expand)Author
2020-09-20Add The Awakened KingdomJune McEnroe
2020-09-12Move /opt/local back, cheat port select to use system manJune McEnroe
2020-09-12Move /opt/local behind /usr againJune McEnroe
2020-09-12Enable toc in cgit renderings of man pagesJune McEnroe
2020-09-11Install mandoc on macOSJune McEnroe
2020-09-11Rewrite install script yet againJune McEnroe
2020-09-11Remove NetBSD from install scriptJune McEnroe
2020-09-11Use MacPorts rather than pkgsrcJune McEnroe
2020-09-11Add debian VM name to sshJune McEnroe
2020-09-11Add influencer tweetJune McEnroe
2020-09-10Add The Kingdom of GodsJune McEnroe
2020-09-07Add SunglassesJune McEnroe
2020-09-06Add Between the BreathsJune McEnroe
2020-09-04Open /dev/tty in nudgeJune McEnroe
2020-09-04Add nudgeJune McEnroe
2020-09-03Build fbclock with -lzJune McEnroe
2020-08-29Add tweets from retweetsJune McEnroe