HomeSort by: relevance | last modified time | path
    Searched defs:pidfile (Results 1 - 8 of 8) sorted by relevancy

  /src/usr.sbin/mopd/common/
port.h 53 # define pidfile(a) macro
  /src/lib/libutil/
pidfile.c 1 /* $NetBSD: pidfile.c,v 1.16 2021/08/01 15:29:29 andvar Exp $ */
34 __RCSID("$NetBSD: pidfile.c,v 1.16 2021/08/01 15:29:29 andvar Exp $");
54 /* Closes pidfile resources.
69 /* Truncate, close and unlink an existent pidfile,
71 * The pidfile is truncated because we may have dropped permissions
111 /* Constructs a name for a pidfile in the default location (/var/run).
113 * the pidfile.
133 * If no path is given, use the last pidfile path, otherwise the default one. */
168 /* Locks the pidfile specified by path and writes the process pid to it.
169 * The new pidfile is "registered" in the global variables pidfile_fd
245 pidfile(const char *path) function in typeref:typename:int
    [all...]
  /src/usr.bin/bthset/
bthset.c 99 static char *pidfile; /* PID file name */ variable in typeref:typename:char *
156 pidfile = getenv("BTHSET_PIDFILE");
173 pidfile = optarg;
198 err(EXIT_FAILURE, "%s", pidfile);
567 if (pidfile == NULL)
570 unlink(pidfile);
579 if (pidfile == NULL)
582 fd = open(pidfile, O_WRONLY | O_CREAT | O_TRUNC, 0644);
  /src/dist/pf/usr.sbin/authpf/
authpf.c 62 char pidfile[MAXPATHLEN]; /* we save pid in this file. */ variable in typeref:typename:char[]
176 n = snprintf(pidfile, sizeof(pidfile), "%s/%s", PATH_PIDFILE, ipsrc);
177 if (n < 0 || (u_int)n >= sizeof(pidfile)) {
178 syslog(LOG_ERR, "path to pidfile too long");
201 if ((pidfd = open(pidfile, O_RDWR|O_CREAT, 0644)) == -1 ||
205 syslog(LOG_ERR, "cannot open or create %s: %s", pidfile,
221 pidfile, otherpid, strerror(save_errno));
836 if (pidfile[0] && (pidfp != NULL))
837 if (unlink(pidfile) == -1
    [all...]
  /src/usr.bin/pkill/
pkill.c 121 char buf[_POSIX2_LINE_MAX], **pargv, *q, *pidfile = NULL; local in function:main
193 pidfile = optarg;
268 if (pidfile != NULL)
269 pidfromfile = takepid(pidfile, pidfilelock);
483 "Usage: %s %s [-F pidfile] [-G gid] [-g pgrp] [-P ppid] [-s sid] "
675 takepid(const char *pidfile, int pidfilelock)
681 fh = fopen(pidfile, "r");
683 err(STATUS_ERROR, "Cannot open pidfile `%s'", pidfile);
687 * If we can lock pidfile, this means that daemon is no
    [all...]
  /src/usr.bin/newsyslog/
newsyslog.c 109 char pidfile[MAXPATHLEN]; /* File containing PID to signal */ member in struct:conf_entry
401 (void)strlcpy(log->pidfile, *ap++, sizeof(log->pidfile));
403 log->pidfile[0] = '\0';
628 if (log->pidfile[0] != '\0')
629 pid = readpidfile(log->pidfile);
  /src/libexec/httpd/
bozohttpd.h 109 char *pidfile; /* path to the pid file, if any */ member in struct:bozohttpd_t
  /src/usr.sbin/moused/
moused.c 141 static const char *pidfile = "/var/run/moused.pid"; variable in typeref:typename:const char *
701 pidfile = optarg;
868 fp = fopen(pidfile, "w");

Completed in 17 milliseconds