/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/extras/ext4_utils/ |
H A D | output_file.c | 49 int fd; member in struct:output_file 63 ret = lseek64(out->fd, off, SEEK_SET); 74 ret = write(out->fd, data, len); 88 close(out->fd); 372 out->fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0644); 373 if (out->fd < 0) { 379 out->fd = STDOUT_FILENO; 392 wipe_block_device(out->fd, info.len);
|
H A D | simg2img.c | 44 static int read_all(int fd, void *buf, size_t len) argument 51 ret = read(fd, ptr, len - total); 66 static int write_all(int fd, void *buf, size_t len) argument 73 ret = write(fd, ptr, len - total);
|
H A D | ext4_utils.h | 44 int fd, off64_t offset) 46 return __mmap2(addr, length, prot, flags, fd, offset >> 12); 43 mmap64(void *addr, size_t length, int prot, int flags, int fd, off64_t offset) argument
|
/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); 720 if ((n = write(fd, img, bpb.bps)) == -1) 784 getdiskinfo(int fd, cons argument 827 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:__anon440
|
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);
|
/system/core/include/cutils/ |
H A D | logprint.h | 147 int fd,
|
/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/media/wilhelm/src/android/ |
H A D | android_defs.h | 188 kDataLocatorFd = 'fd', 192 int fd; member in struct:android::FdInfo 195 bool mCloseAfterUse; // whether to close fd after last reference to fd
|
H A D | android_AudioSfDecoder.cpp | 202 // As FileSource unconditionally takes ownership of the fd and closes it, then 204 int fd = mDataLocator.fdi.fd; local 208 fd = ::dup(fd); 210 dataSource = new FileSource(fd, mDataLocator.fdi.offset, mDataLocator.fdi.length);
|
/system/netd/ |
H A D | logwrapper.c | 151 int fd = open("/dev/cpuctl/bg_non_interactive/tasks", O_WRONLY); local 152 if (fd >= 0) { 155 if (write(fd, text, strlen(text)) < 0) { 159 close(fd);
|
H A D | SoftapController.cpp | 270 int ret = 0, i = 0, fd; local 312 fd = open(HOSTAPD_CONF_FILE, O_CREAT | O_TRUNC | O_WRONLY, 0660); 313 if (fd < 0) { 319 if (write(fd, fbuf, strlen(fbuf)) < 0) { 323 close(fd);
|
/system/media/wilhelm/tests/sandbox/ |
H A D | xaplay.c | 246 int fd = -1; local 248 fd = open(uri, O_RDONLY); 249 if (fd < 0) { 255 ok = fstat(fd, &statbuf); 265 ptr = mmap(NULL, statbuf.st_size, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, (off_t) 0); 532 if (fd >= 0) { 533 (void) close(fd);
|
/system/media/wilhelm/tests/examples/ |
H A D | slesTestEqFdPath.cpp | 124 int fd = open(path, O_RDONLY); local 125 if (fd == -1) { 128 locatorFd.fd = (SLint32) fd; 272 close(fd);
|
H A D | slesTestEqOutputPath.cpp | 131 int fd = open(path, O_RDONLY); local 132 if (fd == -1) { 135 locatorFd.fd = (SLint32) fd; 276 close(fd);
|
H A D | slesTestSendToPresetReverb.cpp | 178 int fd = open(path, O_RDONLY); local 179 if (fd == -1) { 183 locatorFd.fd = (SLint32) fd; 188 fprintf(stderr, "option --fd is not supported\n"); 322 close(locatorFd.fd); 352 } else if (!strcmp(arg, "--fd")) { 362 fprintf(stdout, "Usage: \t%s [--always-on] [--fd] [--loop] path preset directLevel "
|
H A D | slesTestDecodeAac.cpp | 354 void TestDecToBuffQueue( SLObjectItf sl, const char *path, int fd) argument 359 ok = fstat(fd, &statbuf); 372 ptr = mmap(NULL, statbuf.st_size, PROT_READ, MAP_FILE | MAP_PRIVATE, fd, (off_t) 0); 764 int fd; local 765 fd = open(argv[1], O_RDONLY); 766 if (fd < 0) { 782 TestDecToBuffQueue(sl, argv[1], fd); 788 (void) close(fd);
|
/system/core/libcutils/ |
H A D | tzstrftime.c | 730 int fd; local 771 fd = open(filename, O_RDONLY); 772 if (fd < 0) { 779 fd = open(filename, O_RDONLY); 780 if (fd < 0) 783 if (fstat(fd, &st) != 0) 795 if (read(fd, p, (size_t) st.st_size) != st.st_size) 797 if (close(fd) != 0) 835 (void) close(fd);
|
/system/core/fastboot/ |
H A D | fastboot.c | 122 int fd; local 125 fd = open(fn, O_RDONLY); 126 if(fd < 0) return 0; 128 sz = lseek(fd, 0, SEEK_END); 131 if(lseek(fd, 0, SEEK_SET) != 0) goto oops; 136 if(read(fd, data, sz) != sz) goto oops; 137 close(fd); 143 close(fd);
|
/system/core/include/diskconfig/ |
H A D | diskconfig.h | 110 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);
|