Searched refs:fd (Results 1 - 25 of 2244) sorted by relevance

1234567891011>>

/external/chromium_org/native_client_sdk/src/libraries/nacl_io/syscalls/
H A Dftruncate.c8 int ftruncate(int fd, off_t length) { argument
9 return ki_ftruncate(fd, length);
H A Dfutimes.c8 int futimes(int fd, const struct timeval times[2]) { argument
9 return ki_futimes(fd, times);
H A Disatty.c12 int isatty(int fd) { argument
13 return ki_isatty(fd);
H A Dfchown.c8 int fchown(int fd, uid_t owner, gid_t group) { argument
9 return ki_fchown(fd, owner, group);
H A Dtcflush.c16 int tcflush(int fd, int queue_selector) { argument
17 return ki_tcflush(fd, queue_selector);
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/syscalls/socket/
H A Dlisten.c10 int listen(int fd, int backlog) { argument
11 return ki_listen(fd, backlog);
H A Dshutdown.c10 int shutdown(int fd, int how) { argument
11 return ki_shutdown(fd, how);
/external/bison/lib/
H A Dfd-safer-flag.c40 fd_safer_flag (int fd, int flag) argument
42 if (STDIN_FILENO <= fd && fd <= STDERR_FILENO)
44 int f = dup_safer_flag (fd, flag);
46 close (fd);
48 fd = f;
51 return fd;
H A Dfd-safer.c37 fd_safer (int fd) argument
39 if (STDIN_FILENO <= fd && fd <= STDERR_FILENO)
41 int f = dup_safer (fd);
43 close (fd);
45 fd = f;
48 return fd;
H A Dpipe-safer.c31 pipe_safer (int fd[2]) argument
34 if (pipe (fd) == 0)
39 fd[i] = fd_safer (fd[i]);
40 if (fd[i] < 0)
43 close (fd[1 - i]);
H A Dpipe2-safer.c31 pipe2_safer (int fd[2], int flags) argument
34 if (pipe2 (fd, flags) == 0)
39 fd[i] = fd_safer_flag (fd[i], flags);
40 if (fd[i] < 0)
43 close (fd[1 - i]);
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 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 Dcloexec.h38 int dup_cloexec (int fd);
H A Ddup-safer.c31 dup_safer (int fd) argument
33 return fcntl (fd, F_DUPFD, STDERR_FILENO + 1);
/external/chromium_org/third_party/mesa/src/src/gbm/main/
H A Dbackend.h34 _gbm_create_device(int fd);
/external/lldb/tools/debugserver/source/
H A Dlibdebugserver.h13 int debug_server_main(int fd);
/external/mesa3d/src/gbm/main/
H A Dbackend.h34 _gbm_create_device(int fd);
/external/nanopb-c/examples/network_server/
H A Dcommon.h6 pb_ostream_t pb_ostream_from_socket(int fd);
7 pb_istream_t pb_istream_from_socket(int fd);
/external/e2fsprogs/tests/progs/
H A Drandom_exercise.c50 int fd; local
53 fd = ((int) random()) % MAXFDS;
54 if (fd > 2)
55 return fd;
59 unsigned int get_inode_num(int fd) argument
63 if (fstat(fd, &st) < 0) {
74 int fd; local
83 fd = open(template, O_RDONLY, 0600);
84 printf("Created temp directory %s, fd = %d\n",
85 template, fd);
101 truncate_file(int fd) argument
116 unlink_file(int fd) argument
130 close_file(int fd) argument
144 int i, fd; local
[all...]
/external/chromium_org/third_party/ashmem/
H A Dashmem-dev.c44 int fd, ret; local
46 fd = open(ASHMEM_DEVICE, O_RDWR);
47 if (fd < 0)
48 return fd;
54 ret = ioctl(fd, ASHMEM_SET_NAME, buf);
59 ret = ioctl(fd, ASHMEM_SET_SIZE, size);
63 return fd;
66 close(fd);
70 int ashmem_set_prot_region(int fd, int prot) argument
72 return ioctl(fd, ASHMEM_SET_PROT_MAS
75 ashmem_pin_region(int fd, size_t offset, size_t len) argument
81 ashmem_unpin_region(int fd, size_t offset, size_t len) argument
87 ashmem_get_size_region(int fd) argument
94 const int fd = open(ASHMEM_DEVICE, O_RDWR); local
[all...]
/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/chromium_org/base/
H A Dfile_descriptor_posix.h21 FileDescriptor() : fd(-1), auto_close(false) {}
23 FileDescriptor(int ifd, bool iauto_close) : fd(ifd), auto_close(iauto_close) {
26 FileDescriptor(File file) : fd(file.TakePlatformFile()), auto_close(true) {}
29 return (fd == other.fd && auto_close == other.auto_close);
38 return other.fd < fd;
41 int fd; member in struct:base::FileDescriptor
/external/chromium_org/base/files/
H A Dscoped_file.cc21 void ScopedFDCloseTraits::Free(int fd) { argument
29 PCHECK(0 == IGNORE_EINTR(close(fd)));

Completed in 424 milliseconds

1234567891011>>