Searched defs:pidfile (Results 1 - 8 of 8) sorted by relevance

/external/dropbear/
H A Drunopts.h87 char * pidfile; member in struct:svr_runopts
H A Dsvr-main.c120 FILE *pidfile = NULL; local
154 pidfile = fopen(svr_opts.pidfile, "w");
155 if (pidfile) {
156 fprintf(pidfile, "%d\n", getpid());
157 fclose(pidfile);
197 unlink(svr_opts.pidfile);
/external/chromium/net/tools/flip_server/
H A Dflip_in_mem_edsm_server.cc115 static int OpenPidFile(const char *pidfile) argument
121 fd = open(pidfile, O_RDWR | O_CREAT, 0600);
123 cerr << "Could not open pid file '" << pidfile << "' for reading.\n"; local
138 cerr << "Could not stat pid file '" << pidfile << "': " << strerror(errno)
143 cerr << "Could not truncate pid file '" << pidfile << "': "
207 cout << "\t--pidfile=<filepath> (default /var/run/flip-server.pid)\n";
212 if (cl.HasSwitch("pidfile")) {
213 pidfile_fd = OpenPidFile(cl.GetSwitchValueASCII("pidfile").c_str());
/external/chromium_org/net/tools/flip_server/
H A Dflip_in_mem_edsm_server.cc115 static int OpenPidFile(const char *pidfile) argument
121 fd = open(pidfile, O_RDWR | O_CREAT, 0600);
123 cerr << "Could not open pid file '" << pidfile << "' for reading.\n"; local
138 cerr << "Could not stat pid file '" << pidfile << "': " << strerror(errno)
143 cerr << "Could not truncate pid file '" << pidfile << "': "
207 cout << "\t--pidfile=<filepath> (default /var/run/flip-server.pid)\n";
212 if (cl.HasSwitch("pidfile")) {
213 pidfile_fd = OpenPidFile(cl.GetSwitchValueASCII("pidfile").c_str());
/external/dnsmasq/src/
H A Ddnsmasq.c336 /* write pidfile _after_ forking ! */
339 FILE *pidfile; local
342 if ((pidfile = fopen(daemon->runfile, "w")))
344 fprintf(pidfile, "%d\n", (int) getpid());
345 fclose(pidfile);
796 die(_("failed to open pidfile %s: %s"), daemon->runfile, EC_FILE);
/external/dhcpcd/
H A Ddhcpcd.c106 static char *pidfile; variable
145 if ((fp = fopen(pidfile, "r")) == NULL) {
209 unlink(pidfile);
212 free(pidfile);
1894 pidfile = xmalloc(len);
1896 snprintf(pidfile, len, PIDFILE, "-", argv[optind]);
1898 snprintf(pidfile, len, PIDFILE, "", "");
1999 unlink(pidfile);
2030 pid, pidfile);
2041 pidfd = open(pidfile, O_WRONL
[all...]
/external/libppp/src/
H A Dbundle.c672 char pidfile[PATH_MAX]; local
674 snprintf(pidfile, sizeof pidfile, "%stun%d.pid", _PATH_VARRUN, bundle->unit);
675 lockfile = ID0fopen(pidfile, "w");
683 pidfile, strerror(errno));
690 char pidfile[PATH_MAX]; local
692 snprintf(pidfile, sizeof pidfile, "%stun%d.pid", _PATH_VARRUN, bundle->unit);
693 ID0unlink(pidfile);
/external/ppp/pppd/
H A Dmain.c855 FILE *pidfile; local
859 if ((pidfile = fopen(pidfilename, "w")) != NULL) {
860 fprintf(pidfile, "%d\n", pid);
861 (void) fclose(pidfile);
874 FILE *pidfile; local
881 if ((pidfile = fopen(linkpidfile, "w")) != NULL) {
882 fprintf(pidfile, "%d\n", pid);
884 fprintf(pidfile, "%s\n", ifname);
885 (void) fclose(pidfile);

Completed in 4079 milliseconds