Searched refs:sbuf (Results 1 - 25 of 156) sorted by relevance

1234567

/illumos-gate/usr/src/lib/libmail/common/
H A Dmaillock.c63 struct stat sbuf; local
86 if (stat(curlock, &sbuf) < 0) {
102 if (t < sbuf.st_ctime + 300) {
131 struct stat sbuf; local
136 (void) fstat(fd, &sbuf);
149 return (sbuf.st_ctime);
162 struct stat sbuf; local
174 if (stat(curlock, &sbuf) < 0)
181 tp.actime = sbuf.st_atime;
182 tp.modtime = sbuf
[all...]
/illumos-gate/usr/src/uts/common/inet/kifconf/
H A Dkifconf.c69 struct netbuf sbuf; local
84 sbuf.buf = (caddr_t)&sin;
85 sbuf.maxlen = sbuf.len = sizeof (sin);
91 sbuf.buf = (caddr_t)&sin6;
92 sbuf.maxlen = sbuf.len = sizeof (sin6);
94 if (rc = kifioctl(tiptr, SIOCSLIFNETMASK, &sbuf, ifname)) {
103 sbuf.buf = (caddr_t)&sin;
104 sbuf
[all...]
/illumos-gate/usr/src/cmd/man/
H A Dmakewhatis.c61 struct sbuf { struct
67 /* Remove the last amount characters from the sbuf */
68 #define sbuf_retract(sbuf, amount) ((sbuf)->end -= (amount))
69 /* Return the length of the sbuf content */
70 #define sbuf_length(sbuf) ((sbuf)->end - (sbuf)->content)
79 static struct sbuf *whatis_proto;
80 static struct sbuf *whatis_fina
147 sbuf_clear(struct sbuf *sbuf) argument
159 struct sbuf *sbuf; local
176 sbuf_need(struct sbuf *sbuf, int nchars) argument
208 sbuf_append(struct sbuf *sbuf, const char *text, int length) argument
221 sbuf_append_str(struct sbuf *sbuf, char *text) argument
231 sbuf_append_edited(struct sbuf *sbuf, char *text, edited_copy copy) argument
245 sbuf_strip(struct sbuf *sbuf, const char *set) argument
256 sbuf_content(struct sbuf *sbuf) argument
[all...]
/illumos-gate/usr/src/cmd/oamuser/group/
H A Ddel_group.c57 struct stat sbuf; local
64 if (fstat(fileno(e_fptr), &sbuf) != 0)
80 if (fchmod(fd, sbuf.st_mode) != 0 ||
81 fchown(fd, sbuf.st_uid, sbuf.st_gid) != 0) {
H A Dmod_group.c57 struct stat sbuf; local
64 if (fstat(fileno(e_fptr), &sbuf) != 0)
80 if (fchmod(fd, sbuf.st_mode) != 0 ||
81 fchown(fd, sbuf.st_uid, sbuf.st_gid) != 0) {
/illumos-gate/usr/src/cmd/svc/startd/
H A Dfile.c55 struct stat sbuf; local
82 r = stat(fn, &sbuf);
/illumos-gate/usr/src/uts/intel/io/intel_nhm/
H A Ddimm_topo.c141 char sbuf[65]; local
147 (void) snprintf(sbuf, sizeof (sbuf), "%dG",
150 (void) snprintf(sbuf, sizeof (sbuf), "%dM",
153 (void) nvlist_add_string(newdimm, "dimm-size", sbuf);
165 (void) strncpy(sbuf, nhm_dimm->manufacturer, t);
166 sbuf[t] = 0;
167 (void) nvlist_add_string(newdimm, "manufacturer", sbuf);
171 (void) strncpy(sbuf, nhm_dim
[all...]
/illumos-gate/usr/src/lib/libresolv2/common/bsd/
H A Dmktemp.c90 struct stat sbuf; local
109 if (stat(path, &sbuf))
111 if (!S_ISDIR(sbuf.st_mode)) {
128 else if (stat(path, &sbuf))
/illumos-gate/usr/src/test/zfs-tests/cmd/mkbusy/
H A Dmkbusy.c71 struct stat sbuf; local
96 if ((ret = stat(argv[0], &sbuf)) != 0) {
130 if ((ret = stat(dname, &sbuf)) != 0 || !(sbuf.st_mode &
143 } else if ((sbuf.st_mode & S_IFMT) == S_IFREG ||
144 (sbuf.st_mode & S_IFMT) == S_IFLNK ||
145 (sbuf.st_mode & S_IFMT) == S_IFCHR ||
146 (sbuf.st_mode & S_IFMT) == S_IFBLK) {
148 } else if ((sbuf.st_mode & S_IFMT) == S_IFDIR) {
/illumos-gate/usr/src/cmd/sendmail/libsmutil/
H A Dcf.c56 struct stat sbuf; local
68 if (cftype == SM_GET_SUBMIT_CF || stat(cf, &sbuf) == 0)
/illumos-gate/usr/src/boot/sys/sys/
H A Duuid.h57 struct sbuf;
66 int sbuf_printf_uuid(struct sbuf *, struct uuid *);
/illumos-gate/usr/src/cmd/tip/
H A Dcu.c26 static char sbuf[14]; local
92 (void) snprintf(sbuf, sizeof (sbuf), "cu%d", BR);
93 if ((i = hunt(sbuf)) == 0) {
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dfdopendir.c56 struct stat64 sbuf; local
66 if (fstat64(fd, &sbuf) < 0)
68 if ((sbuf.st_mode & S_IFMT) != S_IFDIR) {
/illumos-gate/usr/src/cmd/mesg/
H A Dmesg.c65 struct stat sbuf; local
83 if (stat(tty, &sbuf) < 0)
87 if (sbuf.st_mode & (S_IWGRP | S_IWOTH)) {
/illumos-gate/usr/src/cmd/listen/
H A Dnstoa.c77 char sbuf[SBUFSIZE]; variable
120 addr->len = dobase(++str, sbuf, HEX);
125 addr->len = dobase(++str, sbuf, OCT);
129 addr->len = dostring(str, sbuf, 0);
133 addr->len = dostring(--str, sbuf, quote);
142 addr->len = dostring(str, sbuf, quote);
150 if ((addr->buf = xfer(addr->buf, sbuf, addr->len, addr->maxlen)) == NULL)
340 sbuf[0] = '\\';
341 sbuf[1] = 'o';
343 return xfer(str, sbuf, o_ato
[all...]
/illumos-gate/usr/src/cmd/oamuser/user/
H A Dproj.c50 struct stat sbuf; local
61 if (fstat(fileno(e_fptr), &sbuf) != 0)
78 if (fchmod(fd, sbuf.st_mode) != 0 ||
79 fchown(fd, sbuf.st_uid, sbuf.st_gid) != 0) {
/illumos-gate/usr/src/ucbcmd/vipw/
H A Dvipw.c72 struct stat osbuf, sbuf, oshdbuf, shdbuf; local
95 if (stat(ptemp, &sbuf) < 0) {
102 o_mtime = sbuf.st_mtime;
127 if (((osbuf.st_gid != sbuf.st_gid) ||
128 (osbuf.st_uid != sbuf.st_uid)) &&
167 if (((osbuf.st_gid != sbuf.st_gid) ||
168 (osbuf.st_uid != sbuf.st_uid)) &&
263 struct stat sbuf, statbuf; local
271 if (stat(temp, &sbuf) < 0) {
277 *mtime = sbuf
[all...]
/illumos-gate/usr/src/lib/libnsl/dial/
H A Dstoa.c83 static char *sbuf; local
105 if (sbuf == NULL) {
106 sbuf = malloc(SBUFSIZE);
107 if (sbuf == NULL)
118 addr->len = dobase(++str, sbuf, HEX);
123 addr->len = dobase(++str, sbuf, OCT);
137 if ((addr->buf = xfer(addr->buf, sbuf, addr->len, addr->maxlen)) ==
/illumos-gate/usr/src/uts/intel/io/intel_nb5000/
H A Dintel_nbdrv.c163 char sbuf[65]; local
169 (void) snprintf(sbuf, sizeof (sbuf), "%dG",
172 (void) snprintf(sbuf, sizeof (sbuf), "%dM",
175 (void) nvlist_add_string(newdimm, "dimm-size", sbuf);
195 (void) snprintf(sbuf, sizeof (sbuf), "%04x%02x%02x%02x%08x",
201 (void) nvlist_add_string(newdimm, FM_FMRI_HC_SERIAL_ID, sbuf);
204 (void) strncpy(sbuf, nb_dim
[all...]
/illumos-gate/usr/src/lib/libsqlite/tool/
H A Dshowdb.c47 struct stat sbuf; local
57 fstat(db, &sbuf);
58 mxPage = sbuf.st_size/pagesize + 1;
/illumos-gate/usr/src/lib/libgen/common/
H A Dpathfind.c186 struct stat64 sbuf; local
191 if (stat64(name, &sbuf) == -1)
193 xor = (sbuf.st_mode ^ mode) & 077000; /* see mknod(2) */
200 if (nzflag && sbuf.st_size == 0)
/illumos-gate/usr/src/cmd/bhyve/
H A Dbootrom.c143 struct stat sbuf; local
156 if (fstat(fd, &sbuf) < 0) {
163 if (bootrom_alloc(ctx, sbuf.st_size, PROT_READ | PROT_EXEC,
168 for (i = 0; i < sbuf.st_size / PAGE_SIZE; i++) {
/illumos-gate/usr/src/common/devid/
H A Ddevid.c197 char *sbuf, *dsp, *dp, ta; local
202 if ((sbuf = DEVID_MALLOC(4)) == NULL)
204 *(sbuf+0) = DEVID_MAGIC_MSB;
205 *(sbuf+1) = DEVID_MAGIC_LSB;
206 *(sbuf+2) = '0';
207 *(sbuf+3) = 0;
208 return (sbuf);
243 if ((sbuf = DEVID_MALLOC(slen)) == NULL)
247 dsp = sbuf;
282 DEVID_ASSERT((strlen(sbuf)
[all...]
/illumos-gate/usr/src/cmd/news/
H A Dnews.c179 struct stat sbuf; local
194 if (nf->d_ino != (ino_t)0 && stat (fname, &sbuf) >= 0
195 && (sbuf.st_mode & S_IFMT) == S_IFREG) {
216 n_list[n_count-1].n_time = sbuf.st_mtime;
276 struct stat sbuf; local
279 fstat (fileno (fd), &sbuf); local
289 pw = getpwuid (sbuf.st_uid);
294 cftime(time_buf, DATE_FMT, &sbuf.st_mtime);
/illumos-gate/usr/src/cmd/script/
H A Dscript.c222 struct termios sbuf; local
224 sbuf = b;
225 sbuf.c_iflag &= ~(INLCR|IGNCR|ICRNL|IUCLC|IXON);
226 sbuf.c_oflag &= ~OPOST;
227 sbuf.c_lflag &= ~(ICANON|ISIG|ECHO);
228 sbuf.c_cc[VMIN] = 1;
229 sbuf.c_cc[VTIME] = 0;
230 (void) ioctl(0, TCSETSF, (char *)&sbuf);

Completed in 79 milliseconds

1234567