• Home
  • Raw
  • Download

Lines Matching refs:cleanup_fn

23 #define SAFE_BASENAME(cleanup_fn, path)	\  argument
24 safe_basename(__FILE__, __LINE__, (cleanup_fn), (path))
26 #define SAFE_CHDIR(cleanup_fn, path) \ argument
27 safe_chdir(__FILE__, __LINE__, (cleanup_fn), (path))
29 #define SAFE_CLOSE(cleanup_fn, fd) ({ \ argument
30 int ret = safe_close(__FILE__, __LINE__, (cleanup_fn), (fd)); \
35 #define SAFE_CREAT(cleanup_fn, pathname, mode) \ argument
36 safe_creat(__FILE__, __LINE__, cleanup_fn, (pathname), (mode))
38 #define SAFE_DIRNAME(cleanup_fn, path) \ argument
39 safe_dirname(__FILE__, __LINE__, (cleanup_fn), (path))
41 #define SAFE_GETCWD(cleanup_fn, buf, size) \ argument
42 safe_getcwd(__FILE__, __LINE__, (cleanup_fn), (buf), (size))
44 #define SAFE_GETPWNAM(cleanup_fn, name) \ argument
45 safe_getpwnam(__FILE__, __LINE__, cleanup_fn, (name))
47 #define SAFE_GETRUSAGE(cleanup_fn, who, usage) \ argument
48 safe_getrusage(__FILE__, __LINE__, (cleanup_fn), (who), (usage))
50 #define SAFE_MALLOC(cleanup_fn, size) \ argument
51 safe_malloc(__FILE__, __LINE__, (cleanup_fn), (size))
53 #define SAFE_MKDIR(cleanup_fn, pathname, mode) \ argument
54 safe_mkdir(__FILE__, __LINE__, (cleanup_fn), (pathname), (mode))
56 #define SAFE_RMDIR(cleanup_fn, pathname) \ argument
57 safe_rmdir(__FILE__, __LINE__, (cleanup_fn), (pathname))
59 #define SAFE_MUNMAP(cleanup_fn, addr, length) \ argument
60 safe_munmap(__FILE__, __LINE__, (cleanup_fn), (addr), (length))
62 #define SAFE_OPEN(cleanup_fn, pathname, oflags, ...) \ argument
63 safe_open(__FILE__, __LINE__, (cleanup_fn), (pathname), (oflags), \
66 #define SAFE_PIPE(cleanup_fn, fildes) \ argument
67 safe_pipe(__FILE__, __LINE__, cleanup_fn, (fildes))
69 #define SAFE_READ(cleanup_fn, len_strict, fildes, buf, nbyte) \ argument
70 safe_read(__FILE__, __LINE__, cleanup_fn, (len_strict), (fildes), \
73 #define SAFE_SETEGID(cleanup_fn, egid) \ argument
74 safe_setegid(__FILE__, __LINE__, cleanup_fn, (egid))
76 #define SAFE_SETEUID(cleanup_fn, euid) \ argument
77 safe_seteuid(__FILE__, __LINE__, cleanup_fn, (euid))
79 #define SAFE_SETGID(cleanup_fn, gid) \ argument
80 safe_setgid(__FILE__, __LINE__, cleanup_fn, (gid))
82 #define SAFE_SETUID(cleanup_fn, uid) \ argument
83 safe_setuid(__FILE__, __LINE__, cleanup_fn, (uid))
85 #define SAFE_GETRESUID(cleanup_fn, ruid, euid, suid) \ argument
86 safe_getresuid(__FILE__, __LINE__, cleanup_fn, (ruid), (euid), (suid))
88 #define SAFE_GETRESGID(cleanup_fn, rgid, egid, sgid) \ argument
89 safe_getresgid(__FILE__, __LINE__, cleanup_fn, (rgid), (egid), (sgid))
91 #define SAFE_UNLINK(cleanup_fn, pathname) \ argument
92 safe_unlink(__FILE__, __LINE__, cleanup_fn, (pathname))
94 #define SAFE_LINK(cleanup_fn, oldpath, newpath) \ argument
95 safe_link(__FILE__, __LINE__, cleanup_fn, (oldpath), (newpath))
97 #define SAFE_LINKAT(cleanup_fn, olddirfd, oldpath, newdirfd, newpath, flags) \ argument
98 safe_linkat(__FILE__, __LINE__, cleanup_fn, (olddirfd), (oldpath), \
101 #define SAFE_READLINK(cleanup_fn, path, buf, bufsize) \ argument
102 safe_readlink(__FILE__, __LINE__, cleanup_fn, (path), (buf), (bufsize))
104 #define SAFE_SYMLINK(cleanup_fn, oldpath, newpath) \ argument
105 safe_symlink(__FILE__, __LINE__, cleanup_fn, (oldpath), (newpath))
107 #define SAFE_WRITE(cleanup_fn, len_strict, fildes, buf, nbyte) \ argument
108 safe_write(__FILE__, __LINE__, cleanup_fn, (len_strict), (fildes), \
111 #define SAFE_STRTOL(cleanup_fn, str, min, max) \ argument
112 safe_strtol(__FILE__, __LINE__, cleanup_fn, (str), (min), (max))
114 #define SAFE_STRTOUL(cleanup_fn, str, min, max) \ argument
115 safe_strtoul(__FILE__, __LINE__, cleanup_fn, (str), (min), (max))
117 #define SAFE_SYSCONF(cleanup_fn, name) \ argument
118 safe_sysconf(__FILE__, __LINE__, cleanup_fn, name)
120 #define SAFE_CHMOD(cleanup_fn, path, mode) \ argument
121 safe_chmod(__FILE__, __LINE__, (cleanup_fn), (path), (mode))
123 #define SAFE_FCHMOD(cleanup_fn, fd, mode) \ argument
124 safe_fchmod(__FILE__, __LINE__, (cleanup_fn), (fd), (mode))
126 #define SAFE_CHOWN(cleanup_fn, path, owner, group) \ argument
127 safe_chown(__FILE__, __LINE__, (cleanup_fn), (path), (owner), (group))
129 #define SAFE_FCHOWN(cleanup_fn, fd, owner, group) \ argument
130 safe_fchown(__FILE__, __LINE__, (cleanup_fn), (fd), (owner), (group))
132 #define SAFE_WAIT(cleanup_fn, status) \ argument
133 safe_wait(__FILE__, __LINE__, (cleanup_fn), (status))
135 #define SAFE_WAITPID(cleanup_fn, pid, status, opts) \ argument
136 safe_waitpid(__FILE__, __LINE__, (cleanup_fn), (pid), (status), (opts))
138 #define SAFE_KILL(cleanup_fn, pid, sig) \ argument
139 safe_kill(__FILE__, __LINE__, (cleanup_fn), (pid), (sig))
141 #define SAFE_MEMALIGN(cleanup_fn, alignment, size) \ argument
142 safe_memalign(__FILE__, __LINE__, (cleanup_fn), (alignment), (size))
144 #define SAFE_MKFIFO(cleanup_fn, pathname, mode) \ argument
145 safe_mkfifo(__FILE__, __LINE__, (cleanup_fn), (pathname), (mode))
147 #define SAFE_RENAME(cleanup_fn, oldpath, newpath) \ argument
148 safe_rename(__FILE__, __LINE__, (cleanup_fn), (oldpath), (newpath))
150 #define SAFE_MOUNT(cleanup_fn, source, target, filesystemtype, \ argument
152 safe_mount(__FILE__, __LINE__, (cleanup_fn), (source), (target), \
155 #define SAFE_UMOUNT(cleanup_fn, target) \ argument
156 safe_umount(__FILE__, __LINE__, (cleanup_fn), (target))
164 void (*cleanup_fn)(void), void *addr, size_t length, in safe_mmap()
171 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_mmap()
179 #define SAFE_MMAP(cleanup_fn, addr, length, prot, flags, fd, offset) \ argument
180 safe_mmap(__FILE__, __LINE__, (cleanup_fn), (addr), (length), (prot), \
184 void (cleanup_fn) (void), int fd, off_t length) in safe_ftruncate()
190 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_ftruncate()
197 #define SAFE_FTRUNCATE(cleanup_fn, fd, length) \ argument
198 safe_ftruncate(__FILE__, __LINE__, cleanup_fn, (fd), (length))
201 void (cleanup_fn) (void), const char *path, off_t length) in safe_truncate()
207 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_truncate()
214 #define SAFE_TRUNCATE(cleanup_fn, path, length) \ argument
215 safe_truncate(__FILE__, __LINE__, cleanup_fn, (path), (length))
218 void (cleanup_fn)(void), const char *path, struct stat *buf) in safe_stat()
225 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_stat()
231 #define SAFE_STAT(cleanup_fn, path, buf) \ argument
232 safe_stat(__FILE__, __LINE__, (cleanup_fn), (path), (buf))
235 void (cleanup_fn)(void), int fd, struct stat *buf) in safe_fstat()
242 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_fstat()
248 #define SAFE_FSTAT(cleanup_fn, fd, buf) \ argument
249 safe_fstat(__FILE__, __LINE__, (cleanup_fn), (fd), (buf))
252 void (cleanup_fn)(void), const char *path, struct stat *buf) in safe_lstat()
259 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_lstat()
265 #define SAFE_LSTAT(cleanup_fn, path, buf) \ argument
266 safe_lstat(__FILE__, __LINE__, (cleanup_fn), (path), (buf))
269 void (cleanup_fn)(void), int fd, off_t offset, int whence) in safe_lseek()
276 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_lseek()
283 #define SAFE_LSEEK(cleanup_fn, fd, offset, whence) \ argument
284 safe_lseek(__FILE__, __LINE__, cleanup_fn, (fd), (offset), (whence))
287 void (cleanup_fn)(void), int resource, struct rlimit *rlim) in safe_getrlimit()
294 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_getrlimit()
301 #define SAFE_GETRLIMIT(cleanup_fn, resource, rlim) \ argument
302 safe_getrlimit(__FILE__, __LINE__, (cleanup_fn), (resource), (rlim))
305 void (cleanup_fn)(void), int resource, const struct rlimit *rlim) in safe_setrlimit()
312 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_setrlimit()
319 #define SAFE_SETRLIMIT(cleanup_fn, resource, rlim) \ argument
320 safe_setrlimit(__FILE__, __LINE__, (cleanup_fn), (resource), (rlim))
322 #define SAFE_OPENDIR(cleanup_fn, name) \ argument
323 safe_opendir(__FILE__, __LINE__, (cleanup_fn), (name))
325 #define SAFE_CLOSEDIR(cleanup_fn, dirp) \ argument
326 safe_closedir(__FILE__, __LINE__, (cleanup_fn), (dirp))
328 #define SAFE_READDIR(cleanup_fn, dirp) \ argument
329 safe_readdir(__FILE__, __LINE__, (cleanup_fn), (dirp))
332 #define SAFE_IOCTL(cleanup_fn, fd, request, ...) \ argument
335 tst_brkm(TBROK | TERRNO, cleanup_fn, \