Searched refs:lock_file (Results 1 - 6 of 6) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/src/router/ppp/pppd/
H A Dutils.c777 static char lock_file[MAXPATHLEN]; variable
791 strlcpy(lock_file, sizeof(lock_file), dev);
798 error("Can't create lock file %s", lock_file);
817 slprintf(lock_file, sizeof(lock_file), "%s/LK.%03d.%03d.%03d",
825 slprintf(lock_file, sizeof(lock_file), "%s/LCK..%s", LOCK_DIR, dev);
828 while ((fd = open(lock_file, O_EXCL | O_CREAT | O_RDWR, 0644)) < 0) {
830 error("Can't create lock file %s: %m", lock_file);
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/ppp-2.4.4/pppd/
H A Dutils.c890 static char lock_file[MAXPATHLEN]; variable
904 strlcpy(lock_file, dev, sizeof(lock_file));
911 error("Can't create lock file %s", lock_file);
930 slprintf(lock_file, sizeof(lock_file), "%s/LK.%03d.%03d.%03d",
949 slprintf(lock_file, sizeof(lock_file), "%s/LCK..%s", LOCK_DIR, dev);
952 while ((fd = open(lock_file, O_EXCL | O_CREAT | O_RDWR, 0644)) < 0) {
954 error("Can't create lock file %s: %m", lock_file);
[all...]
H A Dsys-solaris.c2519 static char lock_file[40]; /* name of lock file created */
2537 slprintf(lock_file, sizeof(lock_file), "%s%03d.%03d.%03d",
2541 while ((fd = open(lock_file, O_EXCL | O_CREAT | O_RDWR, 0644)) < 0) {
2543 && (fd = open(lock_file, O_RDONLY, 0)) >= 0) {
2547 error("Can't read pid from lock file %s", lock_file);
2554 if (unlink(lock_file) == 0) {
2568 error("Can't create lock file %s: %m", lock_file);
2569 lock_file[0] = 0;
2586 if (lock_file[
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/libdaemon-0.14/libdaemon/
H A Ddpid.c69 static int lock_file(int fd, int enable) { function
117 if ((locked = lock_file(fd, 1)) < 0)
157 lock_file(fd, 0);
230 if ((locked = lock_file(fd, 1)) < 0) {
256 lock_file(fd, 0);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libdaemon-0.14/libdaemon/
H A Ddpid.c69 static int lock_file(int fd, int enable) { function
117 if ((locked = lock_file(fd, 1)) < 0)
157 lock_file(fd, 0);
230 if ((locked = lock_file(fd, 1)) < 0) {
256 lock_file(fd, 0);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/netatalk-2.2.5/libatalk/cnid/cdb/
H A Dcnid_cdb_private.h73 char lock_file[MAXPATHLEN + 1]; member in struct:CNID_private

Completed in 96 milliseconds