/freebsd-13-stable/contrib/ofed/infiniband-diags/src/ |
H A D | rdma-ndd.c | 71 char *pidfile = NULL; variable 210 pidfile = optarg; 361 if (pidfile) 362 unlink(pidfile); 368 if (pidfile) { 370 f = fopen(pidfile, "w"); 375 syslog(LOG_ERR, "Failed to write pidfile : %s\n", 376 pidfile); 398 {"pidfile", 0, 1, "<pidfile>", "specif [all...] |
/freebsd-13-stable/libexec/rc/rc.d/ |
H A D | mountd | 16 pidfile="/var/run/${name}.pid"
|
H A D | syslogd | 17 pidfile="/var/run/syslog.pid"
|
H A D | ntpd | 27 pidfile="${_ntp_default_dir}/${name}.pid" 53 *-p* | *--pidfile* | *-s* | *--statsdir* ) 115 command_args="-p ${pidfile} -c ${ntpd_config} ${driftopt}"
|
H A D | local_unbound | 25 pidfile="/var/run/${name}.pid"
|
H A D | sshd | 21 pidfile="/var/run/${name}.pid"
|
/freebsd-13-stable/crypto/heimdal/lib/roken/ |
H A D | write_pid.c | 77 pidfile(const char *basename) function
|
/freebsd-13-stable/usr.sbin/bluetooth/btpand/ |
H A D | tap.c | 60 char pidfile[PATH_MAX]; local 121 snprintf(pidfile, sizeof(pidfile), "%s/%s.pid", 123 chan->pfh = pidfile_open(pidfile, 0600, NULL); 125 log_err("can't create pidfile"); 127 log_err("can't write pidfile");
|
/freebsd-13-stable/contrib/openbsm/bin/auditdistd/ |
H A D | token.l | 69 pidfile { DP; return PIDFILE; }
|
/freebsd-13-stable/bin/pkill/ |
H A D | pkill.c | 136 char buf[_POSIX2_LINE_MAX], *mstr, **pargv, *p, *q, *pidfile; local 183 pidfile = NULL; 195 pidfile = optarg; 302 if (pidfile != NULL) 303 pidfromfile = takepid(pidfile, pidfilelock); 593 "usage: %s %s [-F pidfile] [-G gid] [-M core] [-N system]\n" 807 takepid(const char *pidfile, int pidfilelock) argument 813 fh = fopen(pidfile, "r"); 815 err(STATUS_ERROR, "Cannot open pidfile `%s'", pidfile); [all...] |
/freebsd-13-stable/usr.sbin/daemon/ |
H A D | daemon.c | 87 const char *pidfile, *ppidfile, *title, *user, *outfn, *logtag; local 98 ppidfile = pidfile = user = NULL; 134 pidfile = optarg; 190 * Try to open the pidfile before calling daemon(3), 193 open_pid_files(pidfile, ppidfile, &pfh, &ppfh); 198 /* Write out parent pidfile if needed. */ 201 * If the pidfile or restart option is specified the daemon 203 * exit to remove the pidfile or restart the command. Normally 205 * leaving the running process and the stale pidfile, so we 212 if (pidfile || ppidfil 415 open_pid_files(const char *pidfile, const char *ppidfile, struct pidfh **pfh, struct pidfh **ppfh) argument [all...] |
/freebsd-13-stable/usr.sbin/unbound/setup/ |
H A D | local-unbound-setup.sh | 48 pidfile="" 89 : ${pidfile:=/var/run/local_unbound.pid} 201 echo "unbound_pid=\"${pidfile}\"" 260 echo " pidfile: ${pidfile}" 375 pidfile="$OPTARG"
|
/freebsd-13-stable/sbin/hastd/ |
H A D | token.l | 58 pidfile { DP; return PIDFILE; }
|
/freebsd-13-stable/crypto/heimdal/kcm/ |
H A D | main.c | 107 pidfile(NULL);
|
/freebsd-13-stable/contrib/unbound/daemon/ |
H A D | daemon.h | 81 /** pidfile that is used */ 82 char* pidfile; member in struct:daemon
|
/freebsd-13-stable/contrib/blacklist/port/ |
H A D | pidfile.c | 1 /* $NetBSD: pidfile.c,v 1.2 2016/04/05 12:28:57 christos Exp $ */ 37 __RCSID("$NetBSD: pidfile.c,v 1.2 2016/04/05 12:28:57 christos Exp $"); 58 /* Deletes an existent pidfile iff it was created by this process. */ 67 /* Registers an atexit(3) handler to delete the pidfile we have generated. 68 * We only register the handler when we create a pidfile, so we can assume 69 * that the pidfile exists. 86 /* Given a new pidfile name in 'path', deletes any previously-created pidfile 89 * If a previous file is deleted, returns 1, which means that a new pidfile 109 /* Constructs a name for a pidfile i 165 pidfile(const char *path) function [all...] |
H A D | port.h | 59 int pidfile(const char *);
|
/freebsd-13-stable/contrib/kyua/engine/ |
H A D | atf_helpers.cpp | 309 std::ofstream pidfile(name.c_str()); 310 ATF_REQUIRE(pidfile); 311 pidfile << pid; 312 pidfile.close();
|
/freebsd-13-stable/contrib/pf/pflogd/ |
H A D | pidfile.c | 2 /* $OpenBSD: pidfile.c,v 1.5 2002/05/26 09:29:02 deraadt Exp $ */ 3 /* $NetBSD: pidfile.c,v 1.4 2001/02/19 22:43:42 cgd Exp $ */ 35 static const char rcsid[] = "$OpenBSD: pidfile.c,v 1.5 2002/05/26 09:29:02 deraadt Exp $"; 45 #include "pidfile.h" 58 pidfile(const char *basename) function
|
/freebsd-13-stable/crypto/openssh/regress/ |
H A D | cfgmatchlisten.sh | 6 pidfile=$OBJ/remote_pid 16 rm -f $pidfile 23 exec sh -c \'"echo \$\$ > $pidfile; exec sleep 100"\' \ 28 while test ! -f $pidfile ; do 55 pid=`cat $pidfile`
|
/freebsd-13-stable/contrib/pf/authpf/ |
H A D | authpf.c | 72 char pidfile[MAXPATHLEN]; /* we save pid in this file. */ variable 205 n = snprintf(pidfile, sizeof(pidfile), "%s/%s", 207 if (n < 0 || (u_int)n >= sizeof(pidfile)) { 208 syslog(LOG_ERR, "path to pidfile too long"); 239 if ((pidfd = open(pidfile, O_RDWR|O_CREAT, 0644)) == -1 || 243 syslog(LOG_ERR, "cannot open or create %s: %s", pidfile, 259 pidfile, otherpid, strerror(save_errno)); 952 if (pidfile[0] && pidfd != -1) 953 if (unlink(pidfile) [all...] |
/freebsd-13-stable/contrib/openbsm/bin/auditd/ |
H A D | auditd.c | 419 FILE * pidfile; local 452 if ((pidfile = fopen(AUDITD_PIDFILE, "a")) == NULL) { 459 fd = fileno(pidfile); 469 if (fprintf(pidfile, "%u\n", pid) < 0) { 474 fflush(pidfile);
|
/freebsd-13-stable/crypto/heimdal/kadmin/ |
H A D | kadmind.c | 174 pidfile(NULL); 188 pidfile(NULL);
|
/freebsd-13-stable/sbin/dhclient/ |
H A D | errwarn.c | 88 if (pidfile != NULL) 89 pidfile_remove(pidfile);
|
/freebsd-13-stable/libexec/pppoed/ |
H A D | pppoed.c | 77 fprintf(stderr, "usage: %s [-Fd] [-P pidfile] [-a name] [-e exec | -l label]" 508 const char *pidfile; local 512 pidfile = NULL; 526 pidfile = optarg; 621 if (pidfile != NULL) { 624 if ((fp = fopen(pidfile, "w")) == NULL) { 625 perror(pidfile); 679 if (pidfile) 680 remove(pidfile);
|