/external/bison/lib/ |
H A D | fd-safer.c | 47 fd_safer (int fd) argument 49 if (STDIN_FILENO <= fd && fd <= STDERR_FILENO) 51 int f = dup_safer (fd); 53 close (fd); 55 fd = f; 58 return fd;
|
H A D | dup-safer.c | 37 dup_safer (int fd) argument 40 return fcntl (fd, F_DUPFD, STDERR_FILENO + 1); 44 return fd_safer (dup (fd));
|
H A D | pipe-safer.c | 32 pipe_safer (int fd[2]) argument 34 int fail = pipe (fd); 42 int f = fd_safer (fd[i]); 45 fd[i] = f;
|
H A D | fopen-safer.c | 43 int fd = fileno (fp); local 45 if (0 <= fd && fd <= STDERR_FILENO) 47 int f = dup_safer (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/chromium/base/test/ |
H A D | test_file_util_linux.cc | 16 int fd = open(file.value().c_str(), O_RDONLY); local 17 if (fd < 0) 19 if (fdatasync(fd) != 0) 21 if (posix_fadvise(fd, 0, 0, POSIX_FADV_DONTNEED) != 0) 23 close(fd);
|
/external/chromium/base/ |
H A D | file_descriptor_posix.h | 20 : fd(-1), 24 : fd(ifd), 27 int fd; member in struct:base::FileDescriptor
|
H A D | unix_domain_socket_posix.h | 18 bool SendMsg(int fd, const void* msg, size_t length, 22 ssize_t RecvMsg(int fd, void* msg, size_t length, std::vector<int>* fds); 25 // 2. This proces writes a request to |fd| with an SCM_RIGHTS control message 32 // fd: descriptor to send the request on 37 ssize_t SendRecvMsg(int fd, uint8_t* reply, unsigned reply_len, int* result_fd,
|
/external/e2fsprogs/lib/ext2fs/ |
H A D | getsectsize.c | 26 #include <linux/fd.h> 41 int fd; local 44 fd = open64(file, O_RDONLY); 46 fd = open(file, O_RDONLY); 48 if (fd < 0) 52 if (ioctl(fd, BLKSSZGET, sectsize) >= 0) { 53 close(fd); 58 close(fd);
|
/external/kernel-headers/original/asm-arm/ |
H A D | posix_types.h | 64 #define __FD_SET(fd, fdsetp) \ 65 (((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] |= (1<<((fd) & 31))) 68 #define __FD_CLR(fd, fdsetp) \ 69 (((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] &= ~(1<<((fd) & 31))) 72 #define __FD_ISSET(fd, fdsetp) \ 73 ((((fd_set *)(fdsetp))->fds_bits[(fd) >> 5] & (1<<((fd) & 31))) != 0)
|
/external/bluetooth/bluez/tools/ |
H A D | hciattach.h | 44 int read_hci_event(int fd, unsigned char* buf, int size); 45 int set_speed(int fd, struct termios *ti, int speed); 47 int texas_init(int fd, struct termios *ti); 48 int texas_post(int fd, struct termios *ti); 49 int texasalt_init(int fd, int speed, struct termios *ti); 50 int stlc2500_init(int fd, bdaddr_t *bdaddr);
|
/external/qemu/ |
H A D | iolooper.h | 14 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 ); 22 int iolooper_is_read( IoLooper* iol, int fd ); 23 int iolooper_is_write( IoLooper* iol, int fd );
|
H A D | iolooper-select.c | 45 iolooper_add_fd( IoLooper* iol, int fd ) 47 if (iol->max_fd_valid && fd > iol->max_fd) { 48 iol->max_fd = fd; 53 iolooper_del_fd( IoLooper* iol, int fd ) 55 if (iol->max_fd_valid && fd == iol->max_fd) 63 int fd; local 68 /* recompute max fd */ 69 for (fd = 0; fd < FD_SETSIZE; fd [all...] |
/external/bluetooth/bluez/src/ |
H A D | oui.c | 47 int fd; local 49 fd = open("oui.txt", O_RDONLY); 50 if (fd < 0) { 51 fd = open(OUIFILE, O_RDONLY); 52 if (fd < 0) { 53 fd = open("/usr/share/misc/oui.txt", O_RDONLY); 54 if (fd < 0) 59 if (fstat(fd, &st) < 0) { 60 close(fd); 66 close(fd); [all...] |
/external/chromium/net/third_party/nss/ssl/ |
H A D | prelib.c | 53 PEHeader *SSL_PreencryptedStreamToFile(PRFileDesc *fd, PEHeader *inHeader, argument 60 PEHeader *SSL_PreencryptedFileToStream(PRFileDesc *fd, PEHeader *header, argument
|
H A D | sslreveal.c | 50 SSL_RevealCert(PRFileDesc * fd) argument 55 sslsocket = ssl_FindSocket(fd); 69 SSL_RevealPinArg(PRFileDesc * fd) argument 74 sslsocket = ssl_FindSocket(fd); 88 SSL_RevealURL(PRFileDesc * fd) argument 93 sslsocket = ssl_FindSocket(fd);
|
/external/e2fsprogs/lib/e2p/ |
H A D | setversion.c | 24 int setversion (int fd, unsigned long version) argument 30 return ioctl (fd, EXT2_IOC_SETVERSION, &ver);
|
/external/qemu/android/utils/ |
H A D | tempfile.h | 47 ** Call 'atexit_close_fd_remove' before explicitely closing a 'fd' 49 extern void atexit_close_fd(int fd); 50 extern void atexit_close_fd_remove(int fd);
|
/external/dbus/dbus/ |
H A D | dbus-sysdeps-unix.h | 45 _dbus_close (int fd, 48 _dbus_read (int fd, 52 _dbus_write (int fd, 57 _dbus_write_two (int fd, 65 dbus_bool_t _dbus_open_unix_socket (int *fd,
|
/external/iproute2/ip/ |
H A D | tunnel.c | 68 int fd; local 72 fd = socket(preferred_family, SOCK_DGRAM, 0); 73 err = ioctl(fd, SIOCGIFINDEX, &ifr); 78 close(fd); 85 int fd; local 89 fd = socket(preferred_family, SOCK_DGRAM, 0); 90 err = ioctl(fd, SIOCGIFHWADDR, &ifr); 95 close(fd); 103 int fd; local 107 fd 120 int fd; local 136 int fd; local 155 int fd; local 174 int fd; local [all...] |
/external/expat/xmlwf/ |
H A D | readfilemap.c | 49 int fd; local 54 fd = open(name, O_RDONLY|O_BINARY); 55 if (fd < 0) { 59 if (fstat(fd, &sb) < 0) { 72 close(fd); 78 close(fd); 81 n = read(fd, p, nbytes); 85 close(fd); 91 close(fd); 96 close(fd); [all...] |
H A D | unixfilemap.c | 25 int fd; local 30 fd = open(name, O_RDONLY); 31 if (fd < 0) { 35 if (fstat(fd, &sb) < 0) { 37 close(fd); 41 close(fd); 51 close(fd); 55 MAP_FILE|MAP_PRIVATE, fd, (off_t)0); 58 close(fd); 63 close(fd); [all...] |
/external/dbus/bus/ |
H A D | dir-watch-dnotify.c | 43 int fd; local 53 fd = open (dir, O_RDONLY); 54 if (fd < 0) 60 if (fcntl (fd, F_NOTIFY, DN_DELETE|DN_RENAME|DN_MODIFY) == -1) 63 close (fd); 67 fds[num_fds++] = fd; 85 _dbus_verbose ("Error closing fd %d for config directory watch\n", fds[i]);
|
/external/kernel-headers/original/linux/ |
H A D | file.h | 2 * Wrapper functions for accessing the file_struct fd array. 16 * The default fd array needs to be at least BITS_PER_LONG, 37 struct file ** fd; /* current fd array */ member in struct:fdtable 76 extern struct file * FASTCALL(fget(unsigned int fd)); 77 extern struct file * FASTCALL(fget_light(unsigned int fd, int *fput_needed)); 78 extern void FASTCALL(set_close_on_exec(unsigned int fd, int flag)); 81 extern void FASTCALL(put_unused_fd(unsigned int fd)); 94 static inline struct file * fcheck_files(struct files_struct *files, unsigned int fd) argument 99 if (fd < fd [all...] |
/external/chromium/android/ |
H A D | execinfo.h | 8 void backtrace_symbols_fd (void *const *array, int size, int fd) {} argument
|