/external/libdrm/tests/ |
H A D | openclose.c | 32 int fd; local 34 fd = drm_open_any(); 35 close(fd);
|
H A D | name_from_fd.c | 43 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 D | unix-api.c | 15 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 D | fd-safer-flag.c | 40 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 D | fd-safer.c | 37 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 D | pipe-safer.c | 31 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 D | pipe2-safer.c | 31 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 D | pipe2.c | 40 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 D | close.c | 24 #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 D | cloexec.h | 38 int dup_cloexec (int fd);
|
/external/avahi/avahi-core/ |
H A D | fdutil.h | 27 int avahi_set_cloexec(int fd); 28 int avahi_set_nonblock(int fd); 29 int avahi_wait_for_write(int fd);
|
/external/lldb/tools/debugserver/source/ |
H A D | libdebugserver.h | 13 int debug_server_main(int fd);
|
/external/mesa3d/src/gbm/main/ |
H A D | backend.h | 34 _gbm_create_device(int fd);
|
/external/tlsdate/src/ |
H A D | rtc.h | 6 int fd; member in struct:rtc_handle
|
/external/toybox/toys/other/ |
H A D | freeramdisk.c | 22 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 D | chvt.c | 24 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 D | fallocate.c | 28 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 D | file_descriptor_posix.h | 19 // |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 D | common.h | 6 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 D | random_exercise.c | 50 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 D | dbus-pipe.c | 32 * @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/openssh/openbsd-compat/ |
H A D | daemon.c | 54 int fd; local 71 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) { 72 (void)dup2(fd, STDIN_FILENO); 73 (void)dup2(fd, STDOUT_FILENO); 74 (void)dup2(fd, STDERR_FILENO); 75 if (fd > 2) 76 (void)close (fd);
|
/external/skia/platform_tools/android/third_party/ashmem/cutils/ |
H A D | ashmem-dev.c | 44 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 D | closeall.c | 9 int fd; local 13 for ( fd = 3; fd < lim.rlim_cur; fd++ ) 14 close( fd );
|
/external/libpcap/ |
H A D | pcap-netfilter-linux-android.c | 20 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;
|