Home
last modified time | relevance | path

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

/third_party/lwip/src/netif/ppp/
H A 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);
[all...]
/third_party/alsa-utils/alsactl/
H A Dlock.c45 static int state_lock_(const char *lock_file, int lock, int timeout, int _fd) in state_lock_() argument
69 fd = open(lock_file, O_RDWR); in state_lock_()
75 fd = open(lock_file, O_RDWR|O_CREAT|O_EXCL, 0644); in state_lock_()
82 fd = open(lock_file, O_RDWR); in state_lock_()
/third_party/ltp/testcases/kernel/syscalls/mincore/
H A Dmincore04.c56 static void lock_file(void) in lock_file() function
91 lock_file(); in test_mincore()
/third_party/ltp/testcases/kernel/sched/sched_stress/
H A Dsched_tc6.c99 int lock_file(int, short, char *);
181 if (!lock_file(fd, F_WRLCK, filename)) /* set exclusive lock */ in main()
182 error("lock_file failed", __FILE__, __LINE__); in main()
351 | lock_file () |
357 int lock_file(int fd, short lock_type, char *file) in lock_file() function
/third_party/ltp/pan/
H A Dzoolib.h49 int lock_file( FILE *fp, short ltype, char **errmsg );

Completed in 3 milliseconds