/freebsd-13-stable/usr.sbin/ctld/ |
H A D | token.l | 77 pidfile { return PIDFILE; }
|
H A D | parse.y | 94 pidfile 153 pidfile: PIDFILE STR label 156 log_warnx("pidfile specified more than once");
|
/freebsd-13-stable/crypto/heimdal/kdc/ |
H A D | main.c | 162 pidfile(NULL);
|
/freebsd-13-stable/usr.bin/usbhidaction/ |
H A D | usbhidaction.c | 54 static const char * pidfile = "/var/run/usbaction.pid"; variable 120 pidfile = optarg; 170 fp = open(pidfile, O_WRONLY|O_CREAT, S_IRUSR|S_IRGRP|S_IROTH); 172 err(1, "%s", pidfile); 178 err(1, "%s", pidfile); 261 "[-p pidfile] [-t tablefile]\n", getprogname());
|
/freebsd-13-stable/usr.sbin/cron/cron/ |
H A D | cron.c | 80 char pidfile[MAX_FNAME]; local 84 (void) snprintf(pidfile, sizeof(pidfile), PIDFILE, PIDDIR); 85 pfh = pidfile_open(pidfile, 0600, &otherpid); 92 "can't open or create %s: %s", pidfile,
|
/freebsd-13-stable/contrib/openbsm/bin/auditdistd/ |
H A D | auditdistd.c | 67 #include <compat/pidfile.h> 98 errx(EX_USAGE, "[-dFhl] [-c config] [-P pidfile]"); 587 pjdlog_debug(2, " pidfile: %s", cfg->adc_pidfile); 625 const char *execpath, *pidfile; local 650 pidfile = NULL; 672 pidfile = optarg; 717 if (pidfile != NULL) { 718 if (strlcpy(adcfg->adc_pidfile, pidfile, 724 if (foreground && pidfile == NULL) { 735 * If we cannot create pidfile fro [all...] |
/freebsd-13-stable/contrib/ofed/opensm/opensm/ |
H A D | main.c | 71 static char *pidfile; variable 511 if (pidfile) 512 unlink(pidfile); 541 if (pidfile) { 543 f = fopen(pidfile, "w"); 680 {"pidfile", 1, NULL, 'J'}, 921 pidfile = optarg;
|
/freebsd-13-stable/usr.sbin/nscd/ |
H A D | nscd.c | 602 struct pidfh *pidfile; local 693 errx(EXIT_FAILURE, "Can't read from pidfile."); 696 errx(EXIT_FAILURE, "Invalid pidfile."); 743 pidfile = pidfile_open(DEFAULT_PIDFILE_PATH, 0644, &pid); 744 if (pidfile == NULL) { 748 warn("Cannot open or create pidfile"); 763 pidfile_remove(pidfile); 769 pidfile_write(pidfile); 875 pidfile_remove(pidfile);
|
/freebsd-13-stable/libexec/rc/rc.d/ |
H A D | sendmail | 25 pidfile=${sendmail_pidfile:-/var/run/${name}.pid} 226 pidfile="${sendmail_msp_queue_pidfile:-/var/spool/clientmqueue/sm-client.pid}"
|
/freebsd-13-stable/contrib/kyua/utils/process/ |
H A D | executor_test.cpp | 269 std::ofstream pidfile(name.c_str()); 270 if (!pidfile) { 271 std::cerr << "Failed to create the pidfile\n"; 274 pidfile << pid; 275 pidfile.close(); 891 std::ifstream pidfile("pid"); 892 ATF_REQUIRE(pidfile); 894 pidfile >> pid; 895 pidfile.close();
|
/freebsd-13-stable/sbin/hastd/ |
H A D | hastd.c | 71 /* Path to pidfile. */ 72 static const char *pidfile; variable 85 errx(EX_USAGE, "[-dFh] [-c config] [-P pidfile]"); 542 * Check if pidfile's path has changed. 544 if (!foreground && pidfile == NULL && 550 "Another hastd is already running, pidfile: %s, pid: %jd.", 554 "Unable to open or create pidfile %s", 583 * Switch to new pidfile. 1212 pidfile = optarg; 1247 if (pidfile ! [all...] |
/freebsd-13-stable/usr.sbin/rarpd/ |
H A D | rarpd.c | 32 * Usage: rarpd -a [-dfsv] [-t directory] [-P pidfile] [hostname] 33 * rarpd [-dfsv] [-t directory] [-P pidfile] interface [hostname] 106 static char *pidfile; variable 172 pidfile = pidfile_buf; 198 if (pidfile == NULL && ifname != NULL && aflag == 0) { 202 pidfile = pidfile_buf; 204 /* If pidfile == NULL, /var/run/<progname>.pid will be used. */ 205 pidfile_fh = pidfile_open(pidfile, 0600, NULL); 207 logmsg(LOG_ERR, "Cannot open or create pidfile: %s", 208 (pidfile [all...] |
/freebsd-13-stable/usr.sbin/watchdogd/ |
H A D | watchdogd.c | 80 static const char *pidfile = _PATH_VARRUN "watchdogd.pid"; variable 147 pfh = pidfile_open(pidfile, 0600, &otherpid); 154 warn("Cannot open or create pidfile"); 474 " watchdogd [-dnSw] [-e cmd] [-I pidfile] [-s sleep] [-t timeout]\n" 708 pidfile = optarg;
|
/freebsd-13-stable/tests/sys/aio/ |
H A D | aio_test.c | 888 FILE *pidfile; local 906 pidfile = fopen("pidfile", "w"); 907 ATF_REQUIRE_MSG(NULL != pidfile, "fopen: %s", strerror(errno)); 908 fprintf(pidfile, "%d", pid); 909 fclose(pidfile); 941 FILE *pidfile; local 945 pidfile = fopen("pidfile", "r"); 946 if (pidfile [all...] |
/freebsd-13-stable/usr.sbin/uhsoctl/ |
H A D | uhsoctl.c | 110 char pidfile[128]; member in struct:ctx 1295 snprintf(ctx->pidfile, 127, PIDFILE, ctx->ifnam); 1297 pfh = pidfile_open(ctx->pidfile, 0600, &opid); 1299 warn("Cannot create pidfile %s", ctx->pidfile); 1321 char pidfile[128]; local 1326 snprintf(pidfile, 127, PIDFILE, ifnam); 1327 fp = fopen(pidfile, "r"); 1329 warn("Cannot open %s", pidfile);
|
/freebsd-13-stable/contrib/unbound/smallapp/ |
H A D | unbound-checkconf.c | 89 printf("-f output full pathname with chroot applied, eg. with -o pidfile.\n"); 107 if(strcmp(opt, "pidfile") == 0 && final) { 108 char *p = fname_after_chroot(cfg->pidfile, cfg, 1); 602 if(cfg->pidfile && cfg->pidfile[0]) { 603 char* ad = (cfg->pidfile[0]=='/')?strdup(cfg->pidfile): 604 fname_after_chroot(cfg->pidfile, cfg, 1); 607 fatal_exit("pidfile directory does not exist");
|
/freebsd-13-stable/contrib/netbsd-tests/net/ndp/ |
H A D | t_ra.sh | 100 local pidfile=$2 103 atf_check -s exit:0 rump.rtadvd -c ${CONFIG} -p $pidfile shmif0 104 while [ ! -f $pidfile ]; do
|
/freebsd-13-stable/usr.sbin/powerd/ |
H A D | powerd.c | 482 "usage: powerd [-v] [-a mode] [-b mode] [-i %%] [-m freq] [-M freq] [-N] [-n mode] [-p ival] [-r %%] [-s source] [-P pidfile]\n"); 493 const char *pidfile = NULL; local 564 pidfile = optarg; 609 pfh = pidfile_open(pidfile, 0600, &otherpid);
|
/freebsd-13-stable/tools/tools/net80211/wlanwds/ |
H A D | wlanwds.c | 102 fprintf(stderr, "usage: %s [-efjtv] [-P pidfile] [-s <set_scriptname>] [ifnet0 ... | any]\n", 111 const char *pidfile = NULL; local 129 pidfile = optarg;
|
/freebsd-13-stable/libexec/tftpd/tests/ |
H A D | functional.c | 49 static const char pidfile[] = "tftpd.pid"; variable 254 f = fopen(pidfile, "r"); 262 unlink(pidfile); 333 pfh = pidfile_open(pidfile, 0644, NULL);
|
/freebsd-13-stable/sbin/dhclient/ |
H A D | dhclient.c | 111 struct pidfh *pidfile; variable in typeref:struct:pidfh 351 if (pidfile != NULL) 352 pidfile_remove(pidfile); 427 pidfile = pidfile_open(path_dhclient_pidfile, 0644, &otherpid); 428 if (pidfile == NULL) { 433 warning("Cannot open or create pidfile: %m"); 456 the pidfile right away. We will write it out again with the 458 if (pidfile != NULL) 459 pidfile_write(pidfile); 2470 if (pidfile ! [all...] |
H A D | dhcpd.h | 370 extern struct pidfh *pidfile;
|
/freebsd-13-stable/usr.sbin/ppp/ |
H A D | bundle.c | 674 char pidfile[PATH_MAX]; local 676 snprintf(pidfile, sizeof pidfile, "%stun%d.pid", _PATH_VARRUN, bundle->unit); 677 lockfile = ID0fopen(pidfile, "w"); 683 pidfile, strerror(errno)); 689 char pidfile[PATH_MAX]; local 691 snprintf(pidfile, sizeof pidfile, "%stun%d.pid", _PATH_VARRUN, bundle->unit); 692 ID0unlink(pidfile);
|
/freebsd-13-stable/sbin/iscontrol/ |
H A D | fsm.c | 421 if(sess->op->pidfile != NULL) { 424 pidf = fopen(sess->op->pidfile, "w");
|
/freebsd-13-stable/sys/dev/iscsi_initiator/ |
H A D | iscsi.h | 475 char *pidfile; member in struct:opvals
|