Home | History | Annotate | Download | only in inotify

Lines Matching defs:fname

60 static char fname[BUF_SIZE];
83 if (chmod(fname, 0755) < 0) {
85 "chmod(%s, 0755) failed", fname);
90 if ((fd = open(fname, O_RDONLY)) == -1) {
92 "open(%s, O_RDWR|O_CREAT,0700) failed", fname);
105 tst_brkm(TBROK, cleanup, "close(%s) failed", fname);
110 if ((fd = open(fname, O_RDWR | O_CREAT, 0700)) == -1) {
112 "open(%s, O_RDWR|O_CREAT,0700) failed", fname);
119 "write(%d, %s, 1) failed", fd, fname);
125 tst_brkm(TBROK, cleanup, "close(%s) failed", fname);
204 sprintf(fname, "tfile_%d", getpid());
205 if ((fd = open(fname, O_RDWR | O_CREAT, 0700)) == -1) {
207 "open(%s, O_RDWR|O_CREAT,0700) failed", fname);
209 if ((write(fd, fname, 1)) == -1) {
211 fd, fname);
216 tst_brkm(TBROK, cleanup, "close(%s) failed", fname);
228 if ((wd = myinotify_add_watch(fd_notify, fname, IN_ALL_EVENTS)) < 0) {
231 fd_notify, fname);