Searched refs:fd (Results 51 - 75 of 2244) sorted by relevance

1234567891011>>

/external/valgrind/main/memcheck/tests/
H A Dfwrite.c8 int fd = open("/dev/null", O_WRONLY); local
9 if (fd < 0) {
12 (void)write(fd, arr, 10);
13 (void)close(fd);
/external/bison/lib/
H A Dbinary-io.h33 /* set_binary_mode (fd, mode)
34 sets the binary/text I/O mode of file descriptor fd to the given mode
50 set_binary_mode (int fd, int mode)
52 (void) fd;
58 /* SET_BINARY (fd);
59 changes the file descriptor fd to perform binary I/O. */
65 # define SET_BINARY(fd) ((void) (!isatty (fd) ? (set_binary_mode (fd, O_BINARY), 0) : 0))
67 # define SET_BINARY(fd) ((voi
[all...]
H A Dfd-hook.h32 typedef int (*gl_close_fn) (int fd);
35 typedef int (*gl_ioctl_fn) (int fd, int request, void *arg);
51 int fd);
57 int fd, int request, void *arg);
68 int fd);
74 int fd);
78 extern int execute_all_close_hooks (gl_close_fn primary, int fd);
88 int fd, int request, void *arg);
94 int fd, int request, void *arg);
99 int fd, in
[all...]
H A Dspawn_faction_addclose.c37 int fd)
43 if (fd < 0 || fd >= maxfd)
47 return posix_spawn_file_actions_addclose (file_actions, fd);
61 rec->action.open_action.fd = fd;
36 posix_spawn_file_actions_addclose(posix_spawn_file_actions_t *file_actions, int fd) argument
H A Ddup-safer-flag.c34 dup_safer_flag (int fd, int flag) argument
36 return fcntl (fd, (flag & O_CLOEXEC) ? F_DUPFD_CLOEXEC : F_DUPFD,
/external/qemu/android/avd/
H A Dutil_unittest.cpp33 FileData fd; local
44 EXPECT_EQ(0,fileData_initFromMemory(&fd, testFile, strlen(testFile)));
50 EXPECT_EQ(kDefault,propertyFile_getInt(&fd, "invalid", kDefault, &searchResult));
54 EXPECT_EQ(kDefault,propertyFile_getInt(&fd, "invalid2", kDefault, &searchResult));
58 EXPECT_EQ(kDefault,propertyFile_getInt(&fd, "invalid3", kDefault, &searchResult));
62 EXPECT_EQ(kDefault,propertyFile_getInt(&fd, "bar", kDefault, &searchResult));
66 EXPECT_EQ(kDefault,propertyFile_getInt(&fd, "empty", kDefault, &searchResult));
70 EXPECT_EQ(19,propertyFile_getInt(&fd, "nineteen", kDefault, &searchResult));
74 EXPECT_EQ(kDefault,propertyFile_getInt(&fd, "bar", kDefault, NULL));
75 EXPECT_EQ(kDefault,propertyFile_getInt(&fd, "invali
80 FileData fd; local
102 FileData fd; local
[all...]
/external/chromium_org/components/nacl/loader/nonsfi/
H A Dirt_fdio.cc22 int IrtClose(int fd) { argument
23 return CheckError(close(fd));
26 int IrtDup(int fd, int* newfd) { argument
27 return CheckErrorWithResult(dup(fd), newfd);
30 int IrtDup2(int fd, int newfd) { argument
31 return CheckError(dup2(fd, newfd));
34 int IrtRead(int fd, void* buf, size_t count, size_t* nread) { argument
35 return CheckErrorWithResult(read(fd, buf, count), nread);
38 int IrtWrite(int fd, const void* buf, size_t count, size_t* nwrote) { argument
39 return CheckErrorWithResult(write(fd, bu
42 IrtSeek(int fd, nacl_abi_off_t offset, int whence, nacl_abi_off_t* new_offset) argument
47 IrtFstat(int fd, struct nacl_abi_stat* st) argument
56 IrtGetDents(int fd, struct nacl_abi_dirent* buf, size_t count, size_t* nread) argument
[all...]
/external/e2fsprogs/lib/ext2fs/
H A Dgetsectsize.c26 #include <linux/fd.h>
46 int fd; local
48 fd = ext2fs_open_file(file, O_RDONLY, 0);
49 if (fd < 0)
53 if (ioctl(fd, BLKSSZGET, sectsize) >= 0) {
54 close(fd);
59 close(fd);
66 int ext2fs_get_dio_alignment(int fd) argument
71 if (ioctl(fd, BLKSSZGET, &align) < 0)
94 int fd; local
[all...]
/external/strace/test/
H A Dubi.c13 int fd = open("/dev/null", 0); local
37 ioctl(fd, UBI_IOCMKVOL, &mkvol);
38 ioctl(fd, UBI_IOCRSVOL, &rsvol);
39 ioctl(fd, UBI_IOCRNVOL, &rnvol);
40 ioctl(fd, UBI_IOCATT, &attach);
41 ioctl(fd, UBI_IOCVOLUP, &bytes);
42 ioctl(fd, UBI_IOCEBMAP, &map);
43 ioctl(fd, UBI_IOCSETVOLPROP, &prop);
45 ioctl(fd, UBI_IOCSETVOLPROP, &prop);
46 ioctl(fd, UBI_IOCRMVO
[all...]
H A Dmtd.c10 int fd = open("/dev/null", 0); local
27 ioctl(fd, MEMGETINFO, &minfo);
29 ioctl(fd, MEMERASE, &einfo);
30 ioctl(fd, MEMERASE64, &einfo64);
32 ioctl(fd, MEMGETBADBLOCK, &f);
34 ioctl(fd, OTPSELECT, &i);
35 ioctl(fd, MEMSETBADBLOCK, &f);
37 ioctl(fd, MEMREADOOB, &mbuf);
38 ioctl(fd, MEMREADOOB64, &mbuf64);
40 ioctl(fd, MEMGETREGIONINF
[all...]
/external/qemu/android/
H A Diolooper-select.c46 iolooper_add_fd( IoLooper* iol, int fd )
48 if (iol->max_fd_valid && fd > iol->max_fd) {
49 iol->max_fd = fd;
54 iolooper_del_fd( IoLooper* iol, int fd )
56 if (iol->max_fd_valid && fd == iol->max_fd)
61 iolooper_modify( IoLooper* iol, int fd, int oldflags, int newflags ) argument
63 if (fd < 0)
70 iolooper_add_read(iol, fd);
72 iolooper_del_read(iol, fd);
76 iolooper_add_write(iol, fd);
87 int fd; local
[all...]
/external/chromium_org/third_party/sqlite/src/tool/
H A Dspeedtest.tcl15 set fd [open $sqlfile r]
16 set sql [string trim [read $fd [file size $sqlfile]]]
17 close $fd
75 set fd [open clear.sql w]
76 puts $fd {
80 close $fd
83 set fd [open 2kinit.sql w]
84 puts $fd {
88 close $fd
91 set fd [ope
[all...]
H A Dspeedtest2.tcl15 set fd [open $sqlfile r]
16 set sql [string trim [read $fd [file size $sqlfile]]]
17 close $fd
67 set fd [open clear.sql w]
68 puts $fd {
72 close $fd
75 set fd [open 2kinit.sql w]
76 puts $fd {
80 close $fd
83 set fd [ope
[all...]
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/
H A Dkernel_wrap_real.h15 int _real_close(int fd);
17 int _real_fstat(int fd, struct stat* buf);
18 int _real_getdents(int fd, void* nacl_buf, size_t nacl_count, size_t* nread);
19 int _real_isatty(int fd, int* result);
20 int _real_lseek(int fd, int64_t offset, int whence, int64_t* new_offset);
26 int fd,
30 int _real_open_resource(const char* file, int* fd);
31 int _real_read(int fd, void* buf, size_t count, size_t* nread);
33 int _real_write(int fd, const void* buf, size_t count, size_t* nwrote);
/external/compiler-rt/lib/tsan/rtl/
H A Dtsan_fd.h42 void FdAcquire(ThreadState *thr, uptr pc, int fd);
43 void FdRelease(ThreadState *thr, uptr pc, int fd);
44 void FdAccess(ThreadState *thr, uptr pc, int fd);
45 void FdClose(ThreadState *thr, uptr pc, int fd);
46 void FdFileCreate(ThreadState *thr, uptr pc, int fd);
49 void FdEventCreate(ThreadState *thr, uptr pc, int fd);
50 void FdSignalCreate(ThreadState *thr, uptr pc, int fd);
51 void FdInotifyCreate(ThreadState *thr, uptr pc, int fd);
52 void FdPollCreate(ThreadState *thr, uptr pc, int fd);
53 void FdSocketCreate(ThreadState *thr, uptr pc, int fd);
[all...]
/external/linux-tools-perf/perf-3.12.0/tools/perf/scripts/perl/
H A Drw-by-file.pl31 $common_pid, $common_comm, $nr, $fd, $buf, $count) = @_;
34 $reads{$fd}{bytes_requested} += $count;
35 $reads{$fd}{total_reads}++;
42 $common_pid, $common_comm, $nr, $fd, $buf, $count) = @_;
45 $writes{$fd}{bytes_written} += $count;
46 $writes{$fd}{total_writes}++;
54 printf("%6s %10s %10s\n", "fd", "# reads", "bytes_requested");
57 foreach my $fd (sort {$reads{$b}{bytes_requested} <=>
59 my $total_reads = $reads{$fd}{total_reads};
60 my $bytes_requested = $reads{$fd}{bytes_requeste
[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/qemu/android/base/files/
H A DScopedFd.h31 // Constructor takes ownership of |fd|.
32 explicit ScopedFd(int fd) : fd_(fd) {} argument
42 int fd = fd_; local
44 return fd;
62 int fd = fd_; local
64 other->fd_ = fd;
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/
H A DFileDescriptorInfo.java12 FileDescriptorInfo(int id, int fd, boolean autoClose) { argument
14 mFd = fd;
/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/native_client_sdk/src/libraries/nacl_io/syscalls/
H A Dfcntl.c10 int fcntl(int fd, int cmd, ...) { argument
13 int rtn = ki_fcntl(fd, cmd, 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);
H A Drecvfrom.c10 ssize_t recvfrom(int fd, void* buf, size_t len, int flags, argument
12 return ki_recvfrom(fd, buf, len, flags, addr, addrlen);
H A Dsendto.c10 ssize_t sendto(int fd, const void* buf, size_t len, int flags, argument
12 return ki_sendto(fd, buf, len, flags, addr, addrlen);
H A Dsetsockopt.c10 int setsockopt(int fd, int lvl, int optname, const void* optval, argument
12 return ki_setsockopt(fd, lvl, optname, optval, len);

Completed in 3778 milliseconds

1234567891011>>