/titanic_41/usr/src/uts/common/syscall/ |
H A D | stat.c | 137 #define FSTAT_BODY(fd, sb, statfn) \ argument 146 error = statfn(fp->f_vnode, sb, 0, fp->f_cred); \ 154 fstat(int fd, struct stat *sb) in fstat() argument 156 FSTAT_BODY(fd, sb, cstat) in fstat() 160 fstatat(int fd, char *name, struct stat *sb, int flags) in fstatat() argument 166 return (fstat(fd, sb)); in fstatat() 173 return (cstatat(fd, name, sb, followflag, csflags)); in fstatat() 177 stat(char *name, struct stat *sb) in stat() argument 179 return (fstatat(AT_FDCWD, name, sb, 0)); in stat() 183 lstat(char *name, struct stat *sb) in lstat() argument [all …]
|
/titanic_41/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | sasl.c | 53 static int nsldapi_sasl_close( LDAP *ld, Sockbuf *sb ); 54 static void destroy_sasliobuf(Sockbuf *sb); 148 Sockbuf *sb = (Sockbuf *)arg; in nsldapi_sasl_read() local 155 if (sb == NULL) { in nsldapi_sasl_read() 159 ld = (LDAP *)sb->sb_sasl_prld; in nsldapi_sasl_read() 165 if ((ret = sb->sb_sasl_ilen) > 0) { in nsldapi_sasl_read() 167 SAFEMEMCPY( buf, sb->sb_sasl_iptr, ret ); in nsldapi_sasl_read() 168 if (ret == sb->sb_sasl_ilen) { in nsldapi_sasl_read() 169 sb->sb_sasl_ilen = 0; in nsldapi_sasl_read() 170 sb->sb_sasl_iptr = NULL; in nsldapi_sasl_read() [all …]
|
H A D | os-ip.c | 127 static int nsldapi_add_to_cb_pollfds( Sockbuf *sb, 129 static int nsldapi_clear_from_cb_pollfds( Sockbuf *sb, 131 static int nsldapi_find_in_cb_pollfds( Sockbuf *sb, 466 nsldapi_connect_to_host( LDAP *ld, Sockbuf *sb, const char *hostlist, argument 494 &sb->sb_ext_io_fns.lbextiofn_socket_arg 513 sb->sb_sd = s; 521 if (( *krbinstancep = nsldapi_host_connected_to( sb )) != NULL 737 nsldapi_close_connection( LDAP *ld, Sockbuf *sb ) argument 740 nsldapi_os_closesocket( sb->sb_sd ); 742 ld->ld_extclose_fn( sb->sb_sd, [all …]
|
/titanic_41/usr/src/lib/libc/port/sys/ |
H A D | stat.c | 37 fstatat64(int fd, const char *name, struct stat64 *sb, int flags) in fstatat64() argument 39 return (syscall(SYS_fstatat64, fd, name, sb, flags)); in fstatat64() 44 stat64(const char *name, struct stat64 *sb) in stat64() argument 47 return (syscall(SYS_stat64, name, sb)); in stat64() 49 return (fstatat64(AT_FDCWD, name, sb, 0)); in stat64() 55 lstat64(const char *name, struct stat64 *sb) in lstat64() argument 58 return (syscall(SYS_lstat64, name, sb)); in lstat64() 60 return (fstatat64(AT_FDCWD, name, sb, AT_SYMLINK_NOFOLLOW)); in lstat64() 66 fstat64(int fd, struct stat64 *sb) in fstat64() argument 69 return (syscall(SYS_fstat64, fd, sb)); in fstat64() [all …]
|
/titanic_41/usr/src/lib/libldap5/sources/ldap/ber/ |
H A D | io.c | 61 #define bergetc( sb, len ) ( sb->sb_ber.ber_end > sb->sb_ber.ber_ptr ? \ argument 62 (unsigned char)*sb->sb_ber.ber_ptr++ : \ 63 ber_filbuf( sb, len )) 71 # define BerWrite( sb, b, l ) tcpwrite( sb->sb_sd, (unsigned char *)(b), (l<MAX_WRITE)? l : MAX_… argument 83 # define BerWrite( sb, b, l ) write( sb->sb_sd, b, l ) argument 84 # define udp_read( sb, b, l, al ) recvfrom(sb->sb_sd, (char *)b, l, 0, \ argument 85 (struct sockaddr *)sb->sb_fromaddr, \ 87 # define udp_write( sb, b, l ) sendto(sb->sb_sd, (char *)(b), l, 0, \ argument 88 (struct sockaddr *)sb->sb_useaddr, sizeof(struct sockaddr)) 93 #define udp_read( sb, b, l, al ) CLDAP NOT SUPPORTED argument [all …]
|
/titanic_41/usr/src/lib/libbc/inc/include/sys/ |
H A D | socketvar.h | 109 #define sbspace(sb) \ argument 110 (MIN((int)((sb)->sb_hiwat - (sb)->sb_cc),\ 111 (int)((sb)->sb_mbmax - (sb)->sb_mbcnt))) 131 #define sballoc(sb, m) { \ argument 132 (sb)->sb_cc += (m)->m_len; \ 133 (sb)->sb_mbcnt += MSIZE; \ 135 (sb)->sb_mbcnt += MCLBYTES; \ 139 #define sbfree(sb, m) { \ argument 140 (sb)->sb_cc -= (m)->m_len; \ 141 (sb)->sb_mbcnt -= MSIZE; \ [all …]
|
/titanic_41/usr/src/cmd/pools/poold/com/sun/solaris/service/logging/ |
H A D | SysloglikeFormatter.java | 121 StringBuffer sb = new StringBuffer(); in format() local 127 sb.append(dateFormatter.format(date)); in format() 130 sb.append(" "); in format() 131 sb.append(record.getSourceClassName()); in format() 134 sb.append(" "); in format() 135 sb.append(record.getLoggerName()); in format() 141 sb.append(" "); in format() 146 sb.append(loggerName); in format() 151 sb.append(" "); in format() 152 sb.append(record.getSourceMethodName()); in format() [all …]
|
/titanic_41/usr/src/stand/lib/fs/common/ |
H A D | fsswitch.c | 161 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() 180 sb->st_size = (off_t)buf.st_size; in fstat() 181 sb->st_blksize = buf.st_blksize; in fstat() [all …]
|
/titanic_41/usr/src/cmd/sendmail/db/os/ |
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.st_dev); ++i)
|
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)
|
/titanic_41/usr/src/cmd/pools/poold/com/sun/solaris/domain/pools/ |
H A D | DecisionHistory.java | 375 StringBuffer sb = new StringBuffer(); in getKey() local 377 sb.append(cpuid); in getKey() 378 sb.append(", "); in getKey() 379 sb.append(fromPsetName); in getKey() 380 sb.append(", "); in getKey() 381 sb.append(toPsetName); in getKey() 383 return (sb.toString()); in getKey() 440 StringBuffer sb = new StringBuffer(); in toString() local 442 sb.append(cpuid.toString()); in toString() 443 sb.append(", "); in toString() [all …]
|
/titanic_41/usr/src/cmd/krb5/kadmin/gui/dataclasses/ |
H A D | Flags.java | 163 StringBuffer sb = new StringBuffer(); in toString() local 167 sb.append('\t').append(ch).append(getString(flagNames[0])).append('\n'); in toString() 170 sb.append('\t').append(ch).append(getString(flagNames[1])).append('\n'); in toString() 173 sb.append('\t').append(ch).append(getString(flagNames[2])).append('\n'); in toString() 176 sb.append('\t').append(ch).append(getString(flagNames[3])).append('\n'); in toString() 179 sb.append('\t').append(ch).append(getString(flagNames[4])).append('\n'); in toString() 182 sb.append('\t').append(ch).append(getString(flagNames[5])).append('\n'); in toString() 185 sb.append('\t').append(ch).append(getString(flagNames[6])).append('\n'); in toString() 188 sb.append('\t').append(ch).append(getString(flagNames[7])).append('\n'); in toString() 191 sb.append('\t').append(ch).append(getString(flagNames[8])).append('\n'); in toString() [all …]
|
/titanic_41/usr/src/lib/libbc/libc/gen/common/ |
H A D | ftw.c | 116 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_D);
|
/titanic_41/usr/src/lib/libslp/javalib/com/sun/slp/ |
H A D | SLPTokenizer.java | 178 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 …]
|
/titanic_41/usr/src/lib/pam_modules/timestamp/ |
H A D | pam_timestamp.c | 104 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() 134 if (sb.st_mode & (S_IWGRP | S_IWOTH | S_IROTH)) { 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() [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/ftp/ |
H A D | main.c | 486 char *sb = stringbase; in slurpstring() local 491 if (*sb == '!' || *sb == '$') { /* recognize ! as a token for shell */ in slurpstring() 496 return ((*sb == '!') ? "!" : "$"); in slurpstring() 507 switch (*sb) { in slurpstring() 514 sb++; goto S0; in slurpstring() 523 altarg = sb; in slurpstring() 532 switch (*sb) { in slurpstring() 540 sb++; goto S2; /* slurp next character */ in slurpstring() 543 sb++; goto S3; /* slurp quoted string */ in slurpstring() 546 if ((len = mblen(sb, MB_CUR_MAX)) <= 0) in slurpstring() [all …]
|
/titanic_41/usr/src/uts/sun4u/sys/ |
H A D | sbdpriv.h | 212 #define SBD_DEVICE_TRANSITION(sb, nt, un, st) \ argument 215 _ostate = (int)((sb)->sb_dev[NIX(nt)][un].u_common.sbdev_state); \ 218 (sb)->sb_num, \ 223 (void *)&(sb)->sb_dev[NIX(nt)][un].u_common.sbdev_time); \ 224 (sb)->sb_dev[NIX(nt)][un].u_common.sbdev_state = (st); \ 225 (sb)->sb_dev[NIX(nt)][un].u_common.sbdev_ostate = ostate_cvt(st); \ 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; \ [all …]
|
/titanic_41/usr/src/cmd/ldap/common/ |
H A D | dtest.c | 45 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()
|
/titanic_41/usr/src/lib/libsip/common/ |
H A D | sip_ui.c | 962 sent_by_list_t *sb; in sip_sent_by_to_str() local 978 sb = sip_sent_by; in sip_sent_by_to_str() 980 sb_len += strlen(sb->sb_val); in sip_sent_by_to_str() 981 sb = sb->sb_next; in sip_sent_by_to_str() 994 sb = sip_sent_by; in sip_sent_by_to_str() 999 count = snprintf(p, slen, "%s", sb->sb_val); in sip_sent_by_to_str() 1002 sb->sb_val); in sip_sent_by_to_str() 1006 sb = sb->sb_next; in sip_sent_by_to_str() 1019 sent_by_list_t *sb = NULL; in sip_register_sent_by() local 1049 if (sb == NULL) { in sip_register_sent_by() [all …]
|
/titanic_41/usr/src/cmd/avs/dscfglockd/ |
H A D | dscfgcli.c | 46 struct stat sb; in test() local 55 (void) fstat(0, &sb); in test() 58 (void) fstat(1, &sb); in test() 63 (void) fstat(0, &sb); in test() 66 (void) fstat(1, &sb); in test() 71 (void) fstat(0, &sb); in test() 74 (void) fstat(1, &sb); in test()
|
/titanic_41/usr/src/cmd/sgs/tools/common/ |
H A D | piglatin.c | 45 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()
|
/titanic_41/usr/src/cmd/backup/dump/ |
H A D | lftw.c | 146 struct stat64 sb; in lf_xftw() local 154 if ((*statfn)(path, &sb) < 0) in lf_xftw() 155 return (errno == EACCES? (*fn)(path, &sb, FTW_NS): -1); in lf_xftw() 164 if (sb.st_dev != partial_dev) { in lf_xftw() 178 if ((sb.st_mode & S_IFMT) != S_IFDIR && in lf_xftw() 179 (sb.st_mode & IFMT) != IFATTRDIR) { in lf_xftw() 180 rc = (*fn)(path, &sb, FTW_F); in lf_xftw() 203 rc = (errno == EACCES? (*fn)(path, &sb, FTW_DNR): -1); in lf_xftw() 205 rc = (*fn)(path, &sb, FTW_D); in lf_xftw()
|
/titanic_41/usr/src/cmd/tip/ |
H A D | uucplock.c | 249 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()
|
/titanic_41/usr/src/lib/krb5/kadm5/srv/ |
H A D | server_dict.c | 107 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()
|
/titanic_41/usr/src/cmd/oamuser/group/ |
H A D | add_group.c | 50 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 ||
|