Searched defs:fd (Results 101 - 125 of 1450) sorted by relevance

1234567891011>>

/external/e2fsprogs/lib/e2p/
H A Dsetflags.c39 int setflags (int fd, unsigned long flags) argument
57 return fchflags (fd, bsd_flags);
63 if (!fstat(fd, &buf) &&
70 return ioctl(fd, EXT2_IOC_SETFLAGS, &f);
/external/e2fsprogs/lib/ext2fs/
H A Dflushb.c52 errcode_t ext2fs_sync_device(int fd, int flushb) argument
60 if (fsync (fd) == -1)
66 if (ioctl (fd, BLKFLSBUF, 0) == 0)
72 return ioctl(fd, FDFLUSH, 0); /* In case this is a floppy */
/external/libselinux/src/
H A Dcheck_context.c15 int fd, ret; local
23 fd = open(path, O_RDWR);
24 if (fd < 0)
27 ret = write(fd, con, strlen(con) + 1);
28 close(fd);
H A Ddisable.c14 int fd, ret; local
24 fd = open(path, O_WRONLY);
25 if (fd < 0)
30 ret = write(fd, buf, strlen(buf));
31 close(fd);
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/
H A Dcgroup.h8 int fd; member in struct:cgroup_sel
/external/mesa3d/src/gallium/winsys/sw/wayland/
H A Dwayland_sw_winsys.h33 int fd; member in struct:winsys_handle
/external/ppp/pppd/plugins/radius/
H A Dlock.c16 int do_lock_exclusive(int fd) argument
27 res = fcntl(fd, F_SETLK, &fl);
35 int do_unlock(int fd) argument
45 return fcntl(fd, F_SETLK, &fl);
/external/qemu/distrib/libselinux/src/
H A Dcheck_context.c15 int fd, ret; local
23 fd = open(path, O_RDWR);
24 if (fd < 0)
27 ret = write(fd, con, strlen(con) + 1);
28 close(fd);
H A Ddisable.c14 int fd, ret; local
24 fd = open(path, O_WRONLY);
25 if (fd < 0)
30 ret = write(fd, buf, strlen(buf));
31 close(fd);
/external/strace/test/
H A Dskodic.c19 int fd; local
21 fd = open("/tmp/delme", O_RDWR);
22 c = mmap(0, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
32 if ((fd = open(c, 0)) != -1)
33 close(fd);
/external/strace/tests/
H A Duio.c10 int fd; local
14 assert((fd = open("/dev/zero", O_RDONLY)) >= 0);
15 assert(pread(fd, buf, sizeof buf, offset) == 4);
16 assert(preadv(fd, &iov, 1, offset) == 4);
17 assert(!close(fd));
19 assert((fd = open("/dev/null", O_WRONLY)) >= 0);
20 assert(pwrite(fd, buf, sizeof buf, offset) == 4);
21 assert(pwritev(fd, &iov, 1, offset) == 4);
22 assert(!close(fd));
/external/valgrind/main/none/tests/
H A Dcloseall.c9 int fd; local
13 for ( fd = 3; fd < lim.rlim_cur; fd++ )
14 close( fd );
/external/valgrind/main/none/tests/mips32/
H A Dbug320057-mips32.c17 int fd; local
19 fd = shm_open("/hw_mngr.c", (O_CREAT | O_EXCL | O_RDWR),
24 ftruncate(fd, SZ);
25 DO(ftruncate(fd, SZ));
27 ptr = mmap(0, SZ, (PROT_READ | PROT_WRITE), MAP_SHARED, fd, 0);
/external/bison/lib/
H A Dcloexec.c80 dup_cloexec (int fd) argument
82 return fcntl (fd, F_DUPFD_CLOEXEC, 0);
H A Dclose.c24 #include "fd-hook.h"
31 close_nothrow (int fd) argument
37 result = close (fd);
55 rpl_close (int fd) argument
58 int retval = execute_all_close_hooks (close_nothrow, fd);
60 int retval = close_nothrow (fd);
65 _gl_unregister_fd (fd);
H A Dfopen-safer.c37 int fd = fileno (fp); local
39 if (0 <= fd && fd <= STDERR_FILENO)
41 int f = dup_safer (fd);
H A Dpipe2.c40 pipe2 (int fd[2], int flags) argument
42 /* Mingw _pipe() corrupts fd on failure; also, if we succeed at
44 to leave fd unchanged: http://austingroupbugs.net/view.php?id=467 */
46 tmp[0] = fd[0];
47 tmp[1] = fd[1];
58 int result = pipe2 (fd, flags);
79 if (_pipe (fd, 4096, flags & ~O_NONBLOCK) < 0)
81 fd[0] = tmp[0];
82 fd[1] = tmp[1];
92 if (set_nonblocking_flag (fd[
[all...]
H A Dspawn_faction_adddup2.c37 int fd, int newfd)
43 if (fd < 0 || newfd < 0 || fd >= maxfd || newfd >= maxfd)
47 return posix_spawn_file_actions_adddup2 (file_actions, fd, newfd);
61 rec->action.dup2_action.fd = fd;
36 posix_spawn_file_actions_adddup2(posix_spawn_file_actions_t *file_actions, int fd, int newfd) argument
/external/chromium_org/android_webview/native/
H A Daw_media_url_interceptor.cc16 int* fd, int64* offset, int64* size) const{
25 return AwAssets::OpenAsset(filename, fd, offset, size);
15 Intercept(const std::string& url, int* fd, int64* offset, int64* size) const argument
/external/chromium_org/base/
H A Dos_compat_android.h13 extern "C" int futimes(int fd, const struct timeval tv[2]);
24 inline int lockf(int fd, int cmd, off_t ignored_len) { argument
25 return flock(fd, cmd);
/external/chromium_org/content/public/browser/
H A Dfile_descriptor_info.h20 fd(file_descriptor) {
24 base::FileDescriptor fd; member in struct:content::FileDescriptorInfo
/external/chromium_org/ipc/
H A Dfile_descriptor_set_posix_unittest.cc23 // Returns true if fd was already closed. Closes fd if not closed.
24 bool VerifyClosed(int fd) { argument
25 const int duped = dup(fd);
28 EXPECT_NE(IGNORE_EINTR(close(fd)), -1);
58 const int fd = GetSafeFd(); local
59 ASSERT_TRUE(set->AddToOwn(base::ScopedFD(fd)));
65 ASSERT_TRUE(VerifyClosed(fd));
85 const int fd = GetSafeFd(); local
86 static const int fds[] = {fd};
166 const int fd = GetSafeFd(); local
176 const int fd = GetSafeFd(); local
[all...]
/external/chromium_org/mojo/embedder/
H A Dplatform_handle.h20 PlatformHandle() : fd(-1) {}
21 explicit PlatformHandle(int fd) : fd(fd) {} argument
25 bool is_valid() const { return fd != -1; }
27 int fd; member in struct:mojo::embedder::PlatformHandle
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/syscalls/
H A Dioctl.c16 int ioctl(int fd, REQ_TYPE request, ...) { argument
19 int rtn = ki_ioctl(fd, request, ap);
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/syscalls/socket/
H A Dgetsockopt.c10 int getsockopt(int fd, int lvl, int optname, void* optval, socklen_t* len) { argument
11 return ki_getsockopt(fd, lvl, optname, optval, len);

Completed in 1391 milliseconds

1234567891011>>