Home
last modified time | relevance | path

Searched refs:F_SETLK (Results 1 – 25 of 27) sorted by relevance

12

/external/clang/test/Sema/
Dwarn-type-safety.c121 #define F_SETLK 20 macro
126 …tic const int F_SETLK_tag __attribute__(( type_tag_for_datatype(fcntl,struct flock *) )) = F_SETLK;
133 fcntl(0, F_SETLK, f); // no-warning in test_argument_with_type_tag()
135 …fcntl(0, F_SETLK, 10); // expected-warning {{argument type 'int' doesn't match specified 'fcntl' t… in test_argument_with_type_tag()
140 fcntl(0, b ? F_DUPFD : F_SETLK, 10); // no-warning in test_tag_expresssion()
/external/ppp/pppd/plugins/radius/
Dlock.c27 res = fcntl(fd, F_SETLK, &fl); in do_lock_exclusive()
45 return fcntl(fd, F_SETLK, &fl); in do_unlock()
/external/kernel-headers/original/linux/
Dfcntl.h42 #define IS_SETLK32(cmd) ((cmd) == F_SETLK)
52 #define IS_SETLK64(cmd) ((cmd) == F_SETLK)
/external/valgrind/main/none/tests/
Dmmap_fcntl_bug.c44 if (fcntl(fd, F_SETLK, &fl) != 0) in main()
56 if (fcntl(fd, F_SETLK, &fl) == 0) in main()
/external/strace/
Ddesc.c63 { F_SETLK, "F_SETLK" },
121 #ifdef F_SETLK
122 { F_SETLK, "F_SETLK" },
330 case F_SETLK: case F_SETLKW: in sys_fcntl()
343 #if defined(F_SETLK64) && F_SETLK64 + 0 != F_SETLK in sys_fcntl()
374 case F_SETLK: case F_SETLKW: in sys_fcntl()
DNEWS131 * Fixed display of 32-bit fcntl(F_SETLK) on 64-bit architectures.
DChangeLog-CVS294 * desc.c (printflock): Fix display of fcntl(F_SETLK) on
/external/kernel-headers/original/asm-mips/
Dfcntl.h24 #define F_SETLK 6 macro
/external/chromium_org/tools/gyp/pylib/gyp/
Dflock_tool.py44 fcntl.fcntl(fd, fcntl.F_SETLK, op)
/external/chromium/chrome/browser/importer/
Dfirefox_profile_lock_posix.cc113 } else if (fcntl(lock_fd_, F_SETLK, &lock) == -1) { in LockWithFcntl()
/external/chromium_org/chrome/browser/importer/
Dfirefox_profile_lock_posix.cc113 } else if (fcntl(lock_fd_, F_SETLK, &lock) == -1) { in LockWithFcntl()
/external/valgrind/main/memcheck/tests/
Dfile_locking.c33 return fcntl(fd, F_SETLK, &fl) >= 0; in lock_file()
/external/kernel-headers/original/asm-generic/
Dfcntl.h98 #define F_SETLK 6 macro
/external/bison/m4/
Dfcntl.m415 # - F_GETLK, F_SETLK, F_SETLKW
/external/chromium_org/sandbox/linux/seccomp-bpf-helpers/
Dsyscall_parameters_restrictions.cc174 ErrorCode::OP_EQUAL, F_SETLK, in RestrictFcntlCommands()
/external/e2fsprogs/lib/ext2fs/
Dtdb.c363 if (!probe && lck_type != F_SETLK) { in tdb_brlock()
490 return _tdb_lock(tdb, list, ltype, F_SETLK); in tdb_lock_nonblock()
716 return _tdb_lockall(tdb, F_WRLCK, F_SETLK); in tdb_lockall_nonblock()
734 return _tdb_lockall(tdb, F_RDLCK, F_SETLK); in tdb_lockall_read_nonblock()
804 return tdb->methods->tdb_brlock(tdb, off, F_WRLCK, F_SETLK, 1, 1); in tdb_write_lock_record()
813 return tdb->methods->tdb_brlock(tdb, off, F_UNLCK, F_SETLK, 0, 1); in tdb_write_unlock_record()
3888 (locked = (tdb->methods->tdb_brlock(tdb, ACTIVE_LOCK, F_WRLCK, F_SETLK, 0, 1) == 0))) { in tdb_open_ex()
3947 if (tdb->methods->tdb_brlock(tdb, ACTIVE_LOCK, F_UNLCK, F_SETLK, 0, 1) == -1) { in tdb_open_ex()
/external/chromium_org/base/files/
Dfile_posix.cc86 if (HANDLE_EINTR(fcntl(file, do_lock ? F_SETLK : F_UNLCK, &lock)) == -1) in CallFctnlFlock()
/external/chromium_org/base/
Dplatform_file_posix.cc84 if (HANDLE_EINTR(fcntl(file, do_lock ? F_SETLK : F_UNLCK, &lock)) == -1) in CallFctnlFlock()
/external/e2fsprogs/lib/uuid/
Dgen_uuid.c409 fcntl(state_fd, F_SETLK, &fl); in get_clock()
/external/chromium_org/third_party/leveldatabase/src/util/
Denv_posix.cc267 return fcntl(fd, F_SETLK, &f); in LockOrUnlock()
/external/chromium_org/third_party/sqlite/src/src/
Dos_unix.c543 }else if( op==F_SETLK ){ in lockTrace()
565 if( s==(-1) && op==F_SETLK && (p->l_type==F_RDLCK || p->l_type==F_WRLCK) ){ in lockTrace()
1265 rc = osFcntl(pFile->h, F_SETLK, &lock); in unixFileLock()
1273 rc = osFcntl(pFile->h, F_SETLK, pLock); in unixFileLock()
3645 rc = osFcntl(pShmNode->h, F_SETLK, &f); in unixShmSystemLock()
/external/valgrind/main/include/vki/
Dvki-darwin.h279 #define VKI_F_SETLK F_SETLK
/external/valgrind/main/coregrind/
Dvgdb.c1294 if (fcntl(fd, F_SETLK, &fl) < 0) { in acquire_lock()
/external/chromium_org/third_party/lcov/
Ddescriptions.tests70 Basic test for fcntl(2) using F_SETLK argument.
/external/chromium_org/third_party/sqlite/amalgamation/
Dsqlite3.c24699 }else if( op==F_SETLK ){
24721 if( s==(-1) && op==F_SETLK && (p->l_type==F_RDLCK || p->l_type==F_WRLCK) ){
25421 rc = osFcntl(pFile->h, F_SETLK, &lock);
25429 rc = osFcntl(pFile->h, F_SETLK, pLock);
27801 rc = osFcntl(pShmNode->h, F_SETLK, &f);

12