Searched refs:fm_fd (Results 1 - 2 of 2) sorted by relevance
/freebsd-10.2-release/tools/regression/filemon/ |
H A D | filemontest.c | 54 int fm_fd, fm_log; local 56 if ((fm_fd = open("/dev/filemon", O_RDWR)) == -1) 61 if (ioctl(fm_fd, FILEMON_SET_FD, &fm_log) == -1) 65 (void)fcntl(fm_fd, F_SETFD, FD_CLOEXEC); 71 if (ioctl(fm_fd, FILEMON_SET_PID, &child) == -1) 79 close(fm_fd);
|
/freebsd-10.2-release/usr.bin/script/ |
H A D | script.c | 103 int fm_fd, fm_log; local 109 fm_fd = -1; /* Shut up stupid "may be used uninitialized" GCC 161 if ((fm_fd = open("/dev/filemon", O_RDWR)) == -1) 166 if (ioctl(fm_fd, FILEMON_SET_FD, &fm_log) < 0) 170 (void)fcntl(fm_fd, F_SETFD, FD_CLOEXEC); 228 if (fflg && ioctl(fm_fd, FILEMON_SET_PID, &child) < 0)
|
Completed in 210 milliseconds