/osnet-11/usr/src/cmd/sendmail/db/os/ |
H A D | os_stat.c | 35 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 D | os_fid.c | 39 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...] |
/osnet-11/usr/src/lib/krb5/plugins/kdb/db2/libdb2/recno/ |
H A D | rec_open.c | 67 struct stat sb; local 154 if (fstat(rfd, &sb)) 165 if (sb.st_size == 0) 176 t->bt_msize = sb.st_size; 182 t->bt_emap = t->bt_smap + sb.st_size;
|
/osnet-11/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | abandon.c | 114 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 )
|
H A D | unbind.c | 189 nsldapi_send_unbind( LDAP *ld, Sockbuf *sb, LDAPControl **serverctrls, argument 222 if ((rc = nsldapi_ber_flush( ld, sb, ber, 1, 1 )) != 0 ) { 228 nsldapi_connection_lost_nolock( ld, sb );
|
/osnet-11/usr/src/lib/libparted/common/libparted/fs/jfs/ |
H A D | jfs.c | 43 struct superblock sb; member in union:__anon2240 56 if (strncmp (buf.sb.s_magic, JFS_MAGIC, 4) == 0) { 57 PedSector block_size = PED_LE32_TO_CPU (buf.sb.s_pbsize) / 512; 58 PedSector block_count = PED_LE64_TO_CPU (buf.sb.s_size);
|
/osnet-11/usr/src/lib/libparted/common/libparted/fs/xfs/ |
H A D | xfs.c | 44 struct xfs_sb sb; member in union:__anon2257 53 if (PED_LE32_TO_CPU (buf.sb.sb_magicnum) == XFS_SB_MAGIC) { 54 block_size = PED_LE32_TO_CPU (buf.sb.sb_blocksize) / 512; 55 block_count = PED_LE64_TO_CPU (buf.sb.sb_dblocks); 61 if (PED_BE32_TO_CPU (buf.sb.sb_magicnum) == XFS_SB_MAGIC) { 62 block_size = PED_BE32_TO_CPU (buf.sb.sb_blocksize) / 512; 63 block_count = PED_BE64_TO_CPU (buf.sb.sb_dblocks);
|
/osnet-11/usr/src/lib/libdevinfo/ |
H A D | devinfo_realpath.c | 83 struct stat sb; local 180 if (lstat(resolved, &sb) != 0) { 188 if (S_ISLNK(sb.st_mode)) {
|
/osnet-11/usr/src/cmd/ldap/common/ |
H A D | dtest.c | 45 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 D | etest.c | 38 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 ) {
|
/osnet-11/usr/src/lib/libldap4/common/ |
H A D | abandon.c | 165 Sockbuf *sb; local 217 sb = lr->lr_conn->lconn_sb; 219 sb = &ld->ld_sb; 222 sb = &ld->ld_sb; 224 if ( ber_flush( sb, ber, 1 ) != 0 ) {
|
H A D | open.c | 252 open_ldap_connection(LDAP *ld, Sockbuf *sb, char *host, int defport, argument 294 if ((rc = connect_to_host(sb, curhost, 0, 300 rc = connect_to_host(sb, NULL, htonl(INADDR_LOOPBACK), 310 if ((*krbinstancep = host_connected_to(sb)) != NULL &&
|
/osnet-11/usr/src/lib/libdscfg/common/ |
H A D | cfg_lockdlck.c | 57 struct stat sb; local 62 while (fstat(local_lockfd, &sb) == -1 && errno == EINTR) 64 if (sb.st_size < off + sizeof (pid_t)) {
|
/osnet-11/usr/src/lib/krb5/kadm5/srv/ |
H A D | server_dict.c | 108 struct stat sb; local 132 if (fstat(fd, &sb) == -1) { 136 if ((word_block = (char *) malloc(sb.st_size + 1)) == NULL) 138 if (read(fd, word_block, sb.st_size) != sb.st_size) 141 word_block[sb.st_size] = '\0'; 144 len = sb.st_size;
|
/osnet-11/usr/src/lib/libc/port/sys/ |
H A D | stat.c | 36 fstatat64(int fd, const char *name, struct stat64 *sb, int flags) argument 38 return (syscall(SYS_fstatat64, fd, name, sb, flags)); 43 stat64(const char *name, struct stat64 *sb) argument 45 return (fstatat64(AT_FDCWD, name, sb, 0)); 50 lstat64(const char *name, struct stat64 *sb) argument 52 return (fstatat64(AT_FDCWD, name, sb, AT_SYMLINK_NOFOLLOW)); 57 fstat64(int fd, struct stat64 *sb) argument 59 return (fstatat64(fd, NULL, sb, 0)); 66 fstatat(int fd, const char *name, struct stat *sb, int flags) argument 68 return (syscall(SYS_fstatat, fd, name, sb, flag 73 stat(const char *name, struct stat *sb) argument 80 lstat(const char *name, struct stat *sb) argument 87 fstat(int fd, struct stat *sb) argument [all...] |
/osnet-11/usr/src/lib/libipmi/common/ |
H A D | ipmi_bmc.c | 98 struct strbuf sb; local 127 sb.len = msgsz; 128 sb.buf = (char *)msg; 130 if (putmsg(ibp->ib_fd, NULL, &sb, 0) < 0) { 140 sb.buf = (char *)ibp->ib_msg; 141 sb.maxlen = ibp->ib_msglen; 143 if (getmsg(ibp->ib_fd, NULL, &sb, &flags) < 0) {
|
/osnet-11/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/ |
H A D | bt_open.c | 97 struct stat sb; local 220 if (fstat(t->bt_fd, &sb)) 222 if (sb.st_size) { 264 b.psize = sb.st_blksize;
|
/osnet-11/usr/src/lib/krb5/plugins/kdb/db2/libdb2/mpool/ |
H A D | mpool.c | 64 struct stat sb; local 74 if (fstat(fd, &sb)) 76 if (!S_ISREG(sb.st_mode)) { 88 mp->npages = sb.st_size / pagesize;
|
/osnet-11/usr/src/lib/libc/port/gen/ |
H A D | gettxt.c | 86 struct stat64 sb; local 173 fstat64(fd, &sb) == -1 || 174 (addr = mmap(NULL, sb.st_size, PROT_READ, MAP_SHARED, fd, 0L)) ==
|
H A D | _xftw.c | 151 struct stat sb; local 163 if (nocdstat(path, &sb, vp, 0) < 0) { 166 if ((nocdstat(path, &sb, vp, AT_SYMLINK_NOFOLLOW) != -1) && 167 ((sb.st_mode & S_IFMT) == S_IFLNK)) { 169 return (*fn)(path, &sb, FTW_NS); 174 return (errno == EACCES? (*fn)(path, &sb, FTW_NS): -1); 181 if ((sb.st_mode & S_IFMT) != S_IFDIR) 182 return ((*fn)(path, &sb, FTW_F)); 198 return (errno == EACCES? (*fn)(path, &sb, FTW_DNR): -1); 201 rc = (*fn)(path, &sb, FTW_ [all...] |
H A D | gtxt.c | 107 struct stat64 sb; local 161 fstat64(fd, &sb) != -1 && 162 (addr = mmap(NULL, sb.st_size, PROT_READ, MAP_SHARED, fd, 0L)) != 166 db->length = (size_t)sb.st_size;
|
/osnet-11/usr/src/lib/sun_fc/common/ |
H A D | FCHBA.cc | 333 struct stat sb; local 338 if (stat(FCSM_DRIVER_PATH.c_str(), &sb) != 0) {
|
/osnet-11/usr/src/lib/libdhcpagent/common/ |
H A D | dhcp_stable.c | 70 struct stat sb; local 76 if (fstat(fd, &sb) != -1 && S_ISREG(sb.st_mode) && 77 (duid = malloc(sb.st_size)) != NULL) { 78 retv = read(fd, duid, sb.st_size); 79 if (retv == sb.st_size) { 80 *duidlen = sb.st_size;
|
/osnet-11/usr/src/lib/libdhcpsvc/private/ |
H A D | confopt.c | 123 struct stat sb; local 141 if (fstat(dd, &sb) == -1) { 148 dp = alloca(sb.st_size); 149 if (read(dd, dp, sb.st_size) != sb.st_size) { 157 for (entry = 0, cp = dp; cp < &dp[sb.st_size]; cp = eol + 1) {
|
/osnet-11/usr/src/lib/libc/i386/crt/ |
H A D | _rtld.c | 95 struct stat sb; /* stat buffer for sizing */ local 137 if (FSTATAT(ldfd, NULL, &sb, 0) == -1) 139 ehdr = (Elf32_Ehdr *)MMAP(0, sb.st_size, PROT_READ | PROT_EXEC,
|