Lines Matching defs:buf
41 #define SAFE_GETCWD(cleanup_fn, buf, size) \
42 safe_getcwd(__FILE__, __LINE__, (cleanup_fn), (buf), (size))
69 #define SAFE_READ(cleanup_fn, len_strict, fildes, buf, nbyte) \
71 (buf), (nbyte))
101 #define SAFE_READLINK(cleanup_fn, path, buf, bufsize) \
102 safe_readlink(__FILE__, __LINE__, cleanup_fn, (path), (buf), (bufsize))
107 #define SAFE_WRITE(cleanup_fn, len_strict, fildes, buf, nbyte) \
109 (buf), (nbyte))
218 void (cleanup_fn)(void), const char *path, struct stat *buf)
222 rval = stat(path, buf);
226 "%s:%d: stat(%s,%p) failed", file, lineno, path, buf);
231 #define SAFE_STAT(cleanup_fn, path, buf) \
232 safe_stat(__FILE__, __LINE__, (cleanup_fn), (path), (buf))
235 void (cleanup_fn)(void), int fd, struct stat *buf)
239 rval = fstat(fd, buf);
243 "%s:%d: fstat(%d,%p) failed", file, lineno, fd, buf);
248 #define SAFE_FSTAT(cleanup_fn, fd, buf) \
249 safe_fstat(__FILE__, __LINE__, (cleanup_fn), (fd), (buf))
252 void (cleanup_fn)(void), const char *path, struct stat *buf)
256 rval = lstat(path, buf);
260 "%s:%d: lstat(%s,%p) failed", file, lineno, path, buf);
265 #define SAFE_LSTAT(cleanup_fn, path, buf) \
266 safe_lstat(__FILE__, __LINE__, (cleanup_fn), (path), (buf))