Searched defs:sb (Results 1 - 25 of 200) sorted by relevance

12345678

/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dopendir.c44 struct stat sb; local
51 if (fstat(fd, &sb) == -1) {
55 if ((sb.st_mode & S_IFMT) != S_IFDIR) {
61 ((dirp->dd_buf = malloc(sb.st_blksize)) == NULL)) {
70 dirp->dd_bsize = sb.st_blksize;
H A Dftw.c116 struct stat sb; local
121 if(stat(path, &sb) < 0) {
123 return((*fn)(path, &sb, FTW_NS));
126 if (lstat(path, &sb) < 0) {
129 else if ((sb.st_mode & S_IFMT) == S_IFLNK) {
131 return((*fn)(path, &sb, FTW_NS));
145 if((sb.st_mode & S_IFMT) != S_IFDIR)
146 return((*fn)(path, &sb, FTW_F));
162 return(errno == EACCES? (*fn)(path, &sb, FTW_DNR): -1);
165 rc = (*fn)(path, &sb, FTW_
[all...]
/illumos-gate/usr/src/cmd/acct/lib/
H A Dlintodev.c43 struct stat sb; local
45 if (stat(devtty, &sb) != -1 && (sb.st_mode&S_IFMT) == S_IFCHR)
46 return((dev_t)sb.st_rdev);
/illumos-gate/usr/src/cmd/acpi/common/
H A Dosl.c30 struct stat sb; local
33 if (fstat(fd, &sb) != 0)
35 return ((UINT32)sb.st_size);
/illumos-gate/usr/src/boot/lib/libstand/
H A Dfstat.c39 fstat(int fd, struct stat *sb) argument
54 errno = (f->f_ops->fo_stat)(f, sb);
H A Dstat.c39 stat(const char *str, struct stat *sb) argument
46 rv = fstat(fd, sb);
/illumos-gate/usr/src/cmd/sendmail/db/os/
H A Dos_stat.c35 struct stat sb; local
40 if (stat(path, &sb) != 0)
51 *isdirp = S_ISDIR(sb.st_mode);
70 struct stat sb; local
75 if (fstat(fd, &sb) == -1)
80 *mbytesp = sb.st_size / MEGABYTE;
82 *bytesp = sb.st_size % MEGABYTE;
92 if (iosizep != NULL && (*iosizep = sb.st_blksize) == 0)
H A Dos_fid.c39 struct stat sb; local
48 if (sizeof(sb.st_ino) +
49 sizeof(sb.st_dev) + sizeof(time_t) > DB_FILE_ID_LEN)
53 if (stat(fname, &sb)) {
62 for (p = (u_int8_t *)&sb.st_ino +
63 sizeof(sb.st_ino), i = 0; i < sizeof(sb.st_ino); ++i)
65 for (p = (u_int8_t *)&sb.st_dev +
66 sizeof(sb.st_dev), i = 0; i < sizeof(sb
[all...]
/illumos-gate/usr/src/cmd/mail/
H A Dcreatemf.c70 struct stat fsb,sb; local
73 if (lstat(path, &sb)) {
89 } else if (sb.st_nlink != 1 || S_ISLNK(sb.st_mode)) {
106 S_ISLNK(fsb.st_mode) || sb.st_dev != fsb.st_dev ||
107 sb.st_ino != fsb.st_ino)) {
/illumos-gate/usr/src/cmd/oamuser/group/
H A Dadd_group.c50 struct stat sb; /* stat buf to copy modes */ local
57 if (fstat(fileno(etcgrp), &sb) < 0) {
59 sb.st_mode = S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH;
71 if (fchmod(fileno(etctmp), sb.st_mode) != 0 ||
72 fchown(fileno(etctmp), sb.st_uid, sb.st_gid) != 0 ||
/illumos-gate/usr/src/cmd/sgs/tools/common/
H A Dpiglatin.c45 char buffer[32767], * cb, * sb; local
48 sb = cb = &buffer[0];
49 *sb = '\0';
96 sb++;
107 (void) printf("%s", sb);
110 sb = cb = &buffer[0];
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/recno/
H A Drec_open.c69 struct stat sb; local
151 if (fstat(rfd, &sb))
162 if (sb.st_size == 0)
173 t->bt_msize = sb.st_size;
179 t->bt_emap = t->bt_smap + sb.st_size;
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_realpath.c83 struct stat sb; local
180 if (lstat(resolved, &sb) != 0) {
188 if (S_ISLNK(sb.st_mode)) {
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dabandon.c114 Sockbuf *sb; local
222 sb = lr->lr_conn->lconn_sb;
224 sb = ld->ld_sbp;
226 if ( nsldapi_ber_flush( ld, sb, ber, 1, 0 )
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dgetdate.c69 struct stat sb; local
80 if (stat(datemsk, &sb) < 0) {
85 if ((sb.st_mode & S_IFMT) != S_IFREG) {
/illumos-gate/usr/src/cmd/refer/
H A Dhunt5.c70 struct stat sb; local
71 fstat(fileno(f), &sb); local
72 return (sb . st_mtime);
/illumos-gate/usr/src/cmd/svc/mfstscan/
H A Dmfstscan.c69 struct stat sb; local
112 if (stat(argv[i], &sb) == -1) {
/illumos-gate/usr/src/cmd/lastcomm/
H A Dlc_pacct.c45 struct stat sb; local
54 (void) fstat(fd, &sb);
56 if (sb.st_size % sizeof (struct acct)) {
62 for (bn = ((unsigned)sb.st_size / BUF_SIZ) + 1; bn >= 0; bn--) {
/illumos-gate/usr/src/cmd/ldap/common/
H A Ddtest.c45 Sockbuf sb; local
53 bzero( &sb, sizeof(sb) );
54 sb.sb_sd = 0;
55 sb.sb_ber.ber_buf = NULL;
56 if ( (tag = ber_get_next( &sb, &len, &ber )) == -1 ) {
H A Detest.c38 Sockbuf sb; local
46 bzero( &sb, sizeof(sb) );
47 sb.sb_sd = 1;
48 sb.sb_ber.ber_buf = NULL;
54 if (( sb.sb_sd = open( "lber-test", O_WRONLY|O_CREAT|O_TRUNC|O_BINARY ))
72 if ( ber_flush( &sb, ber, 1 ) == -1 ) {
/illumos-gate/usr/src/uts/common/syscall/
H A Dpathconf.c58 struct statvfs64 sb; local
73 if ((error = VFS_STATVFS(vp->v_vfsp, &sb)) != 0)
83 return ((long)MAX(sb.f_bsize, 1UL << 20));
101 return ((long)MAX(sb.f_bsize, PAGESIZE));
/illumos-gate/usr/src/cmd/backup/dump/
H A Dlftw.c142 struct stat64 sb; local
150 if ((*statfn)(path, &sb) < 0)
151 return (errno == EACCES? (*fn)(path, &sb, FTW_NS): -1);
160 if (sb.st_dev != partial_dev) {
174 if ((sb.st_mode & S_IFMT) != S_IFDIR &&
175 (sb.st_mode & IFMT) != IFATTRDIR) {
176 rc = (*fn)(path, &sb, FTW_F);
199 rc = (errno == EACCES? (*fn)(path, &sb, FTW_DNR): -1);
201 rc = (*fn)(path, &sb, FTW_D);
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dls.c61 struct stat sb; local
93 if (stat(path, &sb) == 0 && !S_ISDIR(sb.st_mode)) {
96 typestr[sb.st_mode >> 12],
97 (int)sb.st_size, path);
100 typestr[sb.st_mode >> 12], path);
118 sb.st_size = 0;
119 sb.st_mode = 0;
124 if (stat(buf, &sb)) {
125 sb
158 struct stat sb; local
[all...]
/illumos-gate/usr/src/tools/btxld/
H A Dversion.c55 struct stat sb; local
64 if (fstat(fd, &sb) == -1) {
73 buf_size = P2ROUNDUP(sb.st_size + SECTOR_SIZE, SECTOR_SIZE);
85 ret = read(fd, buf, sb.st_size);
86 if (ret != sb.st_size) {
103 mboot->load_end_addr = sb.st_size;
107 hs.src_size = sb.st_size;
112 extra = P2ROUNDUP(sb.st_size, 8);
114 memset(buf+sb.st_size, 0, buf_size - sb
[all...]
/illumos-gate/usr/src/lib/krb5/kadm5/srv/
H A Dserver_dict.c107 struct stat sb; local
130 if (fstat(fd, &sb) == -1)
132 if ((word_block = (char *) malloc(sb.st_size + 1)) == NULL)
134 if (read(fd, word_block, sb.st_size) != sb.st_size)
137 word_block[sb.st_size] = '\0';
140 len = sb.st_size;

Completed in 256 milliseconds

12345678