Home
last modified time | relevance | path

Searched refs:sb (Results 1 – 25 of 267) sorted by path

1234567891011

/illumos-gate/usr/src/boot/common/
H A Dgfx_fb.c573 uint8_t *source, *destination, *sb; in gfxfb_blt_video_to_buffer() local
627 sb = source + x * bpp; in gfxfb_blt_video_to_buffer()
630 c = *sb; in gfxfb_blt_video_to_buffer()
633 c = *(uint16_t *)sb; in gfxfb_blt_video_to_buffer()
636 c = sb[0] << 16 | sb[1] << 8 | sb[2]; in gfxfb_blt_video_to_buffer()
639 c = *(uint32_t *)sb; in gfxfb_blt_video_to_buffer()
H A Dls.c61 struct stat sb; in command_ls() local
93 if (stat(path, &sb) == 0 && !S_ISDIR(sb.st_mode)) { in command_ls()
96 typestr[sb.st_mode >> 12], in command_ls()
97 (int)sb.st_size, path); in command_ls()
118 sb.st_size = 0; in command_ls()
119 sb.st_mode = 0; in command_ls()
124 if (stat(buf, &sb)) { in command_ls()
125 sb.st_size = 0; in command_ls()
126 sb.st_mode = 0; in command_ls()
158 struct stat sb; in ls_getdir() local
[all …]
H A Dmodule.c1004 struct stat sb; in file_search() local
1017 if (stat(name, &sb) == 0) in file_search()
H A Dvdisk.c90 struct stat sb; in command_mapvd() local
106 if (stat(argv[1], &sb) < 0) { in command_mapvd()
121 if (sb.st_size < 1024 * 1024) { in command_mapvd()
145 vd->vdisk_size = sb.st_size; in command_mapvd()
/illumos-gate/usr/src/boot/efi/loader/arch/amd64/
H A Dldscript.amd6454 *(.sbss .sbss.* .gnu.linkonce.sb.*)
/illumos-gate/usr/src/boot/efi/loader/arch/arm64/
H A Dldscript.arm6432 *(.sbss .sbss.* .gnu.linkonce.sb.*)
68 *(.rela.sbss .rela.sbss.* .rela.gnu.linkonce.sb.*)
/illumos-gate/usr/src/boot/efi/loader/arch/i386/
H A Dldscript.i38649 *(.sbss .sbss.* .gnu.linkonce.sb.*)
61 *(.rel.sbss .rel.sbss.* .rel.gnu.linkonce.sb.*)
/illumos-gate/usr/src/boot/i386/libi386/
H A Dlinux.c96 struct stat sb; in linux_loadkernel() local
114 if (fstat(fd, &sb) != 0) { in linux_loadkernel()
189 text = sb.st_size - data - 512; in linux_loadkernel()
/illumos-gate/usr/src/boot/libsa/
H A Dbzipfs.c164 struct stat sb; in bzf_open() local
189 if (fstat(rawfd, &sb) < 0) { in bzf_open()
194 if (!S_ISREG(sb.st_mode)) { in bzf_open()
363 bzf_stat(struct open_file *f, struct stat *sb) in bzf_stat() argument
369 if ((result = fstat(bzf->bzf_rawfd, sb)) == 0) in bzf_stat()
370 sb->st_size = -1; in bzf_stat()
H A Dcd9660.c70 static int cd9660_stat(struct open_file *f, struct stat *sb);
610 cd9660_stat(struct open_file *f, struct stat *sb) in cd9660_stat() argument
615 sb->st_mode = S_IRUSR | S_IRGRP | S_IROTH; in cd9660_stat()
617 sb->st_mode |= S_IFDIR; in cd9660_stat()
619 sb->st_mode |= S_IFREG; in cd9660_stat()
620 sb->st_uid = sb->st_gid = 0; in cd9660_stat()
621 sb->st_size = fp->f_size; in cd9660_stat()
H A Ddosfs.c392 dos_stat(struct open_file *fd, struct stat *sb) in dos_stat() argument
397 sb->st_mode = f->de.attr & FA_DIR ? S_IFDIR | 0555 : S_IFREG | 0444; in dos_stat()
398 sb->st_nlink = 1; in dos_stat()
399 sb->st_uid = 0; in dos_stat()
400 sb->st_gid = 0; in dos_stat()
401 if ((sb->st_size = fsize(f->fs, &f->de)) == -1) in dos_stat()
H A Dext2fs.c102 static int ext2fs_stat(struct open_file *f, struct stat *sb);
870 ext2fs_stat(struct open_file *f, struct stat *sb) in ext2fs_stat() argument
875 sb->st_mode = fp->f_di.di_mode; in ext2fs_stat()
876 sb->st_uid = fp->f_di.di_uid; in ext2fs_stat()
877 sb->st_gid = fp->f_di.di_gid; in ext2fs_stat()
878 sb->st_size = fp->f_di.di_size; in ext2fs_stat()
H A Dfstat.c39 fstat(int fd, struct stat *sb) in fstat() argument
55 errno = (f->f_ops->fo_stat)(f, sb); in fstat()
H A Dgzipfs.c51 static int zf_stat(struct open_file *f, struct stat *sb);
171 struct stat sb; in zf_open() local
196 if (fstat(rawfd, &sb) < 0) { in zf_open()
201 if (!S_ISREG(sb.st_mode)) { in zf_open()
333 zf_stat(struct open_file *f, struct stat *sb) in zf_stat() argument
341 if ((result = fstat(zf->zf_rawfd, sb)) == 0) { in zf_stat()
342 if (sb->st_size == -1) in zf_stat()
345 pos2 = lseek(zf->zf_rawfd, sb->st_size - 4, SEEK_SET); in zf_stat()
348 sb->st_size = (off_t)size; in zf_stat()
350 sb->st_size = -1; in zf_stat()
[all …]
H A Dnfs.c129 static int nfs_stat(struct open_file *f, struct stat *sb);
736 nfs_stat(struct open_file *f, struct stat *sb) in nfs_stat() argument
745 sb->st_mode = mode; in nfs_stat()
746 sb->st_nlink = ntohl(fp->fa.fa_nlink); in nfs_stat()
747 sb->st_uid = ntohl(fp->fa.fa_uid); in nfs_stat()
748 sb->st_gid = ntohl(fp->fa.fa_gid); in nfs_stat()
749 sb->st_size = ntohl(fp->fa.fa_size.val[1]); in nfs_stat()
H A Dnullfs.c105 null_stat(struct open_file *f __unused, struct stat *sb __unused) in null_stat()
H A Dpkgfs.c381 pkg_stat(struct open_file *f, struct stat *sb) in pkg_stat() argument
388 memset(sb, 0, sizeof(*sb)); in pkg_stat()
389 sb->st_mode = get_mode(tf); in pkg_stat()
390 sb->st_size = tf->tf_size; in pkg_stat()
391 sb->st_blocks = (tf->tf_size + 511) / 512; in pkg_stat()
H A Dsplitfs.c52 static int splitfs_stat(struct open_file *f, struct stat *sb);
109 struct stat sb; in splitfs_open() local
129 if (fstat(conffd, &sb) < 0) { in splitfs_open()
134 if (!S_ISREG(sb.st_mode)) { in splitfs_open()
304 splitfs_stat(struct open_file *f, struct stat *sb) in splitfs_stat() argument
310 if ((result = fstat(sf->curfd, sb)) == 0) in splitfs_stat()
311 sb->st_size = -1; in splitfs_stat()
H A Dstand.h114 int (*fo_stat)(struct open_file *f, struct stat *sb);
H A Dstat.c39 stat(const char *str, struct stat *sb) in stat() argument
46 rv = fstat(fd, sb); in stat()
H A Dtftp.c595 tftp_stat(struct open_file *f, struct stat *sb) in tftp_stat() argument
600 sb->st_mode = 0444 | S_IFREG; in tftp_stat()
601 sb->st_nlink = 1; in tftp_stat()
602 sb->st_uid = 0; in tftp_stat()
603 sb->st_gid = 0; in tftp_stat()
604 sb->st_size = tftpfile->tftp_tsize; in tftp_stat()
H A Dufs.c793 ufs_stat(struct open_file *f, struct stat *sb) in ufs_stat() argument
798 sb->st_mode = DIP(fp, di_mode); in ufs_stat()
799 sb->st_uid = DIP(fp, di_uid); in ufs_stat()
800 sb->st_gid = DIP(fp, di_gid); in ufs_stat()
801 sb->st_size = DIP(fp, di_size); in ufs_stat()
/illumos-gate/usr/src/boot/libsa/zfs/
H A Dzfs.c142 struct stat sb; in zfs_read() local
146 rc = zfs_stat(f, &sb); in zfs_read()
150 if (fp->f_seekp + n > sb.st_size) in zfs_read()
151 n = sb.st_size - fp->f_seekp; in zfs_read()
168 struct stat sb; in zfs_seek() local
179 error = zfs_stat(f, &sb); in zfs_seek()
184 fp->f_seekp = sb.st_size - offset; in zfs_seek()
194 zfs_stat(struct open_file *f, struct stat *sb) in zfs_stat() argument
208 struct stat sb; in zfs_readdir() local
212 rc = zfs_stat(f, &sb); in zfs_readdir()
[all …]
H A Dzfsimpl.c3533 sb->st_mode = zp->zp_mode; in zfs_dnode_stat()
3534 sb->st_uid = zp->zp_uid; in zfs_dnode_stat()
3535 sb->st_gid = zp->zp_gid; in zfs_dnode_stat()
3536 sb->st_size = zp->zp_size; in zfs_dnode_stat()
3652 struct stat sb; in zfs_lookup() local
3728 if ((rc = zfs_dnode_stat(spa, &dn, &sb)) != 0) in zfs_lookup()
3730 if (!S_ISDIR(sb.st_mode)) { in zfs_lookup()
3753 rc = zfs_dnode_stat(spa, &dn, &sb); in zfs_lookup()
3756 if (S_ISLNK(sb.st_mode)) { in zfs_lookup()
3767 if (sb.st_size + strlen(p) + 1 > sizeof (path)) { in zfs_lookup()
[all …]
/illumos-gate/usr/src/cmd/acct/lib/
H A Ddevtolin.c142 struct stat sb; in srch_dir() local
193 (stat(file_name, &sb) != -1) && in srch_dir()
194 ((sb.st_mode & S_IFMT) == S_IFDIR)) { in srch_dir()

1234567891011