Searched defs:fd (Results 276 - 300 of 1450) sorted by relevance

<<11121314151617181920>>

/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/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);
/external/kernel-headers/original/uapi/linux/usb/
H A Df_mtp.h26 int fd; member in struct:mtp_file_range
/external/libcap-ng/libcap-ng-0.7/utils/
H A Dfilecap.c52 int fd = open(fpath, O_RDONLY|O_CLOEXEC); local
53 if (fd >= 0) {
57 capng_get_caps_fd(fd);
72 close(fd);
172 int fd = open(path, O_WRONLY|O_NOFOLLOW|O_CLOEXEC);
173 if (fd < 0) {
178 capng_apply_caps_fd(fd);
179 close(fd);
/external/libmtp/examples/
H A Dthumb.c47 int fd; local
88 if ( (fd = open(path, O_RDONLY|O_BINARY) == -1) ) {
90 if ( (fd = open(path, O_RDONLY)) == -1) {
96 read(fd, imagedata, filesize);
97 close(fd);
/external/libnl/src/
H A Dnl-list-sockets.c18 FILE *fd; local
21 fd = fopen(PROC_NETLINK, "r");
22 if (fd == NULL) {
30 while (fgets(buf, sizeof(buf), fd)) {
46 fclose(fd);
/external/libpng/contrib/arm-neon/
H A Dlinux-auxv.c39 safe_read(png_structp png_ptr, int fd, void *buffer_in, size_t nbytes) argument
59 iread = read(fd, buffer, nread);
99 int fd = open("/proc/self/auxv", O_RDONLY); local
103 if (fd == -1)
109 while (safe_read(png_ptr, fd, &aux, sizeof aux) == sizeof aux)
113 close(fd);
118 close(fd);
/external/libselinux/src/
H A Dcompute_av.c22 int fd, ret; local
30 fd = open(path, O_RDWR);
31 if (fd < 0)
44 ret = write(fd, buf, strlen(buf));
49 ret = read(fd, buf, len - 1);
69 close(fd);
/external/libunwind/src/coredump/
H A D_UCD_access_mem.c57 int fd; local
71 fd = phdr->backing_fd;
77 fd = ui->coredump_fd;
79 if (lseek(fd, fileofs, SEEK_SET) != fileofs)
81 if (read(fd, val, sizeof(*val)) != sizeof(*val))
/external/libunwind/src/
H A Delfxx.h74 int fd; local
76 fd = open (path, O_RDONLY);
77 if (fd < 0)
80 if (fstat (fd, &stat) < 0)
82 close (fd);
87 ei->image = mmap (NULL, ei->size, PROT_READ, MAP_PRIVATE, fd, 0);
88 close (fd);
/external/libvpx/libvpx/
H A Dvpxstats.c31 int fd; local
33 fd = open(fpf, O_RDONLY);
34 stats->file = fdopen(fd, "rb");
35 fstat(fd, &stat_buf);
37 stats->buf.buf = mmap(NULL, stats->buf.sz, PROT_READ, MAP_PRIVATE, fd, 0);
/external/linux-tools-perf/perf-3.12.0/tools/perf/tests/
H A Dbp_signal_overflow.c43 static long long bp_count(int fd) argument
48 ret = read(fd, &count, sizeof(long long));
65 int fd, i, fails = 0; local
94 fd = sys_perf_event_open(&pe, 0, -1, -1, 0);
95 if (fd < 0) {
100 fcntl(fd, F_SETFL, O_RDWR|O_NONBLOCK|O_ASYNC);
101 fcntl(fd, F_SETSIG, SIGIO);
102 fcntl(fd, F_SETOWN, getpid());
104 ioctl(fd, PERF_EVENT_IOC_RESET, 0);
105 ioctl(fd, PERF_EVENT_IOC_ENABL
[all...]
H A Dopen-syscall-all-cpus.c9 int err = -1, fd, cpu; local
63 fd = open("/etc/passwd", O_RDONLY);
64 close(fd);
/external/lldb/source/Core/
H A DStreamFile.cpp38 StreamFile::StreamFile (int fd, bool transfer_ownership) : argument
40 m_file (fd, transfer_ownership)
/external/lldb/tools/debugserver/source/
H A DTTYState.cpp32 TTYState::GetTTYState (int fd, bool saveProcessGroup) argument
34 if (fd >= 0 && ::isatty (fd))
36 m_fd = fd;
37 m_tflags = fcntl (fd, F_GETFL, 0);
38 m_ttystateErr = tcgetattr (fd, &m_ttystate);
93 TTYStateSwitcher::GetState(uint32_t idx, int fd, bool saveProcessGroup) argument
96 return m_ttystates[idx].GetTTYState(fd, saveProcessGroup);
/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/mesa3d/src/gallium/winsys/i915/drm/
H A Di915_drm_winsys.c19 i915_drm_get_device_id(int fd, unsigned int *device_id) argument
27 ret = ioctl(fd, DRM_IOCTL_I915_GETPARAM, &gp, sizeof(gp));
57 idws->fd = drmFD;
63 idws->gem_manager = drm_intel_bufmgr_gem_init(idws->fd, idws->max_batch_size);
/external/mesa3d/src/gbm/backends/dri/
H A Ddriver_name.c39 dri_fd_get_driver_name(int fd) argument
48 device = _gbm_udev_device_new_from_fd(udev, fd);
71 fd, vendor_id, chip_id, driver);
79 fd, vendor_id, chip_id, driver);
/external/openssl/apps/
H A Dmd4.c103 int fd; local
107 fd=fileno(f);
111 i=read(fd,buf,sizeof buf);
/external/openssl/crypto/md4/
H A Dmd4.c103 int fd; local
107 fd=fileno(f);
111 i=read(fd,buf,sizeof buf);
/external/openssl/crypto/md5/
H A Dmd5.c103 int fd; local
107 fd=fileno(f);
111 i=read(fd,buf,BUFSIZE);
/external/openssl/crypto/sha/
H A Dsha.c100 int fd; local
104 fd=fileno(f);
108 i=read(fd,buf,BUFSIZE);
H A Dsha1.c103 int fd; local
107 fd=fileno(f);
111 i=read(fd,buf,BUFSIZE);
/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/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;

Completed in 378 milliseconds

<<11121314151617181920>>