Searched defs:fd (Results 176 - 185 of 185) sorted by relevance

12345678

/system/core/sdcard/
H A Dsdcard.c91 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/sh/
H A Dexpand.c118 expandhere(union node *arg, int fd) argument
120 herefd = fd;
122 xwrite(fd, stackblock(), expdest - stackblock());
442 if (in.fd < 0)
444 while ((i = read(in.fd, buf, sizeof buf)) < 0 && errno == EINTR);
464 if (in.fd >= 0)
465 close(in.fd);
H A Dparser.c630 synerror("Bad fd number");
1192 * specifying the fd to be redirected. The variable "c" contains the
1197 char fd = *out; local
1202 np->nfile.fd = 1;
1215 np->nfile.fd = 0;
1220 np->nfile.fd = 0;
1247 if (fd != '\0')
1248 np->nfile.fd = digit_val(fd);
H A Dinit.c914 int fd; /* file descriptor (or -1 if string) */ member in struct:parsefile
/system/core/toolbox/
H A Dnewfs_msdos.c272 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...]
/system/vold/
H A DVolumeManager.cpp564 int fd = open(ftsent->fts_accpath, O_NOFOLLOW); local
565 if (fd < 0) {
571 result |= fchown(fd, AID_SYSTEM, privateFile? gid : AID_SYSTEM);
574 result |= fchmod(fd, 0755);
576 result |= fchmod(fd, privateFile ? 0640 : 0644);
578 close(fd);
826 int dirfd, fd; local
901 int fd; local
1038 int fd; local
1041 if ((fd
1145 int fd = open(device, O_RDONLY); local
1223 int fd; local
1278 int fd; local
[all...]
H A Dcryptfs.c89 int fd, block_size; local
93 if ((fd = open(dev, O_RDONLY)) < 0) {
98 if (lseek64(fd, 1024, SEEK_SET) < 0) {
103 if (read(fd, &sb, sizeof(sb)) != sizeof(sb)) {
108 close(fd);
118 static unsigned int get_blkdev_size(int fd) argument
122 if ( (ioctl(fd, BLKGETSIZE, &nr_sec)) == -1) {
148 int fd; local
160 if ( (fd = open(fname, O_RDWR)) < 0) {
165 if ( (nr_sec = get_blkdev_size(fd))
247 int fd; local
389 int fd; local
466 int fd; local
572 int fd; local
888 int nr_sec, fd; local
1030 unix_read(int fd, void* buff, int len) argument
1037 unix_write(int fd, const void* buff, int len) argument
1141 int rc=-1, fd, i, ret; local
1402 int fd = open("/cache/recovery/command", O_RDWR|O_CREAT|O_TRUNC, 0600); local
[all...]
/system/core/libpixelflinger/codeflinger/
H A Dmips_opcode.h74 unsigned fd: 5; member in struct:__anon425::__anon429
110 unsigned fd: 5; member in struct:__anon425::__anon433
/system/security/keystore/
H A Dkeystore.cpp201 static size_t readFully(int fd, uint8_t* data, size_t size) { argument
204 ssize_t n = TEMP_FAILURE_RETRY(read(fd, data, size));
214 static size_t writeFully(int fd, uint8_t* data, size_t size) { argument
217 ssize_t n = TEMP_FAILURE_RETRY(write(fd, data, size));
1284 int fd = open(filename, O_NOFOLLOW, O_RDONLY); local
1285 if (fd < 0) {
1290 int ret = fstat(fd, &s);
1291 close(fd);
/system/core/adb/
H A Dsysdeps_win32.c124 _fh_from_int( int fd )
128 fd -= WIN32_FH_BASE;
130 if (fd < 0 || fd >= _win32_fh_count) {
131 D( "_fh_from_int: invalid fd %d\n", fd + WIN32_FH_BASE );
136 f = &_win32_fhs[fd];
139 D( "_fh_from_int: invalid fd %d\n", fd + WIN32_FH_BASE );
357 D( "adb_open: '%s' => fd
402 adb_read(int fd, void* buf, int len) argument
414 adb_write(int fd, const void* buf, int len) argument
426 adb_lseek(int fd, int pos, int where) argument
438 adb_shutdown(int fd) argument
452 adb_close(int fd) argument
781 disable_tcp_nagle(int fd) argument
1339 int fd = _fh_to_int(f); local
1377 event_looper_hook( EventLooper looper, int fd, int events ) argument
1409 event_looper_unhook( EventLooper looper, int fd, int events ) argument
1748 int fd = fde->fd - WIN32_FH_BASE; local
1778 int fd = fde->fd - WIN32_FH_BASE; local
1829 fdevent_create(int fd, fd_func func, void *arg) argument
1847 fdevent_install(fdevent *fde, int fd, fd_func func, void *arg) argument
[all...]

Completed in 123 milliseconds

12345678