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, fildes) \ argument
30 safe_close(__FILE__, __LINE__, (cleanup_fn), (fildes))
32 #define SAFE_CREAT(cleanup_fn, pathname, mode) \ argument
33 safe_creat(__FILE__, __LINE__, cleanup_fn, (pathname), (mode))
35 #define SAFE_DIRNAME(cleanup_fn, path) \ argument
36 safe_dirname(__FILE__, __LINE__, (cleanup_fn), (path))
38 #define SAFE_GETCWD(cleanup_fn, buf, size) \ argument
39 safe_getcwd(__FILE__, __LINE__, (cleanup_fn), (buf), (size))
41 #define SAFE_GETPWNAM(cleanup_fn, name) \ argument
42 safe_getpwnam(__FILE__, __LINE__, cleanup_fn, (name))
44 #define SAFE_GETRUSAGE(cleanup_fn, who, usage) \ argument
45 safe_getrusage(__FILE__, __LINE__, (cleanup_fn), (who), (usage))
47 #define SAFE_MALLOC(cleanup_fn, size) \ argument
48 safe_malloc(__FILE__, __LINE__, (cleanup_fn), (size))
50 #define SAFE_MKDIR(cleanup_fn, pathname, mode) \ argument
51 safe_mkdir(__FILE__, __LINE__, (cleanup_fn), (pathname), (mode))
53 #define SAFE_RMDIR(cleanup_fn, pathname) \ argument
54 safe_rmdir(__FILE__, __LINE__, (cleanup_fn), (pathname))
56 #define SAFE_MUNMAP(cleanup_fn, addr, length) \ argument
57 safe_munmap(__FILE__, __LINE__, (cleanup_fn), (addr), (length))
59 #define SAFE_OPEN(cleanup_fn, pathname, oflags, ...) \ argument
60 safe_open(__FILE__, __LINE__, (cleanup_fn), (pathname), (oflags), \
63 #define SAFE_PIPE(cleanup_fn, fildes) \ argument
64 safe_pipe(__FILE__, __LINE__, cleanup_fn, (fildes))
66 #define SAFE_READ(cleanup_fn, len_strict, fildes, buf, nbyte) \ argument
67 safe_read(__FILE__, __LINE__, cleanup_fn, (len_strict), (fildes), \
70 #define SAFE_PREAD(cleanup_fn, len_strict, fildes, buf, nbyte, offset) \ argument
71 safe_pread(__FILE__, __LINE__, cleanup_fn, (len_strict), (fildes), \
74 #define SAFE_SETEGID(cleanup_fn, egid) \ argument
75 safe_setegid(__FILE__, __LINE__, cleanup_fn, (egid))
77 #define SAFE_SETEUID(cleanup_fn, euid) \ argument
78 safe_seteuid(__FILE__, __LINE__, cleanup_fn, (euid))
80 #define SAFE_SETGID(cleanup_fn, gid) \ argument
81 safe_setgid(__FILE__, __LINE__, cleanup_fn, (gid))
83 #define SAFE_SETUID(cleanup_fn, uid) \ argument
84 safe_setuid(__FILE__, __LINE__, cleanup_fn, (uid))
86 #define SAFE_GETRESUID(cleanup_fn, ruid, euid, suid) \ argument
87 safe_getresuid(__FILE__, __LINE__, cleanup_fn, (ruid), (euid), (suid))
89 #define SAFE_GETRESGID(cleanup_fn, rgid, egid, sgid) \ argument
90 safe_getresgid(__FILE__, __LINE__, cleanup_fn, (rgid), (egid), (sgid))
92 #define SAFE_UNLINK(cleanup_fn, pathname) \ argument
93 safe_unlink(__FILE__, __LINE__, cleanup_fn, (pathname))
95 #define SAFE_LINK(cleanup_fn, oldpath, newpath) \ argument
96 safe_link(__FILE__, __LINE__, cleanup_fn, (oldpath), (newpath))
98 #define SAFE_LINKAT(cleanup_fn, olddirfd, oldpath, newdirfd, newpath, flags) \ argument
99 safe_linkat(__FILE__, __LINE__, cleanup_fn, (olddirfd), (oldpath), \
102 #define SAFE_READLINK(cleanup_fn, path, buf, bufsize) \ argument
103 safe_readlink(__FILE__, __LINE__, cleanup_fn, (path), (buf), (bufsize))
105 #define SAFE_SYMLINK(cleanup_fn, oldpath, newpath) \ argument
106 safe_symlink(__FILE__, __LINE__, cleanup_fn, (oldpath), (newpath))
108 #define SAFE_WRITE(cleanup_fn, len_strict, fildes, buf, nbyte) \ argument
109 safe_write(__FILE__, __LINE__, cleanup_fn, (len_strict), (fildes), \
112 #define SAFE_PWRITE(cleanup_fn, len_strict, fildes, buf, nbyte, offset) \ argument
113 safe_pwrite(__FILE__, __LINE__, cleanup_fn, (len_strict), (fildes), \
116 #define SAFE_STRTOL(cleanup_fn, str, min, max) \ argument
117 safe_strtol(__FILE__, __LINE__, cleanup_fn, (str), (min), (max))
119 #define SAFE_STRTOUL(cleanup_fn, str, min, max) \ argument
120 safe_strtoul(__FILE__, __LINE__, cleanup_fn, (str), (min), (max))
122 #define SAFE_SYSCONF(cleanup_fn, name) \ argument
123 safe_sysconf(__FILE__, __LINE__, cleanup_fn, name)
125 #define SAFE_CHMOD(cleanup_fn, path, mode) \ argument
126 safe_chmod(__FILE__, __LINE__, (cleanup_fn), (path), (mode))
128 #define SAFE_FCHMOD(cleanup_fn, fd, mode) \ argument
129 safe_fchmod(__FILE__, __LINE__, (cleanup_fn), (fd), (mode))
131 #define SAFE_CHOWN(cleanup_fn, path, owner, group) \ argument
132 safe_chown(__FILE__, __LINE__, (cleanup_fn), (path), (owner), (group))
134 #define SAFE_FCHOWN(cleanup_fn, fd, owner, group) \ argument
135 safe_fchown(__FILE__, __LINE__, (cleanup_fn), (fd), (owner), (group))
137 #define SAFE_WAIT(cleanup_fn, status) \ argument
138 safe_wait(__FILE__, __LINE__, (cleanup_fn), (status))
140 #define SAFE_WAITPID(cleanup_fn, pid, status, opts) \ argument
141 safe_waitpid(__FILE__, __LINE__, (cleanup_fn), (pid), (status), (opts))
143 #define SAFE_KILL(cleanup_fn, pid, sig) \ argument
144 safe_kill(__FILE__, __LINE__, (cleanup_fn), (pid), (sig))
146 #define SAFE_MEMALIGN(cleanup_fn, alignment, size) \ argument
147 safe_memalign(__FILE__, __LINE__, (cleanup_fn), (alignment), (size))
149 #define SAFE_MKFIFO(cleanup_fn, pathname, mode) \ argument
150 safe_mkfifo(__FILE__, __LINE__, (cleanup_fn), (pathname), (mode))
152 #define SAFE_RENAME(cleanup_fn, oldpath, newpath) \ argument
153 safe_rename(__FILE__, __LINE__, (cleanup_fn), (oldpath), (newpath))
155 #define SAFE_MOUNT(cleanup_fn, source, target, filesystemtype, \ argument
157 safe_mount(__FILE__, __LINE__, (cleanup_fn), (source), (target), \
160 #define SAFE_UMOUNT(cleanup_fn, target) \ argument
161 safe_umount(__FILE__, __LINE__, (cleanup_fn), (target))
169 void (*cleanup_fn)(void), void *addr, size_t length, in safe_mmap()
176 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_mmap()
184 #define SAFE_MMAP(cleanup_fn, addr, length, prot, flags, fd, offset) \ argument
185 safe_mmap(__FILE__, __LINE__, (cleanup_fn), (addr), (length), (prot), \
189 void (cleanup_fn) (void), int fd, off_t length) in safe_ftruncate()
195 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_ftruncate()
202 #define SAFE_FTRUNCATE(cleanup_fn, fd, length) \ argument
203 safe_ftruncate(__FILE__, __LINE__, cleanup_fn, (fd), (length))
206 void (cleanup_fn) (void), const char *path, off_t length) in safe_truncate()
212 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_truncate()
219 #define SAFE_TRUNCATE(cleanup_fn, path, length) \ argument
220 safe_truncate(__FILE__, __LINE__, cleanup_fn, (path), (length))
223 void (cleanup_fn)(void), const char *path, struct stat *buf) in safe_stat()
230 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_stat()
236 #define SAFE_STAT(cleanup_fn, path, buf) \ argument
237 safe_stat(__FILE__, __LINE__, (cleanup_fn), (path), (buf))
240 void (cleanup_fn)(void), int fd, struct stat *buf) in safe_fstat()
247 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_fstat()
253 #define SAFE_FSTAT(cleanup_fn, fd, buf) \ argument
254 safe_fstat(__FILE__, __LINE__, (cleanup_fn), (fd), (buf))
257 void (cleanup_fn)(void), const char *path, struct stat *buf) in safe_lstat()
264 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_lstat()
270 #define SAFE_LSTAT(cleanup_fn, path, buf) \ argument
271 safe_lstat(__FILE__, __LINE__, (cleanup_fn), (path), (buf))
274 void (cleanup_fn)(void), int fd, off_t offset, int whence) in safe_lseek()
281 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_lseek()
288 #define SAFE_LSEEK(cleanup_fn, fd, offset, whence) \ argument
289 safe_lseek(__FILE__, __LINE__, cleanup_fn, (fd), (offset), (whence))
292 void (cleanup_fn)(void), int resource, struct rlimit *rlim) in safe_getrlimit()
299 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_getrlimit()
306 #define SAFE_GETRLIMIT(cleanup_fn, resource, rlim) \ argument
307 safe_getrlimit(__FILE__, __LINE__, (cleanup_fn), (resource), (rlim))
310 void (cleanup_fn)(void), int resource, const struct rlimit *rlim) in safe_setrlimit()
317 tst_brkm(TBROK | TERRNO, cleanup_fn, in safe_setrlimit()
324 #define SAFE_SETRLIMIT(cleanup_fn, resource, rlim) \ argument
325 safe_setrlimit(__FILE__, __LINE__, (cleanup_fn), (resource), (rlim))
327 #define SAFE_OPENDIR(cleanup_fn, name) \ argument
328 safe_opendir(__FILE__, __LINE__, (cleanup_fn), (name))
330 #define SAFE_CLOSEDIR(cleanup_fn, dirp) \ argument
331 safe_closedir(__FILE__, __LINE__, (cleanup_fn), (dirp))
333 #define SAFE_READDIR(cleanup_fn, dirp) \ argument
334 safe_readdir(__FILE__, __LINE__, (cleanup_fn), (dirp))
337 #define SAFE_IOCTL(cleanup_fn, fd, request, ...) \ argument
340 tst_brkm(TBROK | TERRNO, cleanup_fn, \