Lines Matching full:fname
53 static char fname[BUF_SIZE];
68 FAN_CLOSE | FAN_OPEN, AT_FDCWD, fname) < 0) {
72 "failed", fd_notify, fname);
78 fd = SAFE_OPEN(fname, O_RDONLY);
97 fd = SAFE_OPEN(fname, O_RDWR | O_CREAT, 0700);
101 SAFE_WRITE(1, fd, fname, strlen(fname));
123 FAN_ACCESS, AT_FDCWD, fname) < 0) {
127 "AT_FDCWD, %s) failed", fd_notify, fname);
130 fd = SAFE_OPEN(fname, O_RDWR);
146 SAFE_WRITE(1, fd, fname, 1);
173 FAN_OPEN | FAN_CLOSE, AT_FDCWD, fname) < 0) {
179 fname);
183 fd = SAFE_OPEN(fname, O_RDWR);
185 SAFE_WRITE(1, fd, fname, 1);
193 fd = SAFE_OPEN(fname, O_RDWR);
203 FAN_OPEN | FAN_CLOSE, AT_FDCWD, fname) < 0) {
208 fname);
259 if (ret != (int)strlen(fname)) {
267 } else if (memcmp(buf, fname, strlen(fname))) {
304 FAN_CLOSE | FAN_OPEN, AT_FDCWD, fname) < 0) {
308 "failed", fd_notify, fname);
314 sprintf(fname, "tfile_%d", getpid());
315 fd = SAFE_OPEN(fname, O_RDWR | O_CREAT, 0700);
316 SAFE_WRITE(1, fd, fname, 1);