Home
last modified time | relevance | path

Searched refs:dirfd (Results 1 – 18 of 18) sorted by relevance

/external/chromium_org/sandbox/linux/suid/
Dprocess_util_linux.c37 const int dirfd = open(oom_adj, O_RDONLY | O_DIRECTORY); in AdjustOOMScore() local
38 if (dirfd < 0) in AdjustOOMScore()
42 if (fstat(dirfd, &statbuf) < 0) { in AdjustOOMScore()
43 close(dirfd); in AdjustOOMScore()
47 close(dirfd); in AdjustOOMScore()
51 int fd = openat(dirfd, "oom_score_adj", O_WRONLY); in AdjustOOMScore()
55 fd = openat(dirfd, "oom_adj", O_WRONLY); in AdjustOOMScore()
66 close(dirfd); in AdjustOOMScore()
/external/chromium_org/third_party/sqlite/
Dsystem-sqlite.patch20 - int dirfd; /* File descriptor for the directory */
59 - if( pFile->dirfd>=0 ){
60 - robust_close(pFile, pFile->dirfd, __LINE__);
61 - pFile->dirfd=-1;
139 - if( pFile->dirfd>=0 ){
140 - OSTRACE(("DIRSYNC %-3d (have_fullfsync=%d fullsync=%d)\n", pFile->dirfd,
147 + int dirfd;
155 - if( (!HAVE_FULLFSYNC || !isFullsync) && full_fsync(pFile->dirfd,0,0) ){
164 + rc = osOpenDirectory(pFile->zPath, &dirfd);
165 + if( rc==SQLITE_OK && dirfd>=0 ){
[all …]
Dwebdb.patch27 int dirfd, /* Directory file descriptor */
40 + int dirfd,
45 + return fillInUnixFile(vfs, fd, dirfd, file, fileName, noLock, isDelete, 0);
140 rc = fillInUnixFile(pVfs, fd, dirfd, pFile, zPath, noLock, isDelete);
/external/qemu/
Doslib-posix.c113 int qemu_utimensat(int dirfd, const char *path, const struct timespec *times, in qemu_utimensat() argument
122 ret = utimensat(dirfd, path, times, flags); in qemu_utimensat()
Dqemu-os-posix.h51 int qemu_utimensat(int dirfd, const char *path, const qemu_timespec *times,
/external/chromium_org/third_party/libjingle/source/talk/base/
Dlinuxfdwalk.c60 int opendirfd = dirfd(dir); in fdwalk()
/external/grub/stage2/
Ddir.h135 #define dirfd(dirp) ((dirp)->dd_fd) macro
/external/openssh/openbsd-compat/
Dbsd-closefrom.c84 fd >= 0 && fd < INT_MAX && fd >= lowfd && fd != dirfd(dirp)) in closefrom()
Dgetcwd.c148 if (!(dir = opendir(up)) || fstat(dirfd(dir), &s)) in getcwd()
/external/chromium_org/third_party/WebKit/Source/modules/webdatabase/sqlite/
DSQLiteFileSystemPosix.cpp46 int chromium_sqlite3_fill_in_unix_sqlite3_file(sqlite3_vfs* vfs, int fd, int dirfd, sqlite3_file* f…
/external/chromium_org/third_party/sqlite/src/src/
Dos_unix.c3323 int dirfd; in unixSync() local
3326 rc = osOpenDirectory(pFile->zPath, &dirfd); in unixSync()
3327 if( rc==SQLITE_OK && dirfd>=0 ){ in unixSync()
3328 full_fsync(dirfd, 0, 0); in unixSync()
3329 robust_close(pFile, dirfd, __LINE__); in unixSync()
4866 int dirfd, in chromium_sqlite3_fill_in_unix_sqlite3_file() argument
4871 return fillInUnixFile(vfs, fd, dirfd, file, fileName, noLock, isDelete, 0); in chromium_sqlite3_fill_in_unix_sqlite3_file()
/external/bison/
Dmaint.mk682 _de1 = dirfd|(close|(fd)?open|read|rewind|seek|tell)dir(64)?(_r)?
/external/openssh/
Dconfig.h.in317 /* Define to 1 if you have the `dirfd' function. */
Dconfigure.ac1438 dirfd \
Dconfigure8996 dirfd \
/external/chromium_org/third_party/sqlite/amalgamation/
Dsqlite3.c27479 int dirfd;
27482 rc = osOpenDirectory(pFile->zPath, &dirfd);
27483 if( rc==SQLITE_OK && dirfd>=0 ){
27484 full_fsync(dirfd, 0, 0);
27485 robust_close(pFile, dirfd, __LINE__);
29022 int dirfd,
29027 return fillInUnixFile(vfs, fd, dirfd, file, fileName, noLock, isDelete, 0);
/external/sqlite/dist/orig/
Dsqlite3.c28410 int dirfd;
28413 rc = osOpenDirectory(pFile->zPath, &dirfd);
28414 if( rc==SQLITE_OK && dirfd>=0 ){
28415 full_fsync(dirfd, 0, 0);
28416 robust_close(pFile, dirfd, __LINE__);
/external/sqlite/dist/
Dsqlite3.c28428 int dirfd;
28431 rc = osOpenDirectory(pFile->zPath, &dirfd);
28432 if( rc==SQLITE_OK && dirfd>=0 ){
28433 full_fsync(dirfd, 0, 0);
28434 robust_close(pFile, dirfd, __LINE__);