Lines Matching refs:perror_exit

64   if (ret == MAP_FAILED) perror_exit("mmap");  in xmmap()
144 if (fflush(stdout) || ferror(stdout)) perror_exit("write"); in xflush()
163 if (out<1) perror_exit("write"); in xputsl()
185 if (EOF == fputc(c, stdout)) perror_exit("write"); in xputc()
195 if (pid == -1) perror_exit("vfork"); in xvforkwrap()
233 if (pipe(cestnepasun+(2*pid))) perror_exit("pipe"); in xpopen_both()
353 if (access(path, flags)) perror_exit("Can't access '%s'", path); in xaccess()
359 if (unlink(path)) perror_exit("unlink '%s'", path); in xunlink()
381 if (pipe(pp)) perror_exit("xpipe"); in xpipe()
386 if (close(fd)) perror_exit("xclose"); in xclose()
393 if (fd == -1) perror_exit("xdup"); in xdup()
417 if (rename(from, to)) perror_exit("rename %s -> %s", from, to); in xrename()
460 if (!f) perror_exit("xfdopen"); in xfdopen()
469 if (!f) perror_exit("No file %s", path); in xfopen()
477 if (ret < 0) perror_exit("xread"); in xread()
484 if (len != readall(fd, buf, len)) perror_exit("xreadall"); in xreadall()
493 if (len != writeall(fd, buf, len)) perror_exit("xwrite"); in xwrite()
501 if (offset<0) perror_exit("lseek"); in xlseek()
509 if (!buf) perror_exit("xgetcwd"); in xgetcwd()
516 if(stat(path, st)) perror_exit("Can't stat %s", path); in xstat()
646 if (chdir(path)) perror_exit("chdir '%s'", path); in xchdir()
666 if (!group) perror_exit("gid %ld", (long)gid); in xgetgrgid()
702 if (!up) perror_exit("user '%s'", name); in xgetpwnam()
710 if (!gr) perror_exit("group '%s'", name); in xgetgrnam()
720 || setuid(pwd->pw_uid)) perror_exit("xsetuser '%s'", pwd->pw_name); in xsetuser()
749 if (!(buf = readfile(name, buf, len))) perror_exit("Bad '%s'", name); in xreadfile()
762 if (rc == -1 && errno) perror_exit("ioctl %x", request); in xioctl()
861 if (errno) perror_exit("strtod %s", s); in xstrtod()
926 if (new ? setenv("TZ", new, 1) : unsetenv("TZ")) perror_exit("setenv"); in xtzset()
941 if (sigaction(signal, sa, 0)) perror_exit("xsignal %d", signal); in xsignal_flags()