Searched refs:fd (Results 101 - 125 of 2244) sorted by relevance

1234567891011>>

/external/compiler-rt/test/msan/
H A Dioctl.cc11 int fd = socket(AF_INET, SOCK_DGRAM, 0); local
14 int res = ioctl(fd, FIOGETOWN, &z);
16 close(fd);
/external/qemu/util/
H A Dyield-android.c9 // Wait until file descriptor |fd| becomes readable.
10 void yield_until_fd_readable(int fd) { argument
14 FD_SET(fd, &read_fds);
15 int ret = select(fd + 1, &read_fds, NULL, NULL, NULL);
/external/valgrind/main/memcheck/tests/
H A Dmmaptest.c9 int fd; local
12 fd = open("dir", O_RDONLY);
13 mmap(NULL, 4711, PROT_READ, MAP_PRIVATE, fd, 0);
/external/compiler-rt/test/tsan/
H A Drace_on_write.cc9 int fd; variable
19 write(fd, &buf, 1);
24 fd = open("/dev/null", O_WRONLY);
25 if (fd < 0) return 1;
32 close(fd);
/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 Ddeny_unknown.c14 int fd, ret, deny_unknown = 0; local
24 fd = open(path, O_RDONLY);
25 if (fd < 0)
29 ret = read(fd, buf, sizeof(buf) - 1);
30 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);
H A Dgetenforce.c14 int fd, ret, enforce = 0; local
24 fd = open(path, O_RDONLY);
25 if (fd < 0)
29 ret = read(fd, buf, sizeof buf - 1);
30 close(fd);
H A Dsetenforce.c14 int fd, ret; local
24 fd = open(path, O_RDWR);
25 if (fd < 0)
29 ret = write(fd, buf, strlen(buf));
30 close(fd);
/external/qemu/distrib/ext4_utils/src/
H A Dwipe.c35 int wipe_block_device(int fd, s64 len) argument
40 if (!is_block_device_fd(fd)) {
47 ret = ioctl(fd, BLKSECDISCARD, &range);
51 ret = ioctl(fd, BLKDISCARD, &range);
70 int wipe_block_device(int fd, s64 len) argument
/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 Ddeny_unknown.c14 int fd, ret, deny_unknown = 0; local
24 fd = open(path, O_RDONLY);
25 if (fd < 0)
29 ret = read(fd, buf, sizeof(buf) - 1);
30 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);
H A Dgetenforce.c14 int fd, ret, enforce = 0; local
24 fd = open(path, O_RDONLY);
25 if (fd < 0)
29 ret = read(fd, buf, sizeof buf - 1);
30 close(fd);
H A Dsetenforce.c14 int fd, ret; local
24 fd = open(path, O_RDWR);
25 if (fd < 0)
29 ret = write(fd, buf, strlen(buf));
30 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/bison/lib/
H A Dfstat.c35 orig_fstat (int fd, struct stat *buf) argument
37 return fstat (fd, buf);
55 fstat_nothrow (int fd, struct stat *buf) argument
61 result = orig_fstat (fd, buf);
77 rpl_fstat (int fd, struct stat *buf) argument
82 const char *name = _gl_directory_name (fd);
87 return fstat_nothrow (fd, buf);
H A Dopen.c56 int fd; local
118 fd = orig_open (filename, flags, mode);
127 if (REPLACE_OPEN_DIRECTORY && fd < 0 && errno == EACCES
135 fd = open ("/dev/null", flags, mode);
136 if (0 <= fd)
137 fd = _gl_register_fd (fd, filename);
145 /* If the filename ends in a slash and fd does not refer to a directory,
157 if (fd >= 0)
165 if (fstat (fd,
[all...]
/external/qemu/include/android/
H A Diolooper.h14 void iolooper_add_read( IoLooper* iol, int fd );
15 void iolooper_add_write( IoLooper* iol, int fd );
16 void iolooper_del_read( IoLooper* iol, int fd );
17 void iolooper_del_write( IoLooper* iol, int fd );
23 void iolooper_modify( IoLooper* iol, int fd, int oldflags, int newflags);
33 int iolooper_is_read( IoLooper* iol, int fd );
34 int iolooper_is_write( IoLooper* iol, int fd );
/external/chromium_org/third_party/mesa/src/src/gallium/targets/egl-static/
H A Degl_pipe.c50 pipe_i915_create_screen(int fd) argument
56 iws = i915_drm_winsys_create(fd);
73 pipe_nouveau_create_screen(int fd) argument
78 screen = nouveau_drm_screen_create(fd);
91 pipe_r300_create_screen(int fd) argument
97 sws = radeon_drm_winsys_create(fd);
114 pipe_r600_create_screen(int fd) argument
120 rw = radeon_drm_winsys_create(fd);
137 pipe_radeonsi_create_screen(int fd) argument
143 rw = radeon_drm_winsys_create(fd);
160 pipe_vmwgfx_create_screen(int fd) argument
183 egl_pipe_create_drm_screen(const char *name, int fd) argument
[all...]
/external/mesa3d/src/gallium/targets/egl-static/
H A Degl_pipe.c50 pipe_i915_create_screen(int fd) argument
56 iws = i915_drm_winsys_create(fd);
73 pipe_nouveau_create_screen(int fd) argument
78 screen = nouveau_drm_screen_create(fd);
91 pipe_r300_create_screen(int fd) argument
97 sws = radeon_drm_winsys_create(fd);
114 pipe_r600_create_screen(int fd) argument
120 rw = radeon_drm_winsys_create(fd);
137 pipe_radeonsi_create_screen(int fd) argument
143 rw = radeon_drm_winsys_create(fd);
160 pipe_vmwgfx_create_screen(int fd) argument
183 egl_pipe_create_drm_screen(const char *name, int fd) argument
[all...]
/external/llvm/autoconf/m4/
H A Dfunc_mmap_file.m414 int fd;
15 fd = creat ("foo",0777);
16 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
18 return (fd != (int) MAP_FAILED);]])],
/external/chromium_org/net/third_party/nss/ssl/
H A Dssl.h44 ** Imports fd into SSL, returning a new socket. Copies SSL configuration
47 SSL_IMPORT PRFileDesc *SSL_ImportFD(PRFileDesc *model, PRFileDesc *fd);
50 ** Imports fd into DTLS, returning a new socket. Copies DTLS configuration
53 SSL_IMPORT PRFileDesc *DTLS_ImportFD(PRFileDesc *model, PRFileDesc *fd);
191 SSL_IMPORT SECStatus SSL_Enable(PRFileDesc *fd, int option, PRBool on);
196 SSL_IMPORT SECStatus SSL_OptionSet(PRFileDesc *fd, PRInt32 option, PRBool on);
197 SSL_IMPORT SECStatus SSL_OptionGet(PRFileDesc *fd, PRInt32 option, PRBool *on);
200 SSL_IMPORT SECStatus SSL_CertDBHandleSet(PRFileDesc *fd, CERTCertDBHandle *dbHandle);
214 PRFileDesc *fd,
223 SSL_IMPORT SECStatus SSL_SetNextProtoCallback(PRFileDesc *fd,
[all...]
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/
H A Dkernel_proxy.h71 virtual int close(int fd);
72 virtual int dup(int fd);
73 virtual int dup2(int fd, int newfd);
90 virtual int fchown(int fd, uid_t owner, gid_t group);
107 virtual ssize_t read(int fd, void* buf, size_t nbyte);
108 virtual ssize_t write(int fd, const void* buf, size_t nbyte);
110 virtual int fchmod(int fd, mode_t mode);
111 virtual int fcntl(int fd, int request, va_list args);
112 virtual int fstat(int fd, struct stat* buf);
113 virtual int getdents(int fd, voi
[all...]
/external/qemu/target-i386/
H A Dhax-darwin.c24 int fd = open("/dev/HAX", O_RDWR); local
26 if (fd == -1)
32 return fd;
40 if (!hax_global.vm || !hax_global.vm->fd)
48 ret = ioctl(hax_global.vm->fd, HAX_VM_IOCTL_ALLOC_RAM, &info);
79 ret = ioctl(hax_global.vm->fd, HAX_VM_IOCTL_SET_RAM, pinfo);
92 ret = ioctl(hax->fd, HAX_IOCTL_CAPABILITY, cap);
106 ret = ioctl(hax->fd, HAX_IOCTL_VERSION, version);
158 if (hax_invalid_fd(hax->fd))
164 ret = ioctl(hax->fd, HAX_IOCTL_CREATE_V
171 hax_fd fd; local
220 hax_fd fd; local
270 int ret, fd; local
285 int ret, fd; local
299 int ret, fd; local
314 int ret, fd; local
[all...]

Completed in 4387 milliseconds

1234567891011>>