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

12345678910

/netbsd-current/external/gpl3/gdb.old/dist/gnulib/import/
H A Dlstat.c64 'lstat ("symlink/", sbuf)' just like 'lstat ("symlink/.", sbuf)',
73 rpl_lstat (const char *file, struct stat *sbuf) argument
75 int result = orig_lstat (file, sbuf);
84 if (S_ISDIR (sbuf->st_mode) || file[strlen (file) - 1] != '/')
85 result = stat_time_normalize (result, sbuf);
93 if (!S_ISLNK (sbuf->st_mode))
98 result = stat (file, sbuf);
H A Ddup.c60 struct stat sbuf; local
64 && !fstat (fd, &sbuf) && S_ISDIR (sbuf.st_mode))
/netbsd-current/external/gpl3/gdb/dist/gnulib/import/
H A Dlstat.c64 'lstat ("symlink/", sbuf)' just like 'lstat ("symlink/.", sbuf)',
73 rpl_lstat (const char *file, struct stat *sbuf) argument
75 int result = orig_lstat (file, sbuf);
84 if (S_ISDIR (sbuf->st_mode) || file[strlen (file) - 1] != '/')
85 result = stat_time_normalize (result, sbuf);
93 if (!S_ISLNK (sbuf->st_mode))
98 result = stat (file, sbuf);
H A Ddup.c64 struct stat sbuf; local
68 && !fstat (fd, &sbuf) && S_ISDIR (sbuf.st_mode))
/netbsd-current/sys/arch/vax/vax/
H A Dka670.c153 char sbuf[256]; local
162 snprintb(sbuf, sizeof(sbuf), KA670_PCSTS_BITS, mfpr(PR_PCSTS));
163 printf("primary cache status: %s\n", sbuf);
165 snprintb(sbuf, sizeof(sbuf), KA670_BCSTS_BITS, mfpr(PR_BCSTS));
166 printf("secondary cache status: %s\n", sbuf);
174 char sbuf[256]; local
188 snprintb(sbuf, sizeof(sbuf), KA670_PCSTS_BIT
[all...]
H A Dka43.c169 char sbuf[256]; local
178 snprintb(sbuf, sizeof(sbuf), KA43_PCSTS_BITS, mfpr(PR_PCSTS));
179 printf("primary cache status: %s\n", sbuf);
181 snprintb(sbuf, sizeof(sbuf), KA43_SESR_BITS, *ka43_creg);
182 printf("secondary cache status: %s\n", sbuf);
204 char sbuf[256]; local
216 snprintb(sbuf, sizeof(sbuf), KA43_PCSTS_BIT
[all...]
/netbsd-current/games/sail/
H A Dlo_main.c69 char sbuf[32]; local
104 snprintf(sbuf, sizeof(sbuf),
107 snprintf(sbuf, sizeof(sbuf),
112 title[n++], sbuf, ship->shipname, log.l_netpoints,
125 char sbuf[32]; local
146 snprintf(sbuf, sizeof(sbuf),
149 snprintf(sbuf, sizeo
[all...]
/netbsd-current/external/gpl2/xcvs/dist/lib/
H A Dlstat.c46 has the desired semantics (in treating `lstat("symlink/",sbuf)' just like
47 `lstat("symlink/.",sbuf)', but on Solaris it does not.
53 rpl_lstat (const char *file, struct stat *sbuf) argument
58 int lstat_result = lstat (file, sbuf);
60 if (lstat_result != 0 || !S_ISLNK (sbuf->st_mode))
76 lstat_result = lstat (new_file, sbuf);
/netbsd-current/external/gpl3/gcc/dist/libphobos/testsuite/libphobos.gc/
H A Dnocollect.d10 char[] sbuf = new char[256]; // small pool
/netbsd-current/external/bsd/ntp/dist/libntp/
H A Dfindconfig.c23 struct stat sbuf; local
28 if (stat(result, &sbuf) == 0) {
29 if (S_ISDIR(sbuf.st_mode)) {
34 if (stat(result, &sbuf) == 0) {
45 if (stat(result, &sbuf) == 0) {
51 if (stat(result, &sbuf) == 0) {
/netbsd-current/sys/compat/common/
H A Dvfs_syscalls_20.c90 struct statvfs *sbuf; local
101 sbuf = STATVFSBUF_GET();
102 if ((error = dostatvfs(mp, sbuf, l, 0, 1)) != 0)
105 error = statvfs_to_statfs12_copy(sbuf, SCARG(uap, buf), 0);
108 STATVFSBUF_PUT(sbuf);
125 struct statvfs *sbuf; local
132 sbuf = STATVFSBUF_GET();
133 if ((error = dostatvfs(mp, sbuf, l, 0, 1)) != 0)
135 error = statvfs_to_statfs12_copy(sbuf, SCARG(uap, buf), 0);
138 STATVFSBUF_PUT(sbuf);
166 struct statvfs *sbuf; local
[all...]
/netbsd-current/sys/miscfs/genfs/
H A Dlayer_vfsops.c163 struct statvfs *sbuf; local
166 sbuf = kmem_zalloc(sizeof(*sbuf), KM_SLEEP);
169 error = VFS_STATVFS(mp->mnt_lower, sbuf);
176 sbp->f_flag = sbuf->f_flag;
177 sbp->f_bsize = sbuf->f_bsize;
178 sbp->f_frsize = sbuf->f_frsize;
179 sbp->f_iosize = sbuf->f_iosize;
180 sbp->f_blocks = sbuf->f_blocks;
181 sbp->f_bfree = sbuf
[all...]
/netbsd-current/games/hangman/
H A Dsetup.c53 static struct stat sbuf; local
75 fstat(fileno(Dict), &sbuf); local
76 Dict_size = sbuf.st_size;
/netbsd-current/sys/arch/next68k/dev/
H A Dnextdma.c270 char sbuf[256]; local
272 snprintb(sbuf, sizeof(sbuf), NEXT_INTR_BITS,
275 NEXT_I_IPL(nsc->sc_chan->nd_intr), sbuf);
568 char sbuf[256]; local
570 snprintb(sbuf, sizeof(sbuf), NEXT_INTR_BITS,
573 NEXT_I_IPL(nsc->sc_chan->nd_intr), sbuf);
592 char sbuf[256]; local
594 snprintb(sbuf, sizeo
655 char sbuf[256]; local
680 char sbuf[256]; local
693 char sbuf[256]; local
726 char sbuf[256]; local
774 char sbuf[256]; local
811 char sbuf[256]; local
822 char sbuf[256]; local
866 char sbuf[256]; local
909 char sbuf[256]; local
1053 char sbuf[256]; local
1073 char sbuf[256]; local
[all...]
/netbsd-current/external/bsd/libbind/dist/bsd/
H A Dmktemp.c97 struct stat sbuf; local
116 if (stat(path, &sbuf))
118 if (!S_ISDIR(sbuf.st_mode)) {
135 else if (stat(path, &sbuf))
/netbsd-current/external/bsd/nvi/dist/clib/
H A Dmkstemp.c75 struct stat sbuf; local
94 if (stat(path, &sbuf))
96 if (!S_ISDIR(sbuf.st_mode)) {
113 else if (stat(path, &sbuf))
/netbsd-current/sys/arch/sparc64/sparc64/
H A Dprocfs_machdep.c18 procfs_getcpuinfstr(char *sbuf, size_t *len) argument
/netbsd-current/games/rogue/
H A Dmachdep.c192 struct stat sbuf; local
194 if (stat(fname, &sbuf)) {
197 return((int)sbuf.st_ino);
211 struct stat sbuf; local
213 stat(fname, &sbuf);
214 return((int)sbuf.st_nlink);
267 struct stat sbuf; local
271 stat(fname, &sbuf);
272 seconds = sbuf.st_mtime;
/netbsd-current/crypto/external/bsd/openssl/dist/test/
H A Dsha_test.c20 unsigned char buf[EVP_MAX_MD_SIZE], *sbuf; local
24 sbuf = (*md)(in, in_len, buf);
25 if (!TEST_ptr(sbuf)
26 || !TEST_ptr_eq(sbuf, buf)
27 || !TEST_mem_eq(sbuf, length, out, length))
29 sbuf = (*md)(in, in_len, NULL);
30 if (!TEST_ptr(sbuf)
31 || !TEST_ptr_ne(sbuf, buf)
32 || !TEST_mem_eq(sbuf, length, out, length))
/netbsd-current/sys/fs/union/
H A Dunion_vfsops.c439 struct statvfs *sbuf = kmem_zalloc(sizeof(*sbuf), KM_SLEEP); local
448 error = VFS_STATVFS(um->um_lowervp->v_mount, sbuf);
454 lbsize = sbuf->f_bsize;
455 sbp->f_blocks = sbuf->f_blocks - sbuf->f_bfree;
456 sbp->f_files = sbuf->f_files - sbuf->f_ffree;
458 error = VFS_STATVFS(um->um_uppervp->v_mount, sbuf);
462 sbp->f_flag = sbuf
[all...]
/netbsd-current/external/gpl3/gcc/dist/libphobos/libdruntime/gcc/
H A Dbacktrace.d541 char[MAX_BUFSIZE] sbuf = '\0';
549 result = formatLine(symbol, sbuf);
550 assert(result.length < MAX_BUFSIZE && result.ptr[result.length] == '\0' && sbuf[$-1] == '\0');
553 result = formatLine(symbol, sbuf);
554 assert(result.length < MAX_BUFSIZE && result.ptr[result.length] == '\0' && sbuf[$-1] == '\0');
557 result = formatLine(symbol, sbuf);
558 assert(result.length < MAX_BUFSIZE && result.ptr[result.length] == '\0' && sbuf[$-1] == '\0');
561 result = formatLine(symbol, sbuf);
562 assert(result.length < MAX_BUFSIZE && result.ptr[result.length] == '\0' && sbuf[$-1] == '\0');
565 result = formatLine(symbol, sbuf);
[all...]
/netbsd-current/lib/libc/stdio/
H A Dgettemp.c58 struct stat sbuf; local
104 rval = stat(path, &sbuf);
108 if (!S_ISDIR(sbuf.st_mode)) {
129 } else if (lstat(path, &sbuf))
/netbsd-current/usr.sbin/rpcbind/
H A Dwarmstart.c105 struct stat sbuf; local
107 if (stat(filename, &sbuf) != 0) {
111 if ((sbuf.st_uid != 0) || (sbuf.st_mode & S_IRWXG) ||
112 (sbuf.st_mode & S_IRWXO)) {
/netbsd-current/usr.sbin/fssconfig/
H A Dfssconfig.c117 struct stat sbuf; local
130 prog_stat(argv[1], &sbuf) != 0)
132 mountdev = sbuf.st_dev;
133 if (stat(argv[2], &sbuf) == 0) {
134 if (S_ISREG(sbuf.st_mode) && sbuf.st_dev == mountdev) {
135 if ((sbuf.st_flags & SF_SNAPSHOT) == 0)
143 } else if (S_ISDIR(sbuf.st_mode)) {
173 if (prog_fstat(fd, &sbuf) < 0)
175 if (!ispersistent && sbuf
[all...]
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/roken/
H A Diruserok.c223 struct stat sbuf; local
264 if (lstat(pbuf, &sbuf) < 0)
266 else if (!S_ISREG(sbuf.st_mode))
268 else if (fstat(fileno(hostf), &sbuf) < 0)
270 else if (sbuf.st_uid && sbuf.st_uid != pwd->pw_uid)
272 else if (sbuf.st_mode & (S_IWGRP|S_IWOTH))

Completed in 395 milliseconds

12345678910