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

1234567891011>>

/external/libdrm/tests/
H A Dopenclose.c32 int fd; local
34 fd = drm_open_any();
35 close(fd);
H A Dname_from_fd.c43 int fd; local
47 fd = open("/dev/dri/card0", O_RDWR);
48 if (fd < 0)
51 v = drmGetDeviceNameFromFd(fd);
52 close(fd);
/external/clang/test/Analysis/
H A Dunix-api.c15 int fd; local
16 fd = open(path, O_RDONLY); // no-warning
17 if (fd > -1)
18 close(fd);
22 int fd; local
24 fd = open(path, O_RDONLY, mode, NULL); // expected-warning{{Call to 'open' with more than three arguments}}
25 if (fd > -1)
26 close(fd);
30 int fd; local
31 fd
37 int fd; local
44 int fd; local
54 int fd; local
64 int fd; local
71 int fd; local
[all...]
/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/avahi/avahi-core/
H A Dfdutil.h27 int avahi_set_cloexec(int fd);
28 int avahi_set_nonblock(int fd);
29 int avahi_wait_for_write(int fd);
/external/mesa3d/src/gbm/main/
H A Dbackend.h34 _gbm_create_device(int fd);
/external/tlsdate/src/
H A Drtc.h6 int fd; member in struct:rtc_handle
/external/toybox/toys/other/
H A Dfreeramdisk.c22 int fd; local
24 fd = xopen(toys.optargs[0], O_RDWR);
25 xioctl(fd, BLKFLSBUF, toys.optargs[0]);
26 if (CFG_TOYBOX_FREE) xclose(fd);
H A Dchvt.c24 int vtnum, fd = fd; local
29 if (-1 != (fd = open(*cc, O_RDWR))) break;
32 if (!*cc || fd < 0 || ioctl(fd, 0x5606, vtnum) || ioctl(fd, 0x5607, vtnum))
H A Dfallocate.c28 int fd = xcreate(*toys.optargs, O_RDWR | O_CREAT, 0644); local
29 if (posix_fallocate(fd, 0, TT.size)) error_exit("Not enough space");
30 if (CFG_TOYBOX_FREE) close(fd);
/external/libchrome/base/
H A Dfile_descriptor_posix.h19 // |fd| when going out of scope. Instead, a consumer of a base::FileDescriptor
20 // must invoke close() on |fd| if |auto_close| is true.
22 // In the case of IPC, the the IPC subsystem knows to close() |fd| after sending
24 // other end, the receiver must make sure to close() |fd| after it has finished
29 FileDescriptor() : fd(-1), auto_close(false) {}
31 FileDescriptor(int ifd, bool iauto_close) : fd(ifd), auto_close(iauto_close) {
34 FileDescriptor(File file) : fd(file.TakePlatformFile()), auto_close(true) {}
35 explicit FileDescriptor(ScopedFD fd) : fd(fd argument
50 int fd; member in struct:base::FileDescriptor
[all...]
/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/dbus/dbus/
H A Ddbus-pipe.c32 * @param fd the file descriptor to init from
36 int fd)
38 pipe->fd = fd;
62 return pipe->fd >= 0;
74 return pipe->fd == 1 || pipe->fd == 2;
84 pipe->fd = -1;
35 _dbus_pipe_init(DBusPipe *pipe, int fd) argument
/external/skia/platform_tools/android/third_party/ashmem/cutils/
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/valgrind/none/tests/
H A Dcloseall.c9 int fd; local
13 for ( fd = 3; fd < lim.rlim_cur; fd++ )
14 close( fd );
/external/libpcap/
H A Dpcap-netfilter-linux-android.c20 android_nflog_send_config_cmd(int fd, u_int16_t group_id, u_int8_t cmd, u_int8_t family) argument
23 handle.fd = fd;
/external/libchrome/base/files/
H A Dscoped_file.cc22 void ScopedFDCloseTraits::Free(int fd) { argument
30 PCHECK(0 == IGNORE_EINTR(close(fd)));

Completed in 1807 milliseconds

1234567891011>>