fd 119 anacron/global.h int xopen(int fd, const char *file_name, int flags); fd 120 anacron/global.h void xclose(int fd); fd 56 anacron/lock.c lock_file(int fd) fd 69 anacron/lock.c r = fcntl(fd, F_SETLK, &sfl); fd 178 anacron/main.c xopen(int fd, const char *file_name, int flags) fd 188 anacron/main.c if (fd >= 0 && rfd != fd) fd 189 anacron/main.c die_e("Can't open %s on file-descriptor %d", file_name, fd); fd 196 anacron/main.c xclose(int fd) fd 199 anacron/main.c if (close(fd)) die_e("Can't close file descriptor %d", fd); fd 77 anacron/runjob.c file_size(int fd) fd 82 anacron/runjob.c if (fstat(fd, &st)) die_e("Can't fstat temporary file"); fd 183 anacron/runjob.c xwrite(int fd, const char *string) fd 187 anacron/runjob.c if (write(fd, string, strlen(string)) == -1) fd 284 anacron/runjob.c int fd; fd 308 anacron/runjob.c temp_file(jr); fd = jr->output_fd; fd 310 anacron/runjob.c xwrite(fd, "From: "); fd 311 anacron/runjob.c xwrite(fd, "Anacron <"); fd 312 anacron/runjob.c xwrite(fd, mailfrom); fd 313 anacron/runjob.c xwrite(fd, ">\n"); fd 314 anacron/runjob.c xwrite(fd, "To: "); fd 315 anacron/runjob.c xwrite(fd, mailto); fd 316 anacron/runjob.c xwrite(fd, "\n"); fd 317 anacron/runjob.c xwrite(fd, "MIME-Version: 1.0\n"); fd 318 anacron/runjob.c xwrite(fd, "Content-Type: text/plain; charset=\""); fd 319 anacron/runjob.c xwrite(fd, nl_langinfo(CODESET)); fd 320 anacron/runjob.c xwrite(fd, "\"\n"); fd 321 anacron/runjob.c xwrite(fd, "Subject: Anacron job '"); fd 322 anacron/runjob.c xwrite(fd, jr->ident); fd 323 anacron/runjob.c xwrite(fd, "' on "); fd 324 anacron/runjob.c xwrite(fd, hostname); fd 325 anacron/runjob.c xwrite(fd, "\n\n"); fd 333 anacron/runjob.c jr->mail_header_size = file_size(fd); fd 107 src/cron.c void set_cron_unwatched(int fd) { fd 112 src/cron.c inotify_rm_watch(fd, wd[i]); fd 118 src/cron.c void set_cron_watched(int fd) { fd 122 src/cron.c if (fd < 0) { fd 130 src/cron.c w = inotify_add_watch(fd, watchpaths[i], fd 141 src/cron.c set_cron_unwatched(fd); fd 203 src/cron.c int fd; fd 285 src/cron.c if ((fd = open(_PATH_DEVNULL, O_RDWR, 0)) >= 0) { fd 286 src/cron.c (void) dup2(fd, STDIN); fd 287 src/cron.c (void) dup2(fd, STDOUT); fd 288 src/cron.c (void) dup2(fd, STDERR); fd 289 src/cron.c if (fd != STDERR) fd 290 src/cron.c (void) close(fd); fd 323 src/cron.c fd = -1; fd 331 src/cron.c database.ifd = fd = inotify_init(); fd 332 src/cron.c fcntl(fd, F_SETFD, FD_CLOEXEC); fd 333 src/cron.c if (fd < 0) fd 335 src/cron.c set_cron_watched(fd); fd 380 src/cron.c set_cron_watched(fd); fd 485 src/cron.c set_cron_unwatched(fd); fd 487 src/cron.c if (fd >= 0 && close(fd) < 0) fd 42 src/cronnext.c void set_cron_watched(int fd) { fd 44 src/cronnext.c (void)fd; fd 269 src/cronnext.c int fd; fd 276 src/cronnext.c fd = open(*additional, O_RDONLY); fd 277 src/cronnext.c if (fd == -1) { fd 285 src/cronnext.c u = load_user(fd, &pw, *additional, *additional, *additional); fd 756 src/crontab.c int ch, eof, fd; fd 771 src/crontab.c if ((fd = mkstemp(TempFilename)) == -1 || !(tmp = fdopen(fd, "w+"))) { fd 773 src/crontab.c if (fd != -1) { fd 774 src/crontab.c close(fd); fd 923 src/crontab.c int fd; fd 937 src/crontab.c if ((fd = mkstemp(TempFilename)) == -1 || !(tmp = fdopen(fd, "w"))) { fd 939 src/crontab.c if (fd != -1) { fd 940 src/crontab.c close(fd); fd 951 src/crontab.c (void) fchmod(fd, 0600); /* not all mkstemp() implementations do this */ fd 241 src/do_command.c int fd, fdmax = getdtablesize(); fd 244 src/do_command.c for(fd = STDERR + 1; fd < fdmax; fd++) { fd 245 src/do_command.c close(fd); fd 80 src/misc.c # define trylock_file(fd) flock((fd), LOCK_EX|LOCK_NB) fd 82 src/misc.c static int trylock_file(int fd) { fd 91 src/misc.c return fcntl(fd, F_SETLK, &fl); fd 94 src/misc.c # define trylock_file(fd) lockf((fd), F_TLOCK, 0) fd 298 src/misc.c static int fd = -1; fd 308 src/misc.c if (fd != -1) { fd 309 src/misc.c close(fd); fd 310 src/misc.c fd = -1; fd 321 src/misc.c if (fd == -1) { fd 324 src/misc.c if ((fd = open(pidfile, O_RDWR | O_CREAT, 0600)) == -1) { fd 333 src/misc.c if (trylock_file(fd) < OK) { fd 337 src/misc.c if ((num = read(fd, buf, sizeof (buf) - 1)) > 0 && fd 352 src/misc.c (void) fchmod(fd, 0644); fd 353 src/misc.c (void) fcntl(fd, F_SETFD, 1); fd 359 src/misc.c trylock_file(fd); fd 364 src/misc.c (void) lseek(fd, (off_t) 0, SEEK_SET); fd 366 src/misc.c if ((num = write(fd, buf, (size_t)len)) != len) fd 369 src/misc.c if (ftruncate(fd, num) == -1) fd 72 src/popen.c int fd; fd 126 src/popen.c for (fd = STDERR + 1; fd < fds; fd++) { fd 127 src/popen.c close(fd);