Home
last modified time | relevance | path

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

/external/clang/test/Sema/
Dwarn-type-safety.c123 #define F_SETLK 20 macro
128 …tic const int F_SETLK_tag __attribute__(( type_tag_for_datatype(fcntl,struct flock *) )) = F_SETLK;
135 fcntl(0, F_SETLK, f); // no-warning in test_argument_with_type_tag()
137 …fcntl(0, F_SETLK, 10); // expected-warning {{argument type 'int' doesn't match specified 'fcntl' t… in test_argument_with_type_tag()
142 fcntl(0, b ? F_DUPFD : F_SETLK, 10); // no-warning in test_tag_expresssion()
/external/strace/tests/
Dstruct_flock.c65 TEST_FLOCK_EINVAL(F_SETLK); in test_flock()
72 int rc = syscall(TEST_SYSCALL_NR, 0, F_SETLK, &fl); in test_flock()
84 syscall(TEST_SYSCALL_NR, 0, F_SETLK, &fl); in test_flock()
/external/strace/xlat/
Dfcntlcmds.h20 #if !(defined(F_SETLK) || (defined(HAVE_DECL_F_SETLK) && HAVE_DECL_F_SETLK))
21 # define F_SETLK 6 macro
99 XLAT(F_SETLK),
Dfcntlcmds.in8 F_SETLK 6
/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/valgrind/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/toybox/toys/pending/
Duserdel.c45 if (fcntl(fileno(exfp), F_SETLK, &lock) < 0) in update_groupfiles()
78 fcntl(fileno(exfp), F_SETLK, &lock); in update_groupfiles()
/external/kernel-headers/original/uapi/asm-mips/asm/
Dfcntl.h40 #define F_SETLK 6 macro
/external/toybox/lib/
Dpassword.c138 ret = fcntl(fileno(exfp), F_SETLK, &lock); in update_password()
183 fcntl(fileno(exfp), F_SETLK, &lock); in update_password()
/external/v8/tools/gyp/pylib/gyp/
Dflock_tool.py49 fcntl.fcntl(fd, fcntl.F_SETLK, op)
/external/valgrind/memcheck/tests/
Dfile_locking.c33 return fcntl(fd, F_SETLK, &fl) >= 0; in lock_file()
/external/kernel-headers/original/uapi/asm-generic/
Dfcntl.h106 #define F_SETLK 6 macro
/external/bison/m4/
Dfcntl.m415 # - F_GETLK, F_SETLK, F_SETLKW
/external/strace/
Dfcntl.c107 case F_SETLK: in print_fcntl()
DNEWS467 * 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/libchrome/sandbox/linux/seccomp-bpf-helpers/
Dsyscall_parameters_restrictions.cc201 F_SETLK, in RestrictFcntlCommands()
/external/e2fsprogs/lib/ext2fs/
Dtdb.c361 if (!probe && lck_type != F_SETLK) { in tdb_brlock()
488 return _tdb_lock(tdb, list, ltype, F_SETLK); in tdb_lock_nonblock()
714 return _tdb_lockall(tdb, F_WRLCK, F_SETLK); in tdb_lockall_nonblock()
732 return _tdb_lockall(tdb, F_RDLCK, F_SETLK); in tdb_lockall_read_nonblock()
802 return tdb->methods->tdb_brlock(tdb, off, F_WRLCK, F_SETLK, 1, 1); in tdb_write_lock_record()
811 return tdb->methods->tdb_brlock(tdb, off, F_UNLCK, F_SETLK, 0, 1); in tdb_write_unlock_record()
3884 (locked = (tdb->methods->tdb_brlock(tdb, ACTIVE_LOCK, F_WRLCK, F_SETLK, 0, 1) == 0))) { in tdb_open_ex()
3943 if (tdb->methods->tdb_brlock(tdb, ACTIVE_LOCK, F_UNLCK, F_SETLK, 0, 1) == -1) { in tdb_open_ex()
/external/libchrome/base/files/
Dfile_posix.cc79 if (HANDLE_EINTR(fcntl(file, F_SETLK, &lock)) == -1) in CallFcntlFlock()
/external/e2fsprogs/lib/uuid/
Dgen_uuid.c414 fcntl(state_fd, F_SETLK, &fl); in get_clock()
/external/valgrind/include/vki/
Dvki-darwin.h287 #define VKI_F_SETLK F_SETLK
Dvki-solaris.h520 #define VKI_F_SETLK F_SETLK
/external/valgrind/coregrind/
Dvgdb.c336 if (fcntl(fd, F_SETLK, &fl) < 0) { in acquire_lock()
/external/sqlite/dist/
Dsqlite3.c27317 }else if( op==F_SETLK ){
27339 if( s==(-1) && op==F_SETLK && (p->l_type==F_RDLCK || p->l_type==F_WRLCK) ){
28104 rc = osFcntl(pFile->h, F_SETLK, &lock);
28112 rc = osFcntl(pFile->h, F_SETLK, pLock);
30776 lkType = (pFile->ctrlFlags & UNIXFILE_BLOCK)!=0 ? F_SETLKW : F_SETLK;
/external/sqlite/dist/orig/
Dsqlite3.c27299 }else if( op==F_SETLK ){
27321 if( s==(-1) && op==F_SETLK && (p->l_type==F_RDLCK || p->l_type==F_WRLCK) ){
28086 rc = osFcntl(pFile->h, F_SETLK, &lock);
28094 rc = osFcntl(pFile->h, F_SETLK, pLock);
30758 lkType = (pFile->ctrlFlags & UNIXFILE_BLOCK)!=0 ? F_SETLKW : F_SETLK;