Searched refs:sb (Results 1 - 25 of 242) sorted by relevance

12345678910

/illumos-gate/usr/src/lib/libc/port/sys/
H A Dstat.c37 fstatat64(int fd, const char *name, struct stat64 *sb, int flags) argument
39 return (syscall(SYS_fstatat64, fd, name, sb, flags));
44 stat64(const char *name, struct stat64 *sb) argument
47 return (syscall(SYS_stat64, name, sb));
49 return (fstatat64(AT_FDCWD, name, sb, 0));
55 lstat64(const char *name, struct stat64 *sb) argument
58 return (syscall(SYS_lstat64, name, sb));
60 return (fstatat64(AT_FDCWD, name, sb, AT_SYMLINK_NOFOLLOW));
66 fstat64(int fd, struct stat64 *sb) argument
69 return (syscall(SYS_fstat64, fd, sb));
79 fstatat(int fd, const char *name, struct stat *sb, int flags) argument
86 stat(const char *name, struct stat *sb) argument
97 lstat(const char *name, struct stat *sb) argument
108 fstat(int fd, struct stat *sb) argument
[all...]
/illumos-gate/usr/src/lib/libbc/inc/include/sys/
H A Dsocketvar.h109 #define sbspace(sb) \
110 (MIN((int)((sb)->sb_hiwat - (sb)->sb_cc),\
111 (int)((sb)->sb_mbmax - (sb)->sb_mbcnt)))
130 /* adjust counters in sb reflecting allocation of m */
131 #define sballoc(sb, m) { \
132 (sb)->sb_cc += (m)->m_len; \
133 (sb)->sb_mbcnt += MSIZE; \
135 (sb)
[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/cmd/pools/poold/com/sun/solaris/service/logging/
H A DSysloglikeFormatter.java121 StringBuffer sb = new StringBuffer();
127 sb.append(dateFormatter.format(date));
130 sb.append(" ");
131 sb.append(record.getSourceClassName());
134 sb.append(" ");
135 sb.append(record.getLoggerName());
141 sb.append(" ");
146 sb.append(loggerName);
151 sb.append(" ");
152 sb
[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
[all...]
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/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/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 Dstat.c137 #define FSTAT_BODY(fd, sb, statfn) \
146 error = statfn(fp->f_vnode, sb, 0, fp->f_cred); \
154 fstat(int fd, struct stat *sb) argument
156 FSTAT_BODY(fd, sb, cstat)
160 fstatat(int fd, char *name, struct stat *sb, int flags) argument
166 return (fstat(fd, sb));
173 return (cstatat(fd, name, sb, followflag, csflags));
177 stat(char *name, struct stat *sb) argument
179 return (fstatat(AT_FDCWD, name, sb, 0));
183 lstat(char *name, struct stat *sb) argument
197 struct stat sb; local
256 cstatat(int fd, char *name, struct stat *sb, int follow, int flags) argument
289 fstat32(int fd, struct stat32 *sb) argument
295 fstatat32(int fd, char *name, struct stat32 *sb, int flags) argument
312 stat32(char *name, struct stat32 *sb) argument
318 lstat32(char *name, struct stat32 *sb) argument
327 struct stat32 sb; local
379 cstatat32(int fd, char *name, struct stat32 *sb, int follow, int flags) argument
416 fstat64(int fd, struct stat64 *sb) argument
422 fstatat64(int fd, char *name, struct stat64 *sb, int flags) argument
439 stat64(char *name, struct stat64 *sb) argument
445 lstat64(char *name, struct stat64 *sb) argument
487 cstatat64(int fd, char *name, struct stat64 *sb, int follow, int flags) argument
527 fstat64_32(int fd, struct stat64_32 *sb) argument
533 fstatat64_32(int fd, char *name, struct stat64_32 *sb, int flags) argument
550 stat64_32(char *name, struct stat64_32 *sb) argument
556 lstat64_32(char *name, struct stat64_32 *sb) argument
606 cstatat64_32(int fd, char *name, struct stat64_32 *sb, int follow, int flags) argument
[all...]
/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/lib/libbc/libc/gen/common/
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...]
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;
/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/libldap5/sources/ldap/ber/
H A Dio.c61 #define bergetc( sb, len ) ( sb->sb_ber.ber_end > sb->sb_ber.ber_ptr ? \
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_WRITE )
83 # define BerWrite( sb, b, l ) write( sb->sb_sd, b, l )
84 # define udp_read( sb,
124 ber_filbuf( Sockbuf *sb, ber_slen_t len ) argument
182 BerRead( Sockbuf *sb, char *buf, ber_slen_t len ) argument
337 ber_flush( Sockbuf *sb, BerElement *ber, int freeit ) argument
593 ber_get_next( Sockbuf *sb, ber_len_t *len, BerElement *ber ) argument
862 ber_sockbuf_set_option( Sockbuf *sb, int option, void *value ) argument
922 ber_sockbuf_get_option( Sockbuf *sb, int option, void *value ) argument
1107 byte_buffer sb = {0}; local
1358 Sockbuf *sb = (Sockbuf *)arg; local
1368 Sockbuf *sb = (Sockbuf *)arg; local
[all...]
/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/lib/libldap5/sources/ldap/common/
H A Dsasl.c53 static int nsldapi_sasl_close( LDAP *ld, Sockbuf *sb );
54 static void destroy_sasliobuf(Sockbuf *sb);
148 Sockbuf *sb = (Sockbuf *)arg; local
155 if (sb == NULL) {
159 ld = (LDAP *)sb->sb_sasl_prld;
165 if ((ret = sb->sb_sasl_ilen) > 0) {
167 SAFEMEMCPY( buf, sb->sb_sasl_iptr, ret );
168 if (ret == sb->sb_sasl_ilen) {
169 sb->sb_sasl_ilen = 0;
170 sb
266 Sockbuf *sb = (Sockbuf *)arg; local
318 Sockbuf *sb = (Sockbuf *)arg; local
351 Sockbuf *sb = (Sockbuf *)arg; local
365 Sockbuf *sb = (Sockbuf *)arg; local
378 Sockbuf *sb = (Sockbuf *)arg; local
406 nsldapi_sasl_install( LDAP *ld, Sockbuf *sb, void *ctx_arg, sasl_ssf_t *ssf) argument
571 Sockbuf *sb; local
622 destroy_sasliobuf(Sockbuf *sb) argument
[all...]
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/
H A DSLPTokenizer.java178 StringBuffer sb = new StringBuffer();
187 sb.append(str.charAt(index));
189 return sb.toString();
198 return sb.toString();
202 sb.append(c);
208 return sb.toString();
219 if (sb.length() != 0) {
222 return sb.toString();
228 sb.append(c);
233 if (sb
[all...]
/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/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/stand/lib/fs/common/
H A Dfsswitch.c161 fstat(int fd, struct stat *sb) argument
173 sb->st_dev = buf.st_dev;
174 sb->st_ino = buf.st_ino;
175 sb->st_mode = buf.st_mode;
176 sb->st_nlink = buf.st_nlink;
177 sb->st_uid = buf.st_uid;
178 sb->st_gid = buf.st_gid;
179 sb->st_rdev = buf.st_rdev;
180 sb->st_size = (off_t)buf.st_size;
181 sb
195 stat(const char *filename, struct stat *sb) argument
[all...]
/illumos-gate/usr/src/cmd/pools/poold/com/sun/solaris/domain/pools/
H A DDecisionHistory.java375 StringBuffer sb = new StringBuffer();
377 sb.append(cpuid);
378 sb.append(", ");
379 sb.append(fromPsetName);
380 sb.append(", ");
381 sb.append(toPsetName);
383 return (sb.toString());
440 StringBuffer sb = new StringBuffer();
442 sb.append(cpuid.toString());
443 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 426 milliseconds

12345678910