Home
last modified time | relevance | path

Searched refs:bsdbuf (Results 1 – 2 of 2) sorted by relevance

/titanic_44/usr/src/lib/libbc/libc/sys/common/
H A D_stat.c170 cpstatbuf(struct stat *bsdbuf, struct n_stat *nbuf) in cpstatbuf() argument
172 bsdbuf->st_dev = (dev_t) cmpdev(nbuf->st_dev); in cpstatbuf()
173 bsdbuf->st_ino = nbuf->st_ino; in cpstatbuf()
174 bsdbuf->st_mode = (unsigned short) nbuf->st_mode; in cpstatbuf()
175 bsdbuf->st_nlink = (short) nbuf->st_nlink; in cpstatbuf()
178 bsdbuf->st_uid = 60001; /* UID_NOBODY */ in cpstatbuf()
180 bsdbuf->st_uid = (uid_t) nbuf->st_uid; in cpstatbuf()
183 bsdbuf->st_gid = 60001; /* GID_NOBODY */ in cpstatbuf()
185 bsdbuf->st_gid = (gid_t) nbuf->st_gid; in cpstatbuf()
187 bsdbuf->st_rdev = (dev_t) cmpdev(nbuf->st_rdev); in cpstatbuf()
[all …]
H A D_statfs.c82 cpstatvfs(struct statfs *bsdbuf, struct statvfs *vbuf) in cpstatvfs() argument
84 bsdbuf->f_type = (long) 0; /* type of info, zero for now */ in cpstatvfs()
85 bsdbuf->f_bsize = (vbuf->f_frsize != 0) ? in cpstatvfs()
87 bsdbuf->f_blocks = (long) vbuf->f_blocks; in cpstatvfs()
88 bsdbuf->f_bfree = (long) vbuf->f_bfree; in cpstatvfs()
89 bsdbuf->f_bavail = (long) vbuf->f_bavail; in cpstatvfs()
90 bsdbuf->f_files = (long) vbuf->f_files; in cpstatvfs()
91 bsdbuf->f_ffree = (long) vbuf->f_ffree; in cpstatvfs()
92 bsdbuf->f_fsid.val[0] = vbuf->f_fsid; in cpstatvfs()
93 bsdbuf->f_fsid.val[1] = 0; in cpstatvfs()