Searched refs:fd (Results 151 - 175 of 2244) sorted by relevance

1234567891011>>

/external/dhcpcd/
H A Dcontrol.h34 int fd; member in struct:fd_list
H A Dcontrol.c45 static int fd = -1; variable
59 close(l->fd);
60 delete_event(l->fd);
81 bytes = read(l->fd, buffer, sizeof(buffer) - 1);
109 if ((f = accept(fd, (struct sockaddr *)&run, &len)) == -1)
112 l->fd = f;
116 add_event(l->fd, handle_control_data, l);
122 if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
138 if (bind(fd, (struct sockaddr *)&sun, len) == -1 ||
141 set_cloexec(fd)
[all...]
/external/e2fsprogs/contrib/
H A Dmake-sparse.c23 int full_read(int fd, char *buf, size_t count) argument
29 got = read(fd, buf, count);
50 int fd, got, i; local
58 fd = open(argv[1], O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0777);
59 if (fd < 0) {
72 lseek(fd, sizeof(buf), SEEK_CUR);
78 write(fd, buf, got);
81 lseek(fd, -1, SEEK_CUR);
83 write(fd, buf, 1);
/external/e2fsprogs/e2fsck/
H A Dflushb.c40 int fd; local
46 fd = open(argv[1], O_RDONLY, 0);
47 if (fd < 0) {
56 if (ioctl(fd, BLKFLSBUF, 0) < 0) {
/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/fio/
H A Dhelpers.c13 int fallocate(int fd, int mode, off_t offset, off_t len) argument
21 int posix_fallocate(int fd, off_t offset, off_t len) argument
28 int sync_file_range(int fd, off64_t offset, off64_t nbytes, unsigned int flags) argument
36 int posix_fadvise(int fd, off_t offset, off_t len, int advice) argument
/external/fio/os/windows/posix/include/sys/
H A Dpoll.h8 int fd; member in struct:pollfd
/external/jemalloc/test/unit/
H A Dprof_gdump.c12 int fd; local
16 fd = open("/dev/null", O_WRONLY);
17 assert_d_ne(fd, -1, "Unexpected open() failure");
19 return (fd);
H A Dprof_idump.c14 int fd; local
18 fd = open("/dev/null", O_WRONLY);
19 assert_d_ne(fd, -1, "Unexpected open() failure");
21 return (fd);
/external/lldb/test/pexpect-2.4/
H A Dfdpexpect.py18 def __init__ (self, fd, args=[], timeout=30, maxread=2000, searchwindowsize=None, logfile=None):
27 if type(fd) != type(0) and hasattr(fd, 'fileno'):
28 fd = fd.fileno()
30 if type(fd) != type(0):
31 raise ExceptionPexpect ('The fd argument is not an int. If this is a command string then maybe you want to use pexpect.spawn.')
33 try: # make sure fd is a valid file descriptor
34 os.fstat(fd)
36 raise ExceptionPexpect, 'The fd argumen
[all...]
/external/mesa3d/src/gallium/targets/egl-static/
H A Degl_pipe.h35 egl_pipe_create_drm_screen(const char *name, int fd);
/external/mesa3d/src/gallium/winsys/sw/fbdev/
H A Dfbdev_sw_winsys.h43 fbdev_create_sw_winsys(int fd);
/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/target-i386/
H A Dkvm-gs-restore.h5 int no_gs_ioctl(int fd, int type, void *arg);
/external/skia/src/ports/
H A DSkOSFile_posix.cpp23 int fd = fileno((FILE*)a); local
24 if (fd < 0) {
28 if (0 != fstat(fd, &status)) {
47 void* sk_fdmmap(int fd, size_t* size) { argument
49 if (0 != fstat(fd, &status)) {
60 void* addr = mmap(NULL, fileSize, PROT_READ, MAP_PRIVATE, fd, 0);
74 int fd = sk_fileno(f); local
75 if (fd < 0) {
79 return sk_fdmmap(fd, size);
/external/valgrind/main/memcheck/tests/
H A Dsendmsg.c13 int fd; local
18 fd = socket (AF_INET, SOCK_DGRAM, 0);
19 if (fd == -1)
28 if (connect (fd, (struct sockaddr *) &sa, sizeof (sa)) == -1)
45 size_t s = sendmsg (fd, &msg, 0);
51 fd = socket (AF_INET, SOCK_DGRAM, 0);
52 if (fd == -1)
58 if (connect (fd, (struct sockaddr *) &sa, sizeof (sa)) == -1)
64 s = sendmsg (fd, &msg, 0);
/external/valgrind/main/none/tests/
H A Dmmap_fcntl_bug.c21 int fd, status; local
27 fd = open(file, O_RDWR);
28 if (fd < 0)
31 // reproduce bug 297991: mmap interferes with fd position
32 initial = lseek(fd, 123, SEEK_SET);
35 if (lseek(fd, 0, SEEK_CUR) != 123)
44 if (fcntl(fd, F_SETLK, &fl) != 0)
48 if (mmap(NULL, getpagesize(), PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0) == MAP_FAILED)
50 if (lseek(fd, 0, SEEK_CUR) != 123)
56 if (fcntl(fd, F_SETL
[all...]
/external/qemu/android/
H A Dsnapshot.c48 /* Reads 'nbyte' bytes from 'fd' into 'buf', retrying on interrupts.
52 read_or_die(int fd, void *buf, size_t nbyte) argument
54 int ret = HANDLE_EINTR(read(fd, buf, nbyte));
65 seek_or_die(int fd, off_t offset, int whence) argument
67 off_t ret = lseek(fd, offset, whence);
104 * The function assumes the file position of 'fd' points to the beginning of a
105 * QcowSnapshotHeader record. When the call returns, the file position of fd is
112 snapshot_info_read( int fd, SnapshotInfo* info ) argument
114 uint64_t start_offset = seek_or_die(fd, 0, SEEK_CUR);
120 seek_or_die(fd, 1
241 snapshot_print_table( int fd, uint32_t nb_snapshots, uint64_t snapshots_offset ) argument
291 snapshot_read_qcow_header( int fd, uint32_t *nb_snapshots, uint64_t *snapshots_offset ) argument
313 int fd = open(snapstorage, O_RDONLY); local
[all...]
/external/compiler-rt/lib/tsan/rtl/
H A Dtsan_fd.cc45 static bool bogusfd(int fd) { argument
46 // Apparently a bogus fd value.
47 return fd < 0 || fd >= kTableSize;
73 static FdDesc *fddesc(ThreadState *thr, uptr pc, int fd) { argument
74 CHECK_GE(fd, 0);
75 CHECK_LT(fd, kTableSize);
76 atomic_uintptr_t *pl1 = &fdctx.tab[fd / kTableSizeL2];
89 return &((FdDesc*)l1)[fd % kTableSizeL2]; // NOLINT
93 static void init(ThreadState *thr, uptr pc, int fd, FdSyn argument
136 FdLocation(uptr addr, int *fd, int *tid, u32 *stack) argument
153 FdAcquire(ThreadState *thr, uptr pc, int fd) argument
164 FdRelease(ThreadState *thr, uptr pc, int fd) argument
175 FdAccess(ThreadState *thr, uptr pc, int fd) argument
183 FdClose(ThreadState *thr, uptr pc, int fd) argument
199 FdFileCreate(ThreadState *thr, uptr pc, int fd) argument
225 FdEventCreate(ThreadState *thr, uptr pc, int fd) argument
232 FdSignalCreate(ThreadState *thr, uptr pc, int fd) argument
239 FdInotifyCreate(ThreadState *thr, uptr pc, int fd) argument
246 FdPollCreate(ThreadState *thr, uptr pc, int fd) argument
253 FdSocketCreate(ThreadState *thr, uptr pc, int fd) argument
261 FdSocketAccept(ThreadState *thr, uptr pc, int fd, int newfd) argument
270 FdSocketConnecting(ThreadState *thr, uptr pc, int fd) argument
278 FdSocketConnect(ThreadState *thr, uptr pc, int fd) argument
[all...]
/external/qemu/include/android/
H A Dsockets.h331 SocketType socket_get_type(int fd);
334 int socket_set_xreuseaddr(int fd);
337 int socket_set_nonblock(int fd);
340 int socket_set_blocking(int fd);
343 int socket_set_cork(int fd, int value);
346 int socket_set_nodelay(int fd);
349 int socket_set_oobinline(int fd);
352 int socket_set_ipv6only(int fd);
355 int socket_get_error(int fd);
361 void socket_close( int fd );
[all...]
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/
H A Dkernel_intercept.h77 int ki_fchdir(int fd);
78 int ki_fchmod(int fd, mode_t mode);
90 ssize_t ki_read(int fd, void* buf, size_t nbyte);
91 ssize_t ki_write(int fd, const void* buf, size_t nbyte);
92 int ki_fstat(int fd, struct stat* buf);
93 int ki_getdents(int fd, void* buf, unsigned int count);
94 int ki_fsync(int fd);
95 int ki_fdatasync(int fd);
96 int ki_ftruncate(int fd, off_t length);
97 int ki_isatty(int fd);
[all...]
/external/chromium_org/sandbox/linux/services/
H A Dthread_helpers_unittests.cc47 int fd() { return fd_; } function in class:sandbox::__anon10581::ScopedProcSelfTask
67 ASSERT_TRUE(ThreadHelpers::IsSingleThreaded(task.fd()));
72 ASSERT_FALSE(ThreadHelpers::IsSingleThreaded(task.fd()));
75 ASSERT_TRUE(ThreadHelpers::StopThreadAndWatchProcFS(task.fd(), &thread));
80 ASSERT_TRUE(ThreadHelpers::IsSingleThreaded(task.fd()));
86 ASSERT_FALSE(ThreadHelpers::IsSingleThreaded(task.fd()));
88 ASSERT_TRUE(ThreadHelpers::StopThreadAndWatchProcFS(task.fd(), &thread));
94 ASSERT_TRUE(ThreadHelpers::IsSingleThreaded(task.fd()));
101 ASSERT_FALSE(ThreadHelpers::IsSingleThreaded(task.fd()));
103 ASSERT_TRUE(ThreadHelpers::StopThreadAndWatchProcFS(task.fd(),
[all...]
/external/chromium_org/third_party/sqlite/src/test/
H A Dwal_common.tcl66 set fd [open $filename r+]
67 fconfigure $fd -translation binary
68 fconfigure $fd -encoding binary
69 seek $fd 0
70 puts -nonewline $fd $blob
71 close $fd
74 set fd [open $filename]
75 fconfigure $fd -translation binary
76 fconfigure $fd -encoding binary
77 set blob [read $fd 2
[all...]
/external/e2fsprogs/lib/blkid/
H A Dllseek.c41 extern long long llseek(int fd, long long offset, int origin);
64 static _syscall5(int, _llseek, unsigned int, fd, unsigned long, offset_high,
69 static blkid_loff_t my_llseek(int fd, blkid_loff_t offset, int origin) argument
75 retval = _llseek(fd, ((unsigned long long) offset) >> 32,
79 retval = syscall(__NR__llseek, fd, ((unsigned long long) offset) >> 32,
90 blkid_loff_t blkid_llseek(int fd, blkid_loff_t offset, int whence) argument
97 return lseek(fd, (off_t) offset, whence);
104 result = my_llseek(fd, offset, whence);
126 blkid_loff_t blkid_llseek(int fd, blkid_loff_t offset, int origin) argument
129 return lseek64 (fd, offse
[all...]

Completed in 3398 milliseconds

1234567891011>>