Searched refs:fd (Results 101 - 125 of 218) sorted by last modified time

123456789

/system/core/libcutils/
H A Dsockets.c25 bool socket_peer_is_trusted(int fd) argument
30 int n = getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &cr, &len);
H A Dtzstrftime.c731 int fd; local
772 fd = open(filename, O_RDONLY);
773 if (fd < 0) {
780 fd = open(filename, O_RDONLY);
781 if (fd < 0)
784 if (fstat(fd, &st) != 0)
796 if (read(fd, p, (size_t) st.st_size) != st.st_size)
798 if (close(fd) != 0)
836 (void) close(fd);
H A Duio.c22 int readv( int fd, struct iovec* vecs, int count ) argument
31 int ret = read( fd, buf, len );
49 int writev( int fd, const struct iovec* vecs, int count ) argument
58 int ret = write( fd, buf, len );
H A Dzygote.c45 static int send_request(int fd, int sendStdio, int argc, const char **argv) argument
93 ret = sendmsg(fd, &msg, MSG_NOSIGNAL);
100 // Only send the fd's once
125 ret = sendmsg(fd, &msg, MSG_NOSIGNAL);
145 ret = recvmsg(fd, &msg, MSG_NOSIGNAL | MSG_WAITALL);
164 int fd; local
169 fd = socket_local_client(ZYGOTE_SOCKET,
172 if (fd < 0) {
181 pid = send_request(fd, 1, argc + 1, newargv);
190 err = read(fd,
218 int fd = -1; local
[all...]
/system/core/libdiskconfig/
H A Ddiskconfig.c239 sync_ptable(int fd) argument
246 if (fstat(fd, &stat)) {
251 if (S_ISBLK(stat.st_mode) && ((rv = ioctl(fd, BLKRRPART, NULL)) < 0)) {
273 int fd; local
283 if ((fd = open(dinfo->device, O_RDWR)) < 0) {
288 if (fstat(fd, &stat)) {
301 if (ioctl(fd, BLKSSZGET, &sect_sz) < 0) {
313 if (ioctl(fd, BLKGETSIZE64, &disk_size) < 0) {
379 return fd;
382 close(fd);
387 validate_and_config(struct disk_info *dinfo, int *fd, struct write_list **lst) argument
422 int fd; local
436 int fd; local
[all...]
H A Dwrite_lst.c70 wlist_commit(int fd, struct write_list *lst, int test) argument
73 if (lseek64(fd, lst->offset, SEEK_SET) != (loff_t)lst->offset) {
79 if (write(fd, lst->data, lst->len) != (int)lst->len) {
/system/core/libion/
H A Dion.c35 int fd = open("/dev/ion", O_RDWR); local
36 if (fd < 0)
38 return fd;
41 int ion_close(int fd) argument
43 return close(fd);
46 static int ion_ioctl(int fd, int req, void *arg) argument
48 int ret = ioctl(fd, req, arg);
57 int ion_alloc(int fd, size_t len, size_t align, unsigned int heap_mask, argument
68 ret = ion_ioctl(fd, ION_IOC_ALLOC, &data);
75 int ion_free(int fd, struc argument
83 ion_map(int fd, struct ion_handle *handle, size_t length, int prot, int flags, off_t offset, unsigned char **ptr, int *map_fd) argument
106 ion_share(int fd, struct ion_handle *handle, int *share_fd) argument
124 ion_alloc_fd(int fd, size_t len, size_t align, unsigned int heap_mask, unsigned int flags, int *handle_fd) argument
137 ion_import(int fd, int share_fd, struct ion_handle **handle) argument
150 ion_sync_fd(int fd, int handle_fd) argument
[all...]
H A Dion_test.c26 int _ion_alloc_test(int *fd, struct ion_handle **handle) argument
30 *fd = ion_open();
31 if (*fd < 0)
32 return *fd;
34 ret = ion_alloc(*fd, len, align, heap_mask, alloc_flags, handle);
43 int fd, ret; local
46 if(_ion_alloc_test(&fd, &handle))
49 ret = ion_free(fd, handle);
54 ion_close(fd);
60 int fd, map_f local
121 int fd, share_fd, ret; local
156 int fd, recv_fd; local
[all...]
/system/core/liblinenoise/
H A Dlinenoise.c116 static int enableRawMode(int fd) { argument
124 if (tcgetattr(fd,&orig_termios) == -1) goto fatal;
142 if (tcsetattr(fd,TCSADRAIN,&raw) < 0) goto fatal;
151 static void disableRawMode(int fd) { argument
153 if (rawmode && tcsetattr(fd,TCSADRAIN,&orig_termios) != -1)
187 static void refreshLine(int fd, const char *prompt, char *buf, size_t len, size_t pos, size_t cols) { argument
202 if (write(fd,seq,strlen(seq)) == -1) return;
204 if (write(fd,prompt,strlen(prompt)) == -1) return;
205 if (write(fd,buf,len) == -1) return;
208 if (write(fd,se
214 linenoisePrompt(int fd, char *buf, size_t buflen, const char *prompt) argument
365 int fd = STDIN_FILENO; local
[all...]
/system/core/liblog/
H A Devent_tag_map.c68 int fd = -1; local
74 fd = open(fileName, O_RDONLY);
75 if (fd < 0) {
81 end = lseek(fd, 0L, SEEK_END);
82 (void) lseek(fd, 0L, SEEK_SET);
89 fd, 0);
104 if (fd >= 0)
105 close(fd);
H A Dfake_log_device.c62 /* the fake fd that's seen by the user */
89 * to both protect the fd list and to prevent LogStates from being
117 * Allocate an fd and associate a new LogState with it.
118 * The fd is available via the fakeFd field of the return value.
135 * Translate an fd to a LogState.
137 static LogState *fdToLogState(int fd) argument
139 if (fd >= FAKE_FD_BASE && fd < FAKE_FD_BASE + MAX_OPEN_LOGS) {
140 return openLogTable[fd - FAKE_FD_BASE];
146 * Unregister the fake fd an
148 deleteFakeFd(int fd) argument
322 fake_writev(int fd, const struct iovec *iov, int iovcnt) argument
542 logWritev(int fd, const struct iovec* vector, int count) argument
605 logClose(int fd) argument
617 int fd = -1; local
675 fakeLogClose(int fd) argument
681 fakeLogWritev(int fd, const struct iovec* vector, int count) argument
[all...]
H A Dlogprint.c895 int fd,
910 ret = write(fd, outBuffer, totalLen);
893 android_log_printLogLine( AndroidLogFormat *p_format, int fd, const AndroidLogEntry *entry) argument
/system/core/libnetutils/
H A Ddhcpclient.c420 pfd.fd = s;
/system/core/libpixelflinger/codeflinger/
H A DCodeCache.cpp84 int fd = ashmem_create_region("CodeFlinger code cache", local
86 LOG_ALWAYS_FATAL_IF(fd < 0,
91 MAP_PRIVATE, fd, 0);
95 close(fd);
H A DGGLAssembler.cpp161 int fd = i==GGLFormat::ALPHA ? mBlendDstA : mBlendDst; local
177 info.blend = (fs != int(GGL_ONE)) || (fd > int(GGL_ZERO));
493 int fd = component==GGLFormat::ALPHA ? mBlendDstA : mBlendDst; local
499 const int blending = blending_codes(fs, fd);
502 const int need_blending = (fs != int(GGL_ONE)) || (fd > int(GGL_ZERO));
H A DGGLAssembler.h521 static int blending_codes(int fs, int fd);
H A Dblending.cpp73 int fd = component==GGLFormat::ALPHA ? mBlendDstA : mBlendDst; local
76 const int blending = blending_codes(fs, fd);
101 (fs==GGL_DST_COLOR && fd==GGL_ONE_MINUS_DST_COLOR) ||
102 (fs==GGL_SRC_COLOR && fd==GGL_ONE_MINUS_SRC_COLOR) ||
103 (fs==GGL_DST_ALPHA && fd==GGL_ONE_MINUS_DST_ALPHA) ||
104 (fs==GGL_SRC_ALPHA && fd==GGL_ONE_MINUS_SRC_ALPHA);
107 (fs==GGL_ONE_MINUS_DST_COLOR && fd==GGL_DST_COLOR) ||
108 (fs==GGL_ONE_MINUS_SRC_COLOR && fd==GGL_SRC_COLOR) ||
109 (fs==GGL_ONE_MINUS_DST_ALPHA && fd==GGL_DST_ALPHA) ||
110 (fs==GGL_ONE_MINUS_SRC_ALPHA && fd
[all...]
H A Dmips_disassem.c454 i.FRType.fd, i.FRType.fs, i.FRType.ft);
H A Dmips_opcode.h74 unsigned fd: 5; member in struct:__anon425::__anon429
110 unsigned fd: 5; member in struct:__anon425::__anon433
/system/core/libsparse/
H A Dbacked_block.c39 int fd; member in struct:backed_block::__anon460::__anon463
41 } fd; member in union:backed_block::__anon460
90 return bb->fd.fd;
99 return bb->fd.offset;
230 if (a->fd.fd != b->fd.fd ||
231 a->fd
343 backed_block_add_fd(struct backed_block_list *bbl, int fd, int64_t offset, unsigned int len, unsigned int block) argument
[all...]
H A Dbacked_block.h38 int backed_block_add_fd(struct backed_block_list *bbl, int fd,
H A Doutput_file.c52 int fd, off64_t offset)
54 return __mmap2(addr, length, prot, flags, fd, offset >> 12);
70 int (*open)(struct output_file *, int fd);
110 int fd; member in struct:output_file_normal
125 static int file_open(struct output_file *out, int fd) argument
129 outn->fd = fd;
138 ret = lseek64(outn->fd, cnt, SEEK_CUR);
151 ret = ftruncate64(outn->fd, len);
164 ret = write(outn->fd, dat
51 mmap64(void *addr, size_t length, int prot, int flags, int fd, off64_t offset) argument
191 gz_file_open(struct output_file *out, int fd) argument
275 callback_file_open(struct output_file *out, int fd) argument
326 read_all(int fd, void *buf, size_t len) argument
667 output_file_open_fd(int fd, unsigned int block_size, int64_t len, int gz, int sparse, int chunks, int crc) argument
703 write_fd_chunk(struct output_file *out, unsigned int len, int fd, int64_t offset) argument
[all...]
H A Doutput_file.h24 struct output_file *output_file_open_fd(int fd, unsigned int block_size, int64_t len,
35 int fd, int64_t offset);
39 int read_all(int fd, void *buf, size_t len);
H A Dsparse.c75 int fd, int64_t file_offset, unsigned int len, unsigned int block)
77 return backed_block_add_fd(s->backed_block_list, fd, file_offset,
151 int sparse_file_write(struct sparse_file *s, int fd, bool gz, bool sparse, argument
159 out = output_file_open_fd(fd, s->block_size, s->len, gz, sparse, chunks, crc);
74 sparse_file_add_fd(struct sparse_file *s, int fd, int64_t file_offset, unsigned int len, unsigned int block) argument
/system/core/libsparse/include/sparse/
H A Dsparse.h122 * Associates a chunk of an existing fd with a sparse file cookie.
131 * The fd must remain open until the sparse file is closed or the fd block is
137 int fd, int64_t file_offset, unsigned int len, unsigned int block);
143 * @fd - file descriptor to write to
157 int sparse_file_write(struct sparse_file *s, int fd, bool gz, bool sparse,
199 * @fd - file descriptor to read from
211 int sparse_file_read(struct sparse_file *s, int fd, bool sparse, bool crc);
226 struct sparse_file *sparse_file_import(int fd, bool verbose, bool crc);
231 * @fd
[all...]

Completed in 137 milliseconds

123456789