Lines Matching refs:file

20 char *safe_basename(const char *file, const int lineno,  in safe_basename()  argument
29 file, lineno, path); in safe_basename()
36 safe_chdir(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_chdir() argument
45 file, lineno, path); in safe_chdir()
52 safe_close(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_close() argument
61 file, lineno, fildes); in safe_close()
68 safe_creat(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_creat() argument
77 file, lineno, pathname, mode); in safe_creat()
83 char *safe_dirname(const char *file, const int lineno, in safe_dirname() argument
92 file, lineno, path); in safe_dirname()
98 char *safe_getcwd(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_getcwd() argument
107 file, lineno, buf, size); in safe_getcwd()
113 struct passwd *safe_getpwnam(const char *file, const int lineno, in safe_getpwnam() argument
122 file, lineno, name); in safe_getpwnam()
129 safe_getrusage(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_getrusage() argument
138 file, lineno, who, usage); in safe_getrusage()
144 void *safe_malloc(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_malloc() argument
153 file, lineno, size); in safe_malloc()
159 int safe_mkdir(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_mkdir() argument
168 file, lineno, pathname, mode); in safe_mkdir()
174 int safe_rmdir(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_rmdir() argument
183 file, lineno, pathname); in safe_rmdir()
189 int safe_munmap(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_munmap() argument
198 file, lineno, addr, length); in safe_munmap()
204 int safe_open(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_open() argument
219 file, lineno, pathname, oflags, mode); in safe_open()
225 int safe_pipe(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_pipe() argument
234 file, lineno, fildes[0], fildes[1]); in safe_pipe()
240 ssize_t safe_read(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_read() argument
249 file, lineno, fildes, buf, nbyte, rval); in safe_read()
255 ssize_t safe_pread(const char *file, const int lineno, void (*cleanup_fn)(void), in safe_pread() argument
265 file, lineno, fildes, buf, nbyte, offset, rval); in safe_pread()
271 int safe_setegid(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_setegid() argument
280 file, lineno, (unsigned) egid); in safe_setegid()
286 int safe_seteuid(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_seteuid() argument
295 file, lineno, (unsigned) euid); in safe_seteuid()
301 int safe_setgid(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_setgid() argument
310 file, lineno, (unsigned) gid); in safe_setgid()
316 int safe_setuid(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_setuid() argument
325 file, lineno, (unsigned) uid); in safe_setuid()
331 int safe_getresuid(const char *file, const int lineno, void (*cleanup_fn)(void), in safe_getresuid() argument
340 file, lineno, ruid, euid, suid); in safe_getresuid()
346 int safe_getresgid(const char *file, const int lineno, void (*cleanup_fn)(void), in safe_getresgid() argument
355 file, lineno, rgid, egid, sgid); in safe_getresgid()
361 int safe_unlink(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_unlink() argument
370 file, lineno, pathname); in safe_unlink()
377 int safe_link(const char *file, const int lineno, in safe_link() argument
388 file, lineno, oldpath, newpath); in safe_link()
394 int safe_linkat(const char *file, const int lineno, in safe_linkat() argument
405 file, lineno, olddirfd, oldpath, newdirfd, in safe_linkat()
412 ssize_t safe_readlink(const char *file, const int lineno, in safe_readlink() argument
423 file, lineno, path, buf, bufsize); in safe_readlink()
429 int safe_symlink(const char *file, const int lineno, in safe_symlink() argument
440 file, lineno, oldpath, newpath); in safe_symlink()
446 ssize_t safe_write(const char *file, const int lineno, void (cleanup_fn) (void), in safe_write() argument
455 file, lineno, fildes, buf, rval); in safe_write()
461 ssize_t safe_pwrite(const char *file, const int lineno, in safe_pwrite() argument
471 file, lineno, fildes, buf, rval, offset); in safe_pwrite()
477 long safe_strtol(const char *file, const int lineno, in safe_strtol() argument
489 "%s:%d: strtol(%s) failed", file, lineno, str); in safe_strtol()
494 "%s:%d: strtol(%s): Invalid value", file, lineno, str); in safe_strtol()
500 file, lineno, str, rval, min, max); in safe_strtol()
506 unsigned long safe_strtoul(const char *file, const int lineno, in safe_strtoul() argument
519 "%s:%d: strtoul(%s) failed", file, lineno, str); in safe_strtoul()
525 file, lineno, str, rval, min, max); in safe_strtoul()
530 "Invalid value: '%s' at %s:%d", str, file, lineno); in safe_strtoul()
536 long safe_sysconf(const char *file, const int lineno, in safe_sysconf() argument
548 file, lineno, name); in safe_sysconf()
553 file, lineno, name); in safe_sysconf()
560 int safe_chmod(const char *file, const int lineno, in safe_chmod() argument
570 file, lineno, path, mode); in safe_chmod()
576 int safe_fchmod(const char *file, const int lineno, in safe_fchmod() argument
586 file, lineno, fd, mode); in safe_fchmod()
592 int safe_chown(const char *file, const int lineno, void (cleanup_fn)(void), in safe_chown() argument
602 file, lineno, path, owner, group); in safe_chown()
608 int safe_fchown(const char *file, const int lineno, void (cleanup_fn)(void), in safe_fchown() argument
618 file, lineno, fd, owner, group); in safe_fchown()
624 pid_t safe_wait(const char *file, const int lineno, void (cleanup_fn)(void), in safe_wait() argument
633 file, lineno, status); in safe_wait()
639 pid_t safe_waitpid(const char *file, const int lineno, void (cleanup_fn)(void), in safe_waitpid() argument
648 file, lineno, pid, status, opts); in safe_waitpid()
654 void *safe_memalign(const char *file, const int lineno, in safe_memalign() argument
662 file, lineno); in safe_memalign()
667 int safe_kill(const char *file, const int lineno, void (cleanup_fn)(void), in safe_kill() argument
677 file, lineno, pid, tst_strsig(sig)); in safe_kill()
683 int safe_mkfifo(const char *file, const int lineno, in safe_mkfifo() argument
693 file, lineno, pathname, mode); in safe_mkfifo()
699 int safe_rename(const char *file, const int lineno, void (*cleanup_fn)(void), in safe_rename() argument
709 file, lineno, oldpath, newpath); in safe_rename()
715 int safe_mount(const char *file, const int lineno, void (*cleanup_fn)(void), in safe_mount() argument
727 file, lineno, source, target, filesystemtype, in safe_mount()
734 int safe_umount(const char *file, const int lineno, void (*cleanup_fn)(void), in safe_umount() argument
744 file, lineno, target); in safe_umount()
750 DIR* safe_opendir(const char *file, const int lineno, void (cleanup_fn)(void), in safe_opendir() argument
759 "%s:%d: opendir(%s) failed", file, lineno, name); in safe_opendir()
765 int safe_closedir(const char *file, const int lineno, void (cleanup_fn)(void), in safe_closedir() argument
774 "%s:%d: closedir(%p) failed", file, lineno, dirp); in safe_closedir()
780 struct dirent *safe_readdir(const char *file, const int lineno, void (cleanup_fn)(void), in safe_readdir() argument
791 "%s:%d: readdir(%p) failed", file, lineno, dirp); in safe_readdir()