/system/core/sdcard/ |
H A D | sdcard.c | 91 int fd; member in struct:handle 122 int fd; member in struct:fuse 423 static void fuse_init(struct fuse *fuse, int fd, const char *source_path) argument 427 fuse->fd = fd; 443 write(fuse->fd, &hdr, sizeof(hdr)); 461 res = writev(fuse->fd, vec, 2); 823 h->fd = open(path, req->flags); 824 if (h->fd < 0) { 849 h, h->fd, siz 1250 int fd; local [all...] |
/system/core/fastboot/ |
H A D | engine.c | 232 static void *load_buffer(int fd, off_t size) argument 247 lseek(fd, 0, SEEK_SET); 249 ssize_t actually_read = read(fd, (char*)buffer+count, size-count); 266 buffer = mmap(NULL, size, PROT_READ, MAP_PRIVATE, fd, 0); 287 int fd; local 300 fd = open(filename, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, 0644); 303 fd = fileno(tmpfile()); 308 make_ext4fs_internal(fd, NULL, NULL, NULL, 0, 1, 0, 0, 0, NULL); 310 fstat(fd, &st); 312 image->buffer = load_buffer(fd, s 324 int fd; local [all...] |
/system/core/sh/ |
H A D | nodes.c | 274 new->nfile.fd = n->nfile.fd; 281 new->ndup.fd = n->ndup.fd; 287 new->nhere.fd = n->nhere.fd;
|
H A D | histedit.c | 375 int fd; local 378 if ((fd = mkstemp(editfile)) < 0) 380 if ((efp = fdopen(fd, "w")) == NULL) { 381 close(fd);
|
/system/core/libpixelflinger/codeflinger/ |
H A D | mips_opcode.h | 74 unsigned fd: 5; member in struct:__anon425::__anon429 110 unsigned fd: 5; member in struct:__anon425::__anon433
|
/system/core/debuggerd/ |
H A D | tombstone.c | 644 static char* find_and_open_tombstone(int* fd) argument 674 *fd = open(path, O_CREAT | O_EXCL | O_WRONLY, 0600); 675 if (*fd < 0) 678 fchown(*fd, AID_SYSTEM, AID_SYSTEM); 684 *fd = open(path, O_CREAT | O_TRUNC | O_WRONLY, 0600); 685 if (*fd < 0) { 689 fchown(*fd, AID_SYSTEM, AID_SYSTEM); 706 int fd; local 707 char* path = find_and_open_tombstone(&fd); 714 log.tfd = fd; [all...] |
H A D | backtrace.c | 115 void dump_backtrace(int fd, pid_t pid, pid_t tid, bool* detach_failed, argument 118 log.tfd = fd;
|
/system/core/toolbox/ |
H A D | newfs_msdos.c | 272 int ch, fd, fd1; local 376 fd = open(fname, O_RDWR | O_CREAT | O_TRUNC, 0644); 377 if (fd == -1) 379 if (ftruncate(fd, opt_create)) 381 } else if ((fd = open(fname, opt_N ? O_RDONLY : O_RDWR)) == -1) 383 if (fstat(fd, &sb)) 394 if (opt_ofs && opt_ofs != lseek(fd, opt_ofs, SEEK_SET)) 416 getdiskinfo(fd, fname, dtype, oflag, &bpb); 721 if ((n = write(fd, img, bpb.bps)) == -1) 785 getdiskinfo(int fd, cons argument 828 getdiskinfo(int fd, const char *fname, const char *dtype, __unused int oflag, struct bpb *bpb) argument [all...] |
H A D | dd.h | 55 int fd; /* file descriptor */ member in struct:__anon476
|
H A D | schedtop.c | 81 int fd; local 83 fd = open(line, O_RDONLY); 84 if(fd == 0) 86 len = read(fd, line, line_size - 1); 87 close(fd);
|
/system/core/adb/ |
H A D | file_sync_service.h | 79 void file_sync_service(int fd, void *cookie);
|
H A D | usb_linux.c | 139 int fd ; local 173 if((fd = unix_open(devname, O_RDONLY)) < 0) { 177 desclength = adb_read(fd, devdesc, sizeof(devdesc)); 183 adb_close(fd); 191 adb_close(fd); 204 adb_close(fd); 273 if (!fstat(fd, &st) && S_ISCHR(st.st_mode)) { 300 adb_close(fd); 483 D("[ usb read %d fd = %d], fname=%s\n", xfer, h->desc, h->fname); 510 D("[ kicking %p (fd [all...] |
H A D | jdwp_service.c | 317 int fd = proc->out_fds[0]; local 340 ((int*)CMSG_DATA(cmsg))[0] = fd; 360 adb_close(fd); 371 fd, proc->pid);
|
/system/core/include/cutils/ |
H A D | logprint.h | 147 int fd,
|
/system/core/libsparse/ |
H A D | backed_block.h | 38 int backed_block_add_fd(struct backed_block_list *bbl, int fd,
|
H A D | sparse.c | 75 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/sh/bltin/ |
H A D | bltin.h | 62 #define fileno(f) ((f)->fd)
|
/system/extras/procrank/ |
H A D | procrank.c | 52 int fd = open("/proc/meminfo", O_RDONLY); local 54 if (fd < 0) { 59 const int len = read(fd, buffer, sizeof(buffer)-1); 60 close(fd);
|
/system/vold/ |
H A D | Ext4.cpp | 71 int fd; local
|
/system/core/cpio/ |
H A D | mkbootfs.c | 237 int fd; local 239 fd = open(in, O_RDONLY); 240 if(fd < 0) die("cannot open '%s' for read", in); 245 if(read(fd, tmp, s.st_size) != s.st_size) { 252 close(fd);
|
/system/core/libcutils/ |
H A D | tzstrftime.c | 731 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);
|
/system/media/camera/include/system/ |
H A D | camera_metadata.h | 452 int fd, 461 int fd,
|
/system/core/include/diskconfig/ |
H A D | diskconfig.h | 111 int wlist_commit(int fd, struct write_list *lst, int test);
|
/system/core/include/usbhost/ |
H A D | usbhost.h | 97 struct usb_device *usb_device_new(const char *dev_name, int fd);
|
/system/extras/atrace/ |
H A D | atrace.c | 110 int fd = open(filename, O_WRONLY); local 111 if (fd == -1) { 119 if (write(fd, str, len) != len) { 125 close(fd);
|