Searched defs:fd (Results 151 - 175 of 1450) sorted by relevance

1234567891011>>

/external/libselinux/src/
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/linux-tools-perf/perf-3.12.0/tools/perf/tests/
H A Dopen-syscall.c8 int err = -1, fd; local
32 fd = open("/etc/passwd", O_RDONLY);
33 close(fd);
/external/mesa3d/src/gallium/targets/dri-r600/
H A Dtarget.c6 static struct pipe_screen *create_screen(int fd) argument
11 radeon = radeon_drm_winsys_create(fd);
/external/mesa3d/src/gallium/targets/dri-radeonsi/
H A Dtarget.c6 static struct pipe_screen *create_screen(int fd) argument
11 radeon = radeon_drm_winsys_create(fd);
/external/mesa3d/src/gallium/targets/dri-vmwgfx/
H A Dtarget.c9 create_screen(int fd) argument
14 sws = svga_drm_winsys_screen_create(fd);
/external/openssl/crypto/des/
H A Denc_read.c87 int DES_enc_read(int fd, void *buf, int len, DES_key_schedule *sched, argument
154 i=read(fd,(void *)&(net[net_num]),HDRSIZE-net_num);
156 i=_read(fd,(void *)&(net[net_num]),HDRSIZE-net_num);
180 i=read(fd,(void *)&(net[net_num]),rnum-net_num);
182 i=_read(fd,(void *)&(net[net_num]),rnum-net_num);
H A Denc_writ.c80 int DES_enc_write(int fd, const void *_buf, int len, argument
117 k=DES_enc_write(fd,&(buf[i]),
160 i=write(fd,(void *)&(outbuf[j]),outnum-j);
162 i=_write(fd,(void *)&(outbuf[j]),outnum-j);
/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 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 Dfgetfilecon.c10 int fgetfilecon(int fd, char ** context) argument
22 ret = fgetxattr(fd, XATTR_NAME_SELINUX, buf, size - 1);
26 size = fgetxattr(fd, XATTR_NAME_SELINUX, NULL, 0);
37 ret = fgetxattr(fd, XATTR_NAME_SELINUX, buf, size - 1);
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 Dload_policy.c22 int fd, ret; local
30 fd = open(path, O_RDWR);
31 if (fd < 0)
34 ret = write(fd, data, len);
35 close(fd);
H A Dpolicyvers.c15 int fd, ret; local
26 fd = open(path, O_RDONLY);
27 if (fd < 0) {
34 ret = read(fd, buf, sizeof buf - 1);
35 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/valgrind/main/none/tests/
H A Drlimit_nofile.c13 int fd; local
92 if ((fd = open("/dev/null", O_RDONLY)) >= 0)
94 fprintf(stderr, "open succeeded with fd %d - it should have failed!\n", fd);
/external/bison/lib/
H A Dfopen.c76 int fd; local
86 fd = open (filename, O_RDONLY);
87 if (fd < 0)
90 if (fstat (fd, &statbuf) >= 0 && !S_ISDIR (statbuf.st_mode))
92 close (fd);
97 fp = fdopen (fd, mode);
101 close (fd);
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 Dspawn_faction_addopen.c37 int fd, const char *path, int oflag,
44 if (fd < 0 || fd >= maxfd)
48 return posix_spawn_file_actions_addopen (file_actions, fd, path, oflag, mode);
62 rec->action.open_action.fd = fd;
36 posix_spawn_file_actions_addopen(posix_spawn_file_actions_t *file_actions, int fd, const char *path, int oflag, mode_t mode) argument
/external/chromium_org/base/android/
H A Dcontent_uri_utils.cc31 jint fd = Java_ContentUriUtils_openContentUriForRead( local
33 if (fd < 0)
35 return File(fd);
/external/chromium_org/base/files/
H A Ddir_reader_fallback.h27 int fd() const { return -1; } function in class:base::DirReaderFallback
/external/chromium_org/chrome/browser/apps/app_shim/
H A Dunix_domain_socket_acceptor.cc36 // Watch the fd for connections, and turn any connections into
47 // Called by libevent when we can read from the fd without blocking.
48 void UnixDomainSocketAcceptor::OnFileCanReadWithoutBlocking(int fd) {
49 DCHECK(fd == listen_fd_);
73 void UnixDomainSocketAcceptor::OnFileCanWriteWithoutBlocking(int fd) { argument
74 NOTREACHED() << "Listen fd should never be writable.";
/external/chromium_org/components/nacl/loader/nonsfi/
H A Dirt_random.cc31 void SetUrandomFd(int fd) { argument
33 secure_random_fd = fd;
/external/chromium_org/content/common/
H A Dsandbox_util.cc29 // If asked to close the source, we can simply re-use the source fd instead of
37 int fd = should_close_source ? handle : ::dup(handle); local
38 out_handle = base::FileDescriptor(fd, true);
/external/chromium_org/ipc/
H A Dipc_platform_file.cc32 // If asked to close the source, we can simply re-use the source fd instead of
40 int fd = close_source_handle ? handle : ::dup(handle); local
41 out_handle = base::FileDescriptor(fd, true);
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/
H A Dsyscalls_test.cc65 int fd = open("/tmp/file", O_CREAT | O_RDWR, 0644); local
66 ASSERT_GT(fd, -1);
67 ASSERT_EQ(0, close(fd));

Completed in 281 milliseconds

1234567891011>>