Home
last modified time | relevance | path

Searched refs:sbuf (Results 1 – 25 of 53) sorted by relevance

123

/original-bsd/old/catman/
H A Dcatman.c123 struct stat sbuf; local
133 if (stat(cat, &sbuf) < 0) {
148 (void) stat(cat, &sbuf);
156 if ((sbuf.st_mode & S_IFMT) != S_IFDIR) {
208 if (stat(cat, &sbuf) >= 0) {
209 time = sbuf.st_mtime;
210 (void) stat(man, &sbuf);
211 if (time >= sbuf.st_mtime)
219 if (stat(lncat+3, &sbuf) >= 0 &&
220 (((sbuf.st_mode&S_IFMT)==S_IFREG) ||
[all …]
/original-bsd/old/sdb/
H A Dsymt.c107 sbuf.fd = txtmap.ufd; in initfp()
111 blseek(&sbuf,ststart,0); in initfp()
308 blseek(&sbuf, offset, 0);
367 blseek(&sbuf, offset, 0);
379 bread(&sbuf, &stentry+1,
418 blseek(&sbuf, filestart, 0);
528 blseek(&sbuf, offset, 0);
668 blseek(&sbuf, offset, 0);
761 blseek(&sbuf, extstart, 0);
826 blseek(&sbuf, offset, 0);
[all …]
/original-bsd/games/sail/
H A Dlo_main.c31 char sbuf[32]; in lo_main() local
54 (void) sprintf(sbuf, "%10.10s (%s)", in lo_main()
57 (void) sprintf(sbuf, "%20.20s", log.l_name); in lo_main()
60 title[n++], sbuf, ship->shipname, log.l_netpoints, in lo_main()
/original-bsd/lib/libc/stdio/
H A Dmktemp.c43 struct stat sbuf; local
62 if (stat(path, &sbuf))
64 if (!S_ISDIR(sbuf.st_mode)) {
81 else if (stat(path, &sbuf))
/original-bsd/games/rogue/
H A Dmachdep.c231 struct stat sbuf; local
233 if (stat(fname, &sbuf)) {
236 return((int) sbuf.st_ino);
251 struct stat sbuf; local
253 stat(fname, &sbuf);
254 return((int) sbuf.st_nlink);
308 struct stat sbuf; local
312 stat(fname, &sbuf);
313 seconds = (long) sbuf.st_mtime;
/original-bsd/games/phantasia/
H A Dgamesupport.c551 struct scoreboard sbuf; /* for reading entries */ in scorelist() local
556 while (fread((char *) &sbuf, SZ_SCORESTRUCT, 1, fp) == 1) in scorelist()
558 sbuf.sb_name, sbuf.sb_login, sbuf.sb_level, sbuf.sb_type); in scorelist()
688 while (fread((char *) &sbuf, SZ_SCORESTRUCT, 1, fp) == 1) in enterscore()
689 if (strcmp(Player.p_login, sbuf.sb_login) == 0) in enterscore()
709 if ((!found) || Player.p_level > sbuf.sb_level) in enterscore()
712 strcpy(sbuf.sb_login, Player.p_login); in enterscore()
713 strcpy(sbuf.sb_name, Player.p_name); in enterscore()
714 sbuf.sb_level = Player.p_level; in enterscore()
715 strcpy(sbuf.sb_type, descrtype(&Player, TRUE)); in enterscore()
[all …]
/original-bsd/usr.bin/uucp/port/LIBNDIR/
H A Dopendir.c16 struct stat sbuf; local
20 fstat(fd, &sbuf);
21 if (((sbuf.st_mode & S_IFDIR) == 0) ||
/original-bsd/usr.bin/uucp/libuu/
H A Dsetline.c34 static struct termio tbuf, sbuf; local
45 sbuf = tbuf;
53 ioctl(Ifn, TCSETAW, &sbuf);
H A Dlogent.c194 char nformat[BUFSIZ], sbuf[BUFSIZ]; local
221 sprintf(sbuf, nformat, p0, p1, p2, p3, p4);
222 mlogent(Ep, sbuf, "");
/original-bsd/games/hangman/
H A Dsetup.c21 static struct stat sbuf; in setup() local
44 fstat(fileno(Dict), &sbuf); in setup()
45 Dict_size = sbuf.st_size; in setup()
/original-bsd/usr.bin/mail/
H A Dlock.c39 struct stat sbuf; local
59 if (stat(curlock, &sbuf) < 0)
62 if (curtime < sbuf.st_ctime + 300) {
H A Dfio.c284 struct stat sbuf; local
286 if (fstat(fileno(iob), &sbuf) < 0)
288 return sbuf.st_size;
311 struct stat sbuf; local
384 if (index(xname, ' ') && stat(xname, &sbuf) < 0) {
/original-bsd/usr.bin/tip/
H A Dcu.c23 static char sbuf[12]; local
80 (void)sprintf(sbuf, "cu%d", BR);
81 if ((i = hunt(sbuf)) == 0) {
/original-bsd/old/pr/
H A Dpr.c172 struct stat sbuf; in fixtty() local
177 stat(tty, &sbuf); in fixtty()
178 mode = sbuf.st_mode&0777; in fixtty()
187 struct stat sbuf; local
227 stat(fp, &sbuf);
230 time(&sbuf.st_mtime);
234 cbuf = ctime(&sbuf.st_mtime);
/original-bsd/games/mille/
H A Dsave.c125 STAT sbuf; local
131 if (fstat(inf, &sbuf) < 0) { /* get file stats */
137 strcpy(buf, ctime(&sbuf.st_mtime));
/original-bsd/lib/libc/net/
H A Drcmd.c247 struct stat sbuf; local
288 if (lstat(pbuf, &sbuf) < 0)
290 else if (!S_ISREG(sbuf.st_mode))
292 else if (fstat(fileno(hostf), &sbuf) < 0)
294 else if (sbuf.st_uid && sbuf.st_uid != pwd->pw_uid)
296 else if (sbuf.st_mode & (S_IWGRP|S_IWOTH))
/original-bsd/old/rogue/
H A Dmachdep.c401 static struct stat sbuf; in lock_sc()
412 if (stat(Lockfile, &sbuf) < 0) { in lock_sc()
416 if (time(NULL) - sbuf.st_mtime > 10) { in lock_sc()
430 if (stat(Lockfile, &sbuf) < 0) { in lock_sc()
434 if (time(NULL) - sbuf.st_mtime > 10) in lock_sc()
/original-bsd/games/monop/
H A Dexecute.c207 STAT sbuf; local
214 if (fstat(inf, &sbuf) < 0) { /* get file stats */
223 brk(end = start + sbuf.st_size);
230 strcpy(buf, ctime(&sbuf.st_mtime));
/original-bsd/sys/hp300/dev/
H A Dac.c450 acconvert(sbuf, dbuf, ne) in acconvert() argument
451 char *sbuf, *dbuf; in acconvert()
462 hdr = (struct ac_restathdr *)&sbuf[0];
463 sbuf += sizeof *hdr;
477 phdr = (struct ac_restatphdr *)sbuf;
478 sbuf += sizeof *phdr;
482 dbp = (struct ac_restatdb *)sbuf;
483 sbuf += phdr->ac_bcount;
487 while (dbp < (struct ac_restatdb *)sbuf) {
/original-bsd/libexec/bugfiler/
H A Dgethead.c101 struct stat sbuf; /* existence check */ local
110 if (stat(dir, &sbuf) || (sbuf.st_mode & S_IFMT) != S_IFDIR)
/original-bsd/usr.bin/wall/
H A Dwall.c104 struct stat sbuf; local
161 if (fstat(fd, &sbuf)) {
165 mbufsize = sbuf.st_size;
/original-bsd/usr.bin/tn3270/distribution/utilities/srccmd/tar/
H A Dtarread.c145 struct stat sbuf; local
149 if(stat(fname, &sbuf)) {
152 } else if(!(sbuf.st_mode & S_IFDIR)) {
/original-bsd/usr.bin/uucp/uuq/
H A Duuq.c241 char sbuf[MAXNAMLEN+1], str[256], nbuf[256]; local
249 strncpy(sbuf, filename, MAXNAMLEN);
250 sbuf[MAXNAMLEN] = '\0';
251 jptr = sbuf + strlen(sbuf) - WSUFSIZE;
262 if ((sp = getsys(sbuf+2)) == NOSYS)
/original-bsd/old/configttys/
H A Dconfigttys.c493 static char sbuf[32]; local
500 strcpy(sbuf, sp->sp_name);
502 strcpy(sbuf, "-");
504 if (strlen(sbuf) < 8)
505 strcat(sbuf, "\t");
507 return (sbuf);
/original-bsd/bin/cat/
H A Dcat.c210 struct stat sbuf; local
214 if (fstat(wfd, &sbuf))
216 bsize = MAX(sbuf.st_blksize, 1024);

123