Searched defs:io (Results 1 - 3 of 3) sorted by relevance

/system/vold/
H A DDevmapper.cpp65 struct dm_ioctl *io = (struct dm_ioctl *) buffer; local
66 ioctlInit(io, (1024 * 64), NULL, 0);
68 if (ioctl(fd, DM_LIST_DEVICES, io)) {
76 struct dm_name_list *n = (struct dm_name_list *) (((char *) buffer) + io->data_start);
117 void Devmapper::ioctlInit(struct dm_ioctl *io, size_t dataSize, argument
119 memset(io, 0, dataSize);
120 io->data_size = dataSize;
121 io->data_start = sizeof(struct dm_ioctl);
122 io->version[0] = 4;
123 io
147 struct dm_ioctl *io = (struct dm_ioctl *) buffer; local
181 struct dm_ioctl *io = (struct dm_ioctl *) buffer; local
278 struct dm_ioctl *io = (struct dm_ioctl *) buffer; local
[all...]
H A Dcryptfs.c73 static void ioctl_init(struct dm_ioctl *io, size_t dataSize, const char *name, unsigned flags) argument
75 memset(io, 0, dataSize);
76 io->data_size = dataSize;
77 io->data_start = sizeof(struct dm_ioctl);
78 io->version[0] = 4;
79 io->version[1] = 0;
80 io->version[2] = 0;
81 io->flags = flags;
83 strncpy(io->name, name, sizeof(io
386 struct dm_ioctl *io; local
468 struct dm_ioctl *io; local
[all...]
/system/core/toolbox/
H A Ddd.c248 getfdtype(IO *io) argument
253 if (fstat(io->fd, &sb)) {
255 io->name, strerror(errno));
260 io->flags |= /*ioctl(io->fd, MTIOCGET, &mt) ? ISCHR : ISTAPE; */ ISCHR;
261 else if (lseek(io->fd, (off_t)0, SEEK_CUR) == -1 && errno == ESPIPE)
262 io->flags |= ISPIPE; /* XXX fixed in 4.4BSD */

Completed in 82 milliseconds