Lines Matching refs:lineno
21 char *safe_basename(const char *file, const int lineno, in safe_basename() argument
30 file, lineno, path); in safe_basename()
37 safe_chdir(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_chdir() argument
46 file, lineno, path); in safe_chdir()
53 safe_close(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_close() argument
62 file, lineno, fildes); in safe_close()
69 safe_creat(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_creat() argument
78 file, lineno, pathname, mode); in safe_creat()
84 char *safe_dirname(const char *file, const int lineno, in safe_dirname() argument
93 file, lineno, path); in safe_dirname()
99 char *safe_getcwd(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_getcwd() argument
108 file, lineno, buf, size); in safe_getcwd()
114 struct passwd *safe_getpwnam(const char *file, const int lineno, in safe_getpwnam() argument
123 file, lineno, name); in safe_getpwnam()
130 safe_getrusage(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_getrusage() argument
139 file, lineno, who, usage); in safe_getrusage()
145 void *safe_malloc(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_malloc() argument
154 file, lineno, size); in safe_malloc()
160 int safe_mkdir(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_mkdir() argument
169 file, lineno, pathname, mode); in safe_mkdir()
175 int safe_rmdir(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_rmdir() argument
184 file, lineno, pathname); in safe_rmdir()
190 int safe_munmap(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_munmap() argument
199 file, lineno, addr, length); in safe_munmap()
205 int safe_open(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_open() argument
225 file, lineno, pathname, oflags, mode); in safe_open()
231 int safe_pipe(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_pipe() argument
240 file, lineno, fildes[0], fildes[1]); in safe_pipe()
246 ssize_t safe_read(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_read() argument
255 file, lineno, fildes, buf, nbyte, rval); in safe_read()
261 int safe_setegid(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_setegid() argument
270 file, lineno, (unsigned) egid); in safe_setegid()
276 int safe_seteuid(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_seteuid() argument
285 file, lineno, (unsigned) euid); in safe_seteuid()
291 int safe_setgid(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_setgid() argument
300 file, lineno, (unsigned) gid); in safe_setgid()
306 int safe_setuid(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_setuid() argument
315 file, lineno, (unsigned) uid); in safe_setuid()
321 int safe_getresuid(const char *file, const int lineno, void (*cleanup_fn)(void), in safe_getresuid() argument
330 file, lineno, ruid, euid, suid); in safe_getresuid()
336 int safe_getresgid(const char *file, const int lineno, void (*cleanup_fn)(void), in safe_getresgid() argument
345 file, lineno, rgid, egid, sgid); in safe_getresgid()
351 int safe_unlink(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_unlink() argument
360 file, lineno, pathname); in safe_unlink()
367 int safe_link(const char *file, const int lineno, in safe_link() argument
378 file, lineno, oldpath, newpath); in safe_link()
384 int safe_linkat(const char *file, const int lineno, in safe_linkat() argument
395 file, lineno, olddirfd, oldpath, newdirfd, in safe_linkat()
402 ssize_t safe_readlink(const char *file, const int lineno, in safe_readlink() argument
413 file, lineno, path, buf, bufsize); in safe_readlink()
426 int safe_symlink(const char *file, const int lineno, in safe_symlink() argument
437 file, lineno, oldpath, newpath); in safe_symlink()
443 ssize_t safe_write(const char *file, const int lineno, void (cleanup_fn) (void), in safe_write() argument
452 file, lineno, fildes, buf, rval); in safe_write()
458 long safe_strtol(const char *file, const int lineno, in safe_strtol() argument
470 "%s:%d: strtol(%s) failed", file, lineno, str); in safe_strtol()
476 "%s:%d: strtol(%s): Invalid value", file, lineno, str); in safe_strtol()
483 file, lineno, str, rval, min, max); in safe_strtol()
490 unsigned long safe_strtoul(const char *file, const int lineno, in safe_strtoul() argument
503 "%s:%d: strtoul(%s) failed", file, lineno, str); in safe_strtoul()
510 file, lineno, str, rval, min, max); in safe_strtoul()
516 "Invalid value: '%s' at %s:%d", str, file, lineno); in safe_strtoul()
523 long safe_sysconf(const char *file, const int lineno, in safe_sysconf() argument
535 file, lineno, name); in safe_sysconf()
540 file, lineno, name); in safe_sysconf()
547 int safe_chmod(const char *file, const int lineno, in safe_chmod() argument
557 file, lineno, path, mode); in safe_chmod()
563 int safe_fchmod(const char *file, const int lineno, in safe_fchmod() argument
573 file, lineno, fd, mode); in safe_fchmod()
579 int safe_chown(const char *file, const int lineno, void (cleanup_fn)(void), in safe_chown() argument
589 file, lineno, path, owner, group); in safe_chown()
595 int safe_fchown(const char *file, const int lineno, void (cleanup_fn)(void), in safe_fchown() argument
605 file, lineno, fd, owner, group); in safe_fchown()
611 pid_t safe_wait(const char *file, const int lineno, void (cleanup_fn)(void), in safe_wait() argument
620 file, lineno, status); in safe_wait()
626 pid_t safe_waitpid(const char *file, const int lineno, void (cleanup_fn)(void), in safe_waitpid() argument
635 file, lineno, pid, status, opts); in safe_waitpid()
641 void *safe_memalign(const char *file, const int lineno, in safe_memalign() argument
649 file, lineno); in safe_memalign()
654 int safe_kill(const char *file, const int lineno, void (cleanup_fn)(void), in safe_kill() argument
664 file, lineno, pid, tst_strsig(sig)); in safe_kill()
670 int safe_mkfifo(const char *file, const int lineno, in safe_mkfifo() argument
680 file, lineno, pathname, mode); in safe_mkfifo()
686 int safe_rename(const char *file, const int lineno, void (*cleanup_fn)(void), in safe_rename() argument
696 file, lineno, oldpath, newpath); in safe_rename()
702 int safe_mount(const char *file, const int lineno, void (*cleanup_fn)(void), in safe_mount() argument
714 file, lineno, source, target, filesystemtype, in safe_mount()
721 int safe_umount(const char *file, const int lineno, void (*cleanup_fn)(void), in safe_umount() argument
731 file, lineno, target); in safe_umount()
737 DIR* safe_opendir(const char *file, const int lineno, void (cleanup_fn)(void), in safe_opendir() argument
746 "%s:%d: opendir(%s) failed", file, lineno, name); in safe_opendir()
752 int safe_closedir(const char *file, const int lineno, void (cleanup_fn)(void), in safe_closedir() argument
761 "%s:%d: closedir(%p) failed", file, lineno, dirp); in safe_closedir()
767 struct dirent *safe_readdir(const char *file, const int lineno, void (cleanup_fn)(void), in safe_readdir() argument
778 "%s:%d: readdir(%p) failed", file, lineno, dirp); in safe_readdir()
785 int safe_getpriority(const char *file, const int lineno, int which, id_t who) in safe_getpriority() argument
794 file, lineno, which, who); in safe_getpriority()
801 int safe_setxattr(const char *file, const int lineno, const char *path, in safe_setxattr() argument
812 "without user_xattr option", file, lineno); in safe_setxattr()
816 file, lineno); in safe_setxattr()
822 int safe_lsetxattr(const char *file, const int lineno, const char *path, in safe_lsetxattr() argument
833 "without user_xattr option", file, lineno); in safe_lsetxattr()
837 file, lineno); in safe_lsetxattr()
843 int safe_fsetxattr(const char *file, const int lineno, int fd, const char *name, in safe_fsetxattr() argument
854 "without user_xattr option", file, lineno); in safe_fsetxattr()
858 file, lineno); in safe_fsetxattr()
864 int safe_removexattr(const char *file, const int lineno, const char *path, in safe_removexattr() argument
875 "without user_xattr option", file, lineno); in safe_removexattr()
879 file, lineno); in safe_removexattr()
885 int safe_fsync(const char *file, const int lineno, int fd) in safe_fsync() argument
893 "%s:%d: fsync(%i) failed", file, lineno, fd); in safe_fsync()