Lines Matching refs:perror_exit
122 if (fflush(stdout) || ferror(stdout)) perror_exit("write"); in xprintf()
127 if (EOF == puts(s) || fflush(stdout) || ferror(stdout)) perror_exit("write"); in xputs()
133 perror_exit("write"); in xputc()
138 if (fflush(stdout) || ferror(stdout)) perror_exit("write");; in xflush()
147 if (pid == -1) perror_exit("vfork"); in xvforkwrap()
184 if (pipe(cestnepasun+(2*pid))) perror_exit("pipe"); in xpopen_both()
290 if (access(path, flags)) perror_exit("Can't access '%s'", path); in xaccess()
296 if (unlink(path)) perror_exit("unlink '%s'", path); in xunlink()
315 if (pipe(pp)) perror_exit("xpipe"); in xpipe()
320 if (close(fd)) perror_exit("xclose"); in xclose()
327 if (fd == -1) perror_exit("xdup"); in xdup()
336 if (!f) perror_exit("xfdopen"); in xfdopen()
345 if (!f) perror_exit("No file %s", path); in xfopen()
353 if (ret < 0) perror_exit("xread"); in xread()
360 if (len != readall(fd, buf, len)) perror_exit("xreadall"); in xreadall()
369 if (len != writeall(fd, buf, len)) perror_exit("xwrite"); in xwrite()
377 if (offset<0) perror_exit("lseek"); in xlseek()
385 if (!buf) perror_exit("xgetcwd"); in xgetcwd()
392 if(stat(path, st)) perror_exit("Can't stat %s", path); in xstat()
532 if (!group) perror_exit("gid %ld", (long)gid); in xgetgrgid()
547 if (!up) perror_exit("user '%s'", user); in xgetpwnamid()
563 if (!gr) perror_exit("group '%s'", group); in xgetgrnamid()
572 if (!up) perror_exit("user '%s'", name); in xgetpwnam()
580 if (!gr) perror_exit("group '%s'", name); in xgetgrnam()
590 || setuid(pwd->pw_uid)) perror_exit("xsetuser '%s'", pwd->pw_name); in xsetuser()
619 if (!(buf = readfile(name, buf, len))) perror_exit("Bad '%s'", name); in xreadfile()
630 if (rc == -1 && errno) perror_exit("ioctl %x", request); in xioctl()
724 if (new ? setenv("TZ", new, 1) : unsetenv("TZ")) perror_exit("setenv"); in xtzset()
738 if (sigaction(signal, sa, 0)) perror_exit("xsignal %d", signal); in xsignal()