Home
last modified time | relevance | path

Searched refs:sb (Results 1 – 25 of 263) sorted by relevance

1234567891011

/illumos-gate/usr/src/uts/common/syscall/
H A Dstat.c156 FSTAT_BODY(fd, sb, cstat) in fstat()
166 return (fstat(fd, sb)); in fstatat()
197 struct stat sb; in cstat() local
231 bzero(&sb, sizeof (sb)); in cstat()
236 sb.st_uid = vattr.va_uid; in cstat()
250 if (copyout(&sb, ubp, sizeof (sb))) in cstat()
327 struct stat32 sb; in cstat32() local
354 bzero(&sb, sizeof (sb)); in cstat32()
355 sb.st_dev = st_dev; in cstat32()
361 sb.st_rdev = st_rdev; in cstat32()
[all …]
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dsasl.c155 if (sb == NULL) { in nsldapi_sasl_read()
204 ret = nsldapi_sasl_pktlen( sb->sb_sasl_ibuf, sb->sb_sasl_bfsz ); in nsldapi_sasl_read()
247 sb->sb_sasl_iptr = sb->sb_sasl_ibuf; in nsldapi_sasl_read()
272 if (sb == NULL) { in nsldapi_sasl_write()
322 if (sb == NULL) { in nsldapi_sasl_poll()
353 if (sb == NULL) { in nsldapi_sasl_ne_read()
367 if (sb == NULL) { in nsldapi_sasl_ne_write()
489 (void *) sb; in nsldapi_sasl_install()
506 (void *) sb; in nsldapi_sasl_install()
571 Sockbuf *sb; in nsldapi_sasl_open() local
[all …]
H A Dos-ip.c513 sb->sb_sd = s;
807 if ( !FD_ISSET( sb->sb_sd,
809 FD_SET( sb->sb_sd,
861 FD_SET( sb->sb_sd,
914 if ( FD_ISSET( sb->sb_sd,
916 FD_CLR( sb->sb_sd,
920 if ( FD_ISSET( sb->sb_sd,
922 FD_CLR( sb->sb_sd,
975 rc = FD_ISSET( sb->sb_sd,
1021 rc = FD_ISSET( sb->sb_sd,
[all …]
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dstat.c47 return (syscall(SYS_stat64, name, sb)); in stat64()
66 fstat64(int fd, struct stat64 *sb) in fstat64() argument
69 return (syscall(SYS_fstat64, fd, sb)); in fstat64()
71 return (fstatat64(fd, NULL, sb, 0)); in fstat64()
86 stat(const char *name, struct stat *sb) in stat() argument
89 return (syscall(SYS_stat, name, sb)); in stat()
97 lstat(const char *name, struct stat *sb) in lstat() argument
100 return (syscall(SYS_lstat, name, sb)); in lstat()
108 fstat(int fd, struct stat *sb) in fstat() argument
111 return (syscall(SYS_fstat, fd, sb)); in fstat()
[all …]
/illumos-gate/usr/src/lib/libldap5/sources/ldap/ber/
H A Dio.c61 #define bergetc( sb, len ) ( sb->sb_ber.ber_end > sb->sb_ber.ber_ptr ? \ argument
83 # define BerWrite( sb, b, l ) write( sb->sb_sd, b, l ) argument
137 sb->sb_ber.ber_ptr = sb->sb_ber.ber_buf; in ber_filbuf()
138 sb->sb_ber.ber_end = sb->sb_ber.ber_buf; in ber_filbuf()
143 rc = udp_read(sb, sb->sb_ber.ber_buf, READBUFSIZ, addrlen ); in ber_filbuf()
160 sb->sb_sd, sb->sb_ber.ber_buf, in ber_filbuf()
165 rc = read( sb->sb_sd, sb->sb_ber.ber_buf, in ber_filbuf()
172 sb->sb_ber.ber_ptr = sb->sb_ber.ber_buf + 1; in ber_filbuf()
173 sb->sb_ber.ber_end = sb->sb_ber.ber_buf + rc; in ber_filbuf()
1360 return( sb->sb_io_fns.lbiof_read( sb->sb_sd, buf, len )); in nslberi_extread_compat()
[all …]
/illumos-gate/usr/src/cmd/pools/poold/com/sun/solaris/service/logging/
H A DSysloglikeFormatter.java130 sb.append(" "); in format()
134 sb.append(" "); in format()
141 sb.append(" "); in format()
146 sb.append(loggerName); in format()
151 sb.append(" "); in format()
157 sb.append(" "); in format()
163 sb.append(": "); in format()
164 sb.append(message); in format()
166 sb.append(" "); in format()
171 sb.append(lineSeparator); in format()
[all …]
/illumos-gate/usr/src/stand/lib/fs/common/
H A Dfsswitch.c161 fstat(int fd, struct stat *sb) in fstat() argument
173 sb->st_dev = buf.st_dev; in fstat()
174 sb->st_ino = buf.st_ino; in fstat()
175 sb->st_mode = buf.st_mode; in fstat()
176 sb->st_nlink = buf.st_nlink; in fstat()
177 sb->st_uid = buf.st_uid; in fstat()
178 sb->st_gid = buf.st_gid; in fstat()
179 sb->st_rdev = buf.st_rdev; in fstat()
182 sb->st_blocks = buf.st_blocks; in fstat()
190 (void) memcpy(sb->st_fstype, buf.st_fstype, sizeof (sb->st_fstype)); in fstat()
[all …]
/illumos-gate/usr/src/boot/sys/boot/common/
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 …]
/illumos-gate/usr/src/cmd/pools/poold/com/sun/solaris/domain/pools/
H A DDecisionHistory.java377 sb.append(cpuid); in getKey()
378 sb.append(", "); in getKey()
380 sb.append(", "); in getKey()
443 sb.append(", "); in toString()
445 sb.append(", "); in toString()
447 sb.append(", "); in toString()
449 sb.append(", "); in toString()
451 sb.append(", "); in toString()
537 sb.append("\t("); in toString()
539 sb.append(")\n"); in toString()
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/os/
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.st_dev); ++i)
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)
/illumos-gate/usr/src/tools/btxld/
H A Dversion.c55 struct stat sb; in add_version() local
64 if (fstat(fd, &sb) == -1) { in add_version()
73 buf_size = P2ROUNDUP(sb.st_size + SECTOR_SIZE, SECTOR_SIZE); in add_version()
85 ret = read(fd, buf, sb.st_size); in add_version()
86 if (ret != sb.st_size) { in add_version()
103 mboot->load_end_addr = sb.st_size; in add_version()
107 hs.src_size = sb.st_size; in add_version()
112 extra = P2ROUNDUP(sb.st_size, 8); in add_version()
114 memset(buf+sb.st_size, 0, buf_size - sb.st_size); in add_version()
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/
H A DSLPTokenizer.java178 StringBuffer sb = new StringBuffer(); in nextToken() local
187 sb.append(str.charAt(index)); in nextToken()
189 return sb.toString(); in nextToken()
198 return sb.toString(); in nextToken()
202 sb.append(c); in nextToken()
208 return sb.toString(); in nextToken()
219 if (sb.length() != 0) { in nextToken()
222 return sb.toString(); in nextToken()
228 sb.append(c); in nextToken()
233 if (sb.length() == 0) { in nextToken()
[all …]
/illumos-gate/usr/src/lib/pam_modules/timestamp/
H A Dpam_timestamp.c104 struct stat sb; in validate_dir() local
110 if (lstat(dir, &sb) < 0) { in validate_dir()
116 if (!S_ISDIR(sb.st_mode)) { in validate_dir()
122 if (S_ISLNK(sb.st_mode)) { in validate_dir()
128 if (sb.st_uid != 0 || sb.st_gid != 0) { in validate_dir()
186 struct stat sb, tty; in pam_sm_authenticate() local
228 if (lstat(timestampfile, &sb) == 0 && sb.st_size != 0) { in pam_sm_authenticate()
229 if (!S_ISREG(sb.st_mode)) { in pam_sm_authenticate()
237 if (sb.st_uid != 0 || sb.st_gid != 0) { in pam_sm_authenticate()
245 if (sb.st_nlink != 1 || S_ISLNK(sb.st_mode)) { in pam_sm_authenticate()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dmain.c491 if (*sb == '!' || *sb == '$') { /* recognize ! as a token for shell */ in slurpstring()
507 switch (*sb) { in slurpstring()
514 sb++; goto S0; in slurpstring()
523 altarg = sb; in slurpstring()
532 switch (*sb) { in slurpstring()
550 sb += len; in slurpstring()
556 switch (*sb) { in slurpstring()
566 sb += len; in slurpstring()
572 switch (*sb) { in slurpstring()
578 sb++; goto S1; in slurpstring()
[all …]
/illumos-gate/usr/src/uts/sun4u/sys/
H A Dsbdpriv.h218 (sb)->sb_num, \
228 #define SBD_BOARD_TRANSITION(sb, st) \ argument
231 (sb)->sb_num, \
232 sbd_state_str[(int)(sb)->sb_state], (int)(sb)->sb_state, \
234 (sb)->sb_pstate = (sb)->sb_state; \
235 (sb)->sb_state = (st); \
248 ((sb)->sb_pstate = (sb)->sb_state, (sb)->sb_state = (st), \
254 #define SBD_BOARD_STATE(sb) \ argument
255 ((sb)->sb_state)
256 #define SBD_BOARD_PSTATE(sb) \ argument
[all …]
/illumos-gate/usr/src/lib/libsip/common/
H A Dsip_ui.c981 sb = sb->sb_next; in sip_sent_by_to_str()
1006 sb = sb->sb_next; in sip_sent_by_to_str()
1050 sb = sb_tail; in sip_register_sent_by()
1059 sb_tail = sb; in sip_register_sent_by()
1072 sb_tail = sb; in sip_register_sent_by()
1079 sb_tail = sb; in sip_register_sent_by()
1108 sb->sb_prev->sb_next = sb->sb_next; in sip_unregister_sent_by()
1109 sb->sb_next->sb_prev = sb->sb_prev; in sip_unregister_sent_by()
1115 free(sb); in sip_unregister_sent_by()
1118 sb = sb->sb_next; in sip_unregister_sent_by()
[all …]
/illumos-gate/usr/src/cmd/ldap/common/
H A Ddtest.c45 Sockbuf sb; in main() local
53 bzero( &sb, sizeof(sb) ); in main()
54 sb.sb_sd = 0; in main()
55 sb.sb_ber.ber_buf = NULL; in main()
56 if ( (tag = ber_get_next( &sb, &len, &ber )) == -1 ) { in main()
/illumos-gate/usr/src/cmd/backup/dump/
H A Dlftw.c142 struct stat64 sb; in lf_xftw() local
150 if ((*statfn)(path, &sb) < 0) in lf_xftw()
151 return (errno == EACCES? (*fn)(path, &sb, FTW_NS): -1); in lf_xftw()
160 if (sb.st_dev != partial_dev) { in lf_xftw()
174 if ((sb.st_mode & S_IFMT) != S_IFDIR && in lf_xftw()
175 (sb.st_mode & IFMT) != IFATTRDIR) { in lf_xftw()
176 rc = (*fn)(path, &sb, FTW_F); in lf_xftw()
199 rc = (errno == EACCES? (*fn)(path, &sb, FTW_DNR): -1); in lf_xftw()
201 rc = (*fn)(path, &sb, FTW_D); in lf_xftw()
/illumos-gate/usr/src/cmd/sgs/tools/common/
H A Dpiglatin.c45 char buffer[32767], * cb, * sb; in main() local
48 sb = cb = &buffer[0]; in main()
49 *sb = '\0'; in main()
96 sb++; in main()
107 (void) printf("%s", sb); in main()
110 sb = cb = &buffer[0]; in main()
/illumos-gate/usr/src/cmd/tip/
H A Duucplock.c249 struct stat sb; in delock() local
252 if (stat(sys, &sb) < 0) in delock()
256 (unsigned long)major(sb.st_dev), in delock()
257 (unsigned long)major(sb.st_rdev), in delock()
258 (unsigned long)minor(sb.st_rdev)); in delock()
272 struct stat sb; in tip_mlock() local
275 if (stat(sys, &sb) < 0) in tip_mlock()
279 (unsigned long)major(sb.st_dev), in tip_mlock()
280 (unsigned long)major(sb.st_rdev), in tip_mlock()
281 (unsigned long)minor(sb.st_rdev)); in tip_mlock()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/edit/
H A Dhexpand.c74 if(sb->str[1])
75 free(sb->str[1]);
76 sb->str[1] = strdup("");
92 if(sb->str[n])
93 free(sb->str[n]);
120 stakputs(sb->str[0]);
592 if(!sb.str[0] && wm)
594 cp = parse_subst(cp, &sb);
597 if(!sb.str[0] || !sb.str[1])
621 sfputr(tmp2, sb.str[1], -1);
[all …]
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_ntlmssp.c552 &sb->sb_length, in decode_secbuf_bin()
553 &sb->sb_maxlen, in decode_secbuf_bin()
554 &sb->sb_offset); in decode_secbuf_bin()
558 if (sb->sb_offset > mb->max) in decode_secbuf_bin()
560 if (sb->sb_length > (mb->max - sb->sb_offset)) in decode_secbuf_bin()
562 if (sb->sb_length == 0) in decode_secbuf_bin()
578 &sb->sb_length, in decode_secbuf_str()
579 &sb->sb_maxlen, in decode_secbuf_str()
580 &sb->sb_offset); in decode_secbuf_str()
586 if (sb->sb_length > (mb->max - sb->sb_offset)) in decode_secbuf_str()
[all …]
/illumos-gate/usr/src/lib/krb5/kadm5/srv/
H A Dserver_dict.c107 struct stat sb; in init_dict() local
130 if (fstat(fd, &sb) == -1) in init_dict()
132 if ((word_block = (char *) malloc(sb.st_size + 1)) == NULL) in init_dict()
134 if (read(fd, word_block, sb.st_size) != sb.st_size) in init_dict()
137 word_block[sb.st_size] = '\0'; in init_dict()
140 len = sb.st_size; in init_dict()
/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 ||

1234567891011