/external/chromium/net/tools/flip_server/ |
flip_in_mem_edsm_server.cc | 115 static int OpenPidFile(const char *pidfile) 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()); 215 pidfile_fd = OpenPidFile(PIDFILE); 409 unlink(PIDFILE); [all...] |
/external/dropbear/ |
runopts.h | 87 char * pidfile; member in struct:svr_runopts
|
svr-main.c | 120 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/dnsmasq/src/ |
dnsmasq.c | 336 /* 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); [all...] |
/external/dhcpcd/ |
dhcpcd.c | 106 static char *pidfile; variable 145 if ((fp = fopen(pidfile, "r")) == NULL) { 209 unlink(pidfile); 212 free(pidfile); [all...] |
/external/libppp/src/ |
bundle.c | 672 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); [all...] |
/external/ppp/pppd/ |
main.c | 855 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); [all...] |