Searched refs:sb (Results 151 - 175 of 644) sorted by relevance

1234567891011>>

/freebsd-9.3-release/crypto/openssh/openbsd-compat/
H A Drealpath.c54 struct stat sb; local
138 if (lstat(resolved, &sb) != 0) {
145 if (S_ISLNK(sb.st_mode)) {
H A Dmktemp.c52 struct stat sb; local
78 if (lstat(path, &sb) != 0)
/freebsd-9.3-release/sys/kern/
H A Dkern_cons.c285 struct sbuf *sb; local
287 sb = sbuf_new(NULL, NULL, CNDEVPATHMAX * 2, SBUF_AUTOEXTEND);
288 if (sb == NULL)
290 sbuf_clear(sb);
292 sbuf_printf(sb, "%s,", cnd->cnd_cn->cn_name);
293 sbuf_printf(sb, "/");
297 sbuf_printf(sb, "%s,", cp->cn_name);
299 sbuf_finish(sb);
300 error = sysctl_handle_string(oidp, sbuf_data(sb), sbuf_len(sb), re
[all...]
/freebsd-9.3-release/usr.sbin/bsnmpd/modules/snmp_hostres/
H A Dhostres_swinstalled_tbl.c260 struct stat sb; local
281 strlen(boot) > 0 && stat(boot, &sb) == 0 &&
282 localtime_r(&sb.st_ctime, &k_ts) != NULL)
292 struct stat sb; local
304 if (stat(pkg_dir, &sb) != 0) {
309 if (!S_ISDIR(sb.st_mode)) {
314 if (sb.st_ctime <= os_pkg_last_change) {
338 if (stat(pkg_file, &sb) != 0 ) {
343 if (!S_ISREG(sb.st_mode)) {
355 if (stat(pkg_file, &sb)
[all...]
/freebsd-9.3-release/usr.sbin/pmcstat/
H A Dpmcpl_calltree.c69 ((a) < (b)->npmcs ? (b)->sb[a] : 0)
73 (PMCPL_CT_SAMPLE(a, b) * 100.0 / rsamples->sb[a])
77 unsigned *sb; /* Sample buffer for 0..npmcs. */ member in struct:pmcpl_ct_sample
165 samples->sb = NULL;
177 free(samples->sb);
178 samples->sb = NULL;
196 samples->sb = realloc(samples->sb, npmcs * sizeof(unsigned));
197 if (samples->sb == NULL)
199 bzero((char *)samples->sb
[all...]
/freebsd-9.3-release/sys/dev/cxgbe/
H A Dt4_main.c4732 struct sbuf sb; local
4734 sbuf_new(&sb, NULL, 32, SBUF_AUTOEXTEND);
4736 sbuf_printf(&sb, "%d ", *i);
4737 sbuf_trim(&sb);
4738 sbuf_finish(&sb);
4739 rc = sysctl_handle_string(oidp, sbuf_data(&sb), sbuf_len(&sb), req);
4740 sbuf_delete(&sb);
4748 struct sbuf *sb; local
4754 sb
4991 struct sbuf *sb; local
5035 struct sbuf *sb; local
5092 struct sbuf *sb; local
5154 struct sbuf *sb; local
5198 struct sbuf *sb; local
5239 struct sbuf *sb; local
5298 struct sbuf *sb; local
5329 struct sbuf *sb; local
5395 struct sbuf *sb; local
5478 struct sbuf *sb; local
5516 struct sbuf *sb; local
5566 struct sbuf *sb; local
5615 struct sbuf *sb; local
5655 mem_region_show(struct sbuf *sb, const char *name, unsigned int from, unsigned int to) argument
5672 struct sbuf *sb; local
5901 struct sbuf *sb; local
5991 struct sbuf *sb; local
6020 struct sbuf *sb; local
6061 struct sbuf *sb; local
6087 struct sbuf *sb; local
6121 struct sbuf *sb; local
6186 struct sbuf *sb; local
6242 field_desc_show(struct sbuf *sb, uint64_t v, const struct field_desc *f) argument
6397 tp_la_show(struct sbuf *sb, uint64_t *p, int idx) argument
6404 tp_la_show2(struct sbuf *sb, uint64_t *p, int idx) argument
6415 tp_la_show3(struct sbuf *sb, uint64_t *p, int idx) argument
6429 struct sbuf *sb; local
6475 struct sbuf *sb; local
6505 struct sbuf *sb; local
6540 struct sbuf *sb; local
[all...]
/freebsd-9.3-release/lib/libufs/
H A Dsblock.c55 int sb, superblock; local
64 for (sb = 0; (superblock = superblocks[sb]) != -1; sb++) {
111 ERROR(disk, "Failed to read sb summary information");
155 ERROR(disk, "Failed to write sb summary information");
/freebsd-9.3-release/tools/regression/fifo/fifo_create/
H A Dfifo_create.c210 struct stat sb; local
236 if (stat(path, &sb) < 0) {
244 if (sb.st_mode != ptp->pt_mode) {
248 ptp->pt_reqmode, ptp->pt_mode, sb.st_mode);
/freebsd-9.3-release/tools/regression/security/cap_test/
H A Dcap_test_capmode.c69 struct stat sb; local
101 CHECK_CAPMODE(lstat, "/tmp/cap_capmode_lstat", &sb);
107 CHECK_CAPMODE(stat, "/tmp/cap_capmode_stat", &sb);
119 CHECK_SYSCALL_SUCCEEDS(fstat, fd_file, &sb);
/freebsd-9.3-release/tools/tools/bootparttest/
H A Dbootparttest.c137 struct stat sb; local
144 if (stat(d.name, &sb) == 0 && S_ISREG(sb.st_mode)) {
148 d.mediasize = sb.st_size;
/freebsd-9.3-release/usr.bin/ktrace/
H A Dktrace.c76 struct stat sb; local
152 if (fstat(fd, &sb) != 0 || sb.st_uid != getuid())
155 if (!(S_ISREG(sb.st_mode)))
/freebsd-9.3-release/usr.bin/ktrdump/
H A Dktrdump.c89 struct stat sb; local
168 if (fstat(in, &sb) == -1)
170 entries = sb.st_size / sizeof(*buf);
172 buf = mmap(NULL, sb.st_size, PROT_READ, MAP_SHARED, in, 0);
/freebsd-9.3-release/usr.sbin/uathload/
H A Duathload.c116 struct stat sb; local
148 if (fstat(fw, &sb) < 0)
150 txdata = mmap(NULL, sb.st_size, PROT_READ, MAP_PRIVATE, fw, 0);
153 len = sb.st_size;
/freebsd-9.3-release/contrib/ntp/sntp/libopts/
H A Dtext_mmap.c209 struct stat sb; local
210 if (fstat(mapinfo->txt_fd, &sb) != 0) {
216 if (! S_ISREG(sb.st_mode)) {
222 mapinfo->txt_size = (size_t)sb.st_size;
/freebsd-9.3-release/usr.sbin/config/
H A Dmain.c418 configfile_dynamic(struct sbuf *sb) argument
428 sbuf_printf(sb, "options\t%s%s", OPT_AUTOGEN, lend);
429 sbuf_printf(sb, "ident\t%s%s", ident, lend);
430 sbuf_printf(sb, "machine\t%s%s", machinename, lend);
432 sbuf_printf(sb, "cpu\t%s%s", cput->cpu_name, lend);
434 sbuf_printf(sb, "makeoptions\t%s=%s%s", ol->op_name,
439 sbuf_printf(sb, "options\t%s", ol->op_name);
441 sbuf_putc(sb, '=');
444 sbuf_printf(sb, "\\%c",
447 sbuf_printf(sb, "
467 configfile_filebased(struct sbuf *sb) argument
500 struct sbuf *sb; local
[all...]
/freebsd-9.3-release/contrib/nvi/ex/
H A Dex_mkexrc.c44 struct stat sb; local
61 if (!FL_ISSET(cmdp->iflags, E_C_FORCE) && !stat(fname, &sb)) {
/freebsd-9.3-release/lib/libc/gen/
H A Dsem_new.c144 struct stat sb; local
179 if (fd == -1 || _fstat(fd, &sb) == -1)
182 O_EXCL) || ni->dev != sb.st_dev ||
183 ni->ino != sb.st_ino) {
208 if (fd == -1 || _fstat(fd, &sb) == -1)
211 if (sb.st_size < sizeof(sem_t)) {
236 ni->dev = sb.st_dev;
237 ni->ino = sb.st_ino;
H A Dpututxline.c47 struct stat sb; local
55 if (_fstat(fd, &sb) != -1 && sb.st_size % sizeof(struct futx) != 0) {
219 struct stat sb; local
231 if (_fstat(fd, &sb) != -1 && sb.st_size % sizeof(struct futx) != 0)
/freebsd-9.3-release/sys/boot/arm/at91/boot0/
H A Dlinker.cfg63 *(.gnu.linkonce.sb.*)
/freebsd-9.3-release/contrib/cvs/src/
H A Dignore.c374 struct stat sb; local
449 CVS_LSTAT (file, &sb) != -1)
455 || (dp->d_type == DT_UNKNOWN && S_ISDIR (sb.st_mode))
457 S_ISDIR (sb.st_mode)
479 || (dp->d_type == DT_UNKNOWN && S_ISLNK(sb.st_mode))
481 S_ISLNK (sb.st_mode)
/freebsd-9.3-release/contrib/sendmail/mail.local/
H A Dmail.local.c988 struct stat sb; local
1136 if (lstat(path, &sb) < 0)
1152 if (lstat(path, &sb) < 0)
1184 sb.st_uid = user.mbdb_uid;
1189 else if (sb.st_nlink != 1)
1194 else if (!S_ISREG(sb.st_mode))
1199 else if (sb.st_uid != user.mbdb_uid)
1203 path, (int) sb.st_uid);
1226 sb.st_nlink != 1 ||
1228 sb
[all...]
/freebsd-9.3-release/sys/compat/linsysfs/
H A Dlinsysfs.c103 sbuf_printf(sb, "unknown\n");
108 sbuf_printf(sb, "%s\n", scsi_host->name);
112 sbuf_printf(sb, "unknown\n");
128 sbuf_printf(sb, "unknown\n");
133 sbuf_printf(sb, "../../../devices%s", scsi_host->path);
137 sbuf_printf(sb, "unknown\n");
/freebsd-9.3-release/usr.bin/look/
H A Dlook.c93 struct stat sb; local
135 if ((fd = open(file, O_RDONLY, 0)) < 0 || fstat(fd, &sb))
137 if (sb.st_size > SIZE_T_MAX)
139 if (sb.st_size == 0) {
143 if ((front = mmap(NULL, (size_t)sb.st_size, PROT_READ, MAP_SHARED, fd, (off_t)0)) == MAP_FAILED)
145 back = front + sb.st_size;
/freebsd-9.3-release/usr.bin/who/
H A Dwho.c158 struct stat sb; local
171 if (stat(tty, &sb) == 0) {
172 state = sb.st_mode & (S_IWOTH|S_IWGRP) ?
174 idle = time(NULL) - sb.st_mtime;
203 struct stat sb; local
207 if (stat(ttybuf, &sb) == 0) {
/freebsd-9.3-release/usr.sbin/makefs/
H A Dmakefs.c86 struct stat sb; local
267 sb.st_mode = S_IFREG;
269 if (stat(argv[1], &sb) == -1)
273 switch (sb.st_mode & S_IFMT) {
293 if (stat(argv[i], &sb) == -1)
295 if (!S_ISDIR(sb.st_mode))

Completed in 404 milliseconds

1234567891011>>