Lines Matching defs:tbuf
109 disk_foo(struct somestat *tbuf)
117 if (S_ISCHR(tbuf.st_mode) &&
122 tbuf.st_mode &= ~S_IFMT;
123 tbuf.st_mode |= S_IFBLK;
127 tbuf.st_dev = minor(buf->st_dev) & 0xf;
128 tbuf.st_rdev = buf->st_rdev & 0xff;
170 struct l_newstat tbuf;
172 bzero(&tbuf, sizeof(tbuf));
173 tbuf.st_dev = minor(buf->st_dev) | (major(buf->st_dev) << 8);
174 tbuf.st_ino = buf->st_ino;
175 tbuf.st_mode = buf->st_mode;
176 tbuf.st_nlink = buf->st_nlink;
177 tbuf.st_uid = buf->st_uid;
178 tbuf.st_gid = buf->st_gid;
179 tbuf.st_rdev = buf->st_rdev;
180 tbuf.st_size = buf->st_size;
181 tbuf.st_atim.tv_sec = buf->st_atim.tv_sec;
182 tbuf.st_atim.tv_nsec = buf->st_atim.tv_nsec;
183 tbuf.st_mtim.tv_sec = buf->st_mtim.tv_sec;
184 tbuf.st_mtim.tv_nsec = buf->st_mtim.tv_nsec;
185 tbuf.st_ctim.tv_sec = buf->st_ctim.tv_sec;
186 tbuf.st_ctim.tv_nsec = buf->st_ctim.tv_nsec;
187 tbuf.st_blksize = buf->st_blksize;
188 tbuf.st_blocks = buf->st_blocks;
190 return (copyout(&tbuf, ubuf, sizeof(tbuf)));