Home
last modified time | relevance | path

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

/third_party/lwip/src/netif/ppp/
Dutils.c772 static char lock_file[MAXPATHLEN];
786 ppp_strlcpy(lock_file, dev, sizeof(lock_file));
793 ppp_error("Can't create lock file %s", lock_file);
812 ppp_slprintf(lock_file, sizeof(lock_file), "%s/LK.%03d.%03d.%03d",
831 ppp_slprintf(lock_file, sizeof(lock_file), "%s/LCK..%s", LOCK_DIR, dev);
834 while ((fd = open(lock_file, O_EXCL | O_CREAT | O_RDWR, 0644)) < 0) {
836 ppp_error("Can't create lock file %s: %m", lock_file);
841 fd = open(lock_file, O_RDONLY, 0);
845 ppp_error("Can't open existing lock file %s: %m", lock_file);
856 ppp_error("Can't read pid from lock file %s", lock_file);
[all …]
/third_party/ltp/testcases/kernel/syscalls/mincore/
Dmincore04.c56 static void lock_file(void) in lock_file() function
91 lock_file(); in test_mincore()
/third_party/iptables/iptables/
Dxshared.c252 const char *lock_file; in xtables_lock() local
258 lock_file = getenv("XTABLES_LOCKFILE"); in xtables_lock()
259 if (lock_file == NULL || lock_file[0] == '\0') in xtables_lock()
260 lock_file = XT_LOCK_NAME; in xtables_lock()
262 fd = open(lock_file, O_CREAT, 0600); in xtables_lock()
265 lock_file, strerror(errno)); in xtables_lock()
273 fprintf(stderr, "Can't lock %s: %s\n", lock_file, in xtables_lock()
/third_party/ltp/testcases/kernel/sched/sched_stress/
Dsched_tc6.c99 int lock_file(int, short, char *);
181 if (!lock_file(fd, F_WRLCK, filename)) /* set exclusive lock */ in main()
357 int lock_file(int fd, short lock_type, char *file) in lock_file() function
/third_party/ltp/pan/
Dzoolib.h49 int lock_file( FILE *fp, short ltype, char **errmsg );
/third_party/boost/libs/interprocess/proj/
Dto-do.txt224 lock_file(fd);