/freebsd-9.3-release/lib/libmd/ |
H A D | mdXhl.c | 54 struct stat stbuf; local 62 if (fstat(f, &stbuf) < 0) 64 if (ofs > stbuf.st_size) 65 ofs = stbuf.st_size; 66 if ((len == 0) || (len > stbuf.st_size - ofs)) 67 len = stbuf.st_size - ofs;
|
/freebsd-9.3-release/sbin/mksnap_ffs/ |
H A D | mksnap_ffs.c | 68 struct stat stbuf; local 99 if (stat(path, &stbuf) < 0) 101 if (!S_ISDIR(stbuf.st_mode)) 105 if ((stbuf.st_mode & S_ISTXT) && stbuf.st_uid != getuid()) 132 if (fstat(fd, &stbuf) != 0) 134 if ((stbuf.st_flags & SF_SNAPSHOT) == 0)
|
/freebsd-9.3-release/contrib/sendmail/libsmutil/ |
H A D | safefile.c | 59 struct stat stbuf; local 205 if (stat(dir, &stbuf) >= 0) 210 if (stbuf.st_uid == uid) 213 else if (uid == 0 && stbuf.st_uid == TrustedUid) 219 if (stbuf.st_gid == gid) 225 gr->gr_gid == stbuf.st_gid) || 226 (gr = getgrgid(stbuf.st_gid)) != NULL)) 240 if ((stbuf.st_mode & md) != md) 247 dir, (int) stbuf.st_uid, 248 (unsigned long) stbuf 410 struct stat stbuf; local [all...] |
/freebsd-9.3-release/usr.sbin/makefs/ |
H A D | walk.c | 79 struct stat stbuf; local 124 if (lstat(path, &stbuf) == -1) 127 if (S_ISSOCK(stbuf.st_mode & S_IFMT)) { 147 S_ISDIR(stbuf.st_mode)) { 156 inode_type(stbuf.st_mode), path, 161 cur = create_fsnode(root, dir, name, &stbuf); 182 if (stbuf.st_nlink > 1) { 219 struct stat *stbuf) 229 cur->type = stbuf->st_mode & S_IFMT; 231 cur->inode->st = *stbuf; 218 create_fsnode(const char *root, const char *path, const char *name, struct stat *stbuf) argument 389 struct stat stbuf; local [all...] |
/freebsd-9.3-release/sbin/badsect/ |
H A D | badsect.c | 92 struct stat stbuf, devstat; local 100 if (chdir(argv[1]) < 0 || stat(".", &stbuf) < 0) 110 if (stbuf.st_dev == devstat.st_rdev && 117 (u_long)stbuf.st_rdev, argv[1]);
|
/freebsd-9.3-release/usr.sbin/lpr/common_source/ |
H A D | common.c | 124 struct stat stbuf; local 133 if (fstat(dirp->dd_fd, &stbuf) < 0) 141 arraysz = (stbuf.st_size / 24); 153 statres = stat(d->d_name, &stbuf); 164 q->job_time = stbuf.st_mtime; 333 struct stat stbuf; local 342 memset(&stbuf, 0, sizeof(stbuf)); 344 statres = stat(lfname, &stbuf); 356 chgbits = stbuf [all...] |
/freebsd-9.3-release/sbin/ldconfig/ |
H A D | elfhints.c | 61 struct stat stbuf; local 66 if (stat(name, &stbuf) == -1) { 70 if (stbuf.st_uid != 0) { 74 if ((stbuf.st_mode & S_IWOTH) != 0) { 78 if ((stbuf.st_mode & S_IWGRP) != 0) {
|
H A D | ldconfig.c | 184 struct stat stbuf; local 186 if (stat(argv[i], &stbuf) == -1) { 197 if (S_ISREG(stbuf.st_mode))
|
/freebsd-9.3-release/libexec/talkd/ |
H A D | announce.c | 77 struct stat stbuf; local 81 if (stat(full_tty, &stbuf) < 0 || (stbuf.st_mode&020) == 0)
|
/freebsd-9.3-release/usr.sbin/lpr/lpc/ |
H A D | cmds.c | 779 struct stat stbuf; local 791 res = lstat(name, &stbuf); 799 agemod = difftime(cln_now, stbuf.st_mtime); 800 agestat = difftime(cln_now, stbuf.st_ctime); 813 if (S_ISLNK(stbuf.st_mode)) { 828 cln_sizecnt += stbuf.st_size; 832 if (S_ISLNK(stbuf.st_mode)) { 857 if (S_ISLNK(stbuf.st_mode)) { 1042 struct stat stbuf; local 1050 if (stat(file, &stbuf) > 1128 struct stat stbuf; local [all...] |
/freebsd-9.3-release/cddl/contrib/opensolaris/cmd/sgs/tools/common/ |
H A D | sgsmsg.c | 537 char *stbuf; local 540 if ((stbuf = malloc(stbufsize)) == 0) { 544 (void) st_setstrbuf(stp, stbuf, stbufsize); 577 const char *stbuf; local 581 stbuf = st_getstrbuf(stp); 583 assert(stbuf); 604 (unsigned char)stbuf[ndx]) < 0) { 611 (unsigned char)stbuf[ndx]) < 0) { 627 if (fprintf(fddata, fmtstr, (unsigned char)stbuf[stbufsize - 1]) < 0) {
|
H A D | string_table.c | 660 st_setstrbuf(Str_tbl *stp, char *stbuf, size_t bufsize) argument 672 stp->st_strbuf = stbuf; 679 memset(stbuf, 0xff, bufsize); 680 stbuf[0] = '\0'; 682 memset(stbuf, 0x0, bufsize);
|
/freebsd-9.3-release/contrib/openbsm/libauditd/ |
H A D | auditd_lib.c | 418 struct stat stbuf; local 464 if (stat(pn, &stbuf) < 0 || !S_ISREG(stbuf.st_mode)) { 469 total_size += stbuf.st_size; 487 tstamp = stbuf.st_mtime; 501 tstamp = stbuf.st_mtime = current_time; 503 &stbuf.st_atimespec); 505 &stbuf.st_mtimespec); 519 new->at_size = stbuf.st_size;
|
/freebsd-9.3-release/libexec/tftpd/ |
H A D | tftpd.c | 680 struct stat stbuf; local 709 if (stat(filename, &stbuf) < 0) 711 if ((stbuf.st_mode & S_IFMT) != S_IFREG) 714 if ((stbuf.st_mode & S_IROTH) == 0) 717 if ((stbuf.st_mode & S_IWOTH) == 0) 741 if (stat(pathname, &stbuf) == 0 && 742 (stbuf.st_mode & S_IFMT) == S_IFREG) { 743 if ((stbuf.st_mode & S_IROTH) != 0) { 759 option_tsize(peer, NULL, mode, &stbuf);
|
H A D | tftp-options.c | 83 struct stat *stbuf) 91 "%ju", stbuf->st_size); 82 option_tsize(int peer __unused, struct tftphdr *tp __unused, int mode, struct stat *stbuf) argument
|
/freebsd-9.3-release/contrib/opie/ |
H A D | ftpcmd.y | 560 struct stat stbuf; 561 if (stat((char *) $4, &stbuf) < 0) 563 else if ((stbuf.st_mode&S_IFMT) != S_IFREG) { 569 t = gmtime(&stbuf.st_mtime); 1253 struct stat stbuf; 1254 if (stat(filename, &stbuf) < 0 || 1255 (stbuf.st_mode&S_IFMT) != S_IFREG) 1258 reply(213, "%lu", stbuf.st_size); 1264 struct stat stbuf; 1270 if (fstat(fileno(fin), &stbuf) < [all...] |
/freebsd-9.3-release/crypto/heimdal/appl/ftp/ftpd/ |
H A D | ftpcmd.y | 633 struct stat stbuf; 634 if (stat($3, &stbuf) < 0) 637 else if (!S_ISREG(stbuf.st_mode)) { 642 time_t mtime = stbuf.st_mtime; 1459 struct stat stbuf; 1460 if (stat(filename, &stbuf) < 0 || !S_ISREG(stbuf.st_mode)) 1463 reply(213, "%lu", (unsigned long)stbuf.st_size); 1470 struct stat stbuf; 1476 if (fstat(fileno(fin), &stbuf) < [all...] |
H A D | ftpcmd.c | 2413 struct stat stbuf; 2414 if (stat((yyvsp[(3) - (5)].s), &stbuf) < 0) 2417 else if (!S_ISREG(stbuf.st_mode)) { 2422 time_t mtime = stbuf.st_mtime; 3516 struct stat stbuf; 3517 if (stat(filename, &stbuf) < 0 || !S_ISREG(stbuf.st_mode)) 3520 reply(213, "%lu", (unsigned long)stbuf.st_size); 3527 struct stat stbuf; 3533 if (fstat(fileno(fin), &stbuf) < 2410 struct stat stbuf; local 3513 struct stat stbuf; local 3524 struct stat stbuf; local [all...] |
/freebsd-9.3-release/usr.bin/yacc/test/ |
H A D | ftp.tab.c | 884 struct stat stbuf; local 885 if (stat(filename, &stbuf) < 0 || 886 (stbuf.st_mode&S_IFMT) != S_IFREG) 889 reply(213, "%lu", stbuf.st_size); 894 struct stat stbuf; local 900 if (fstat(fileno(fin), &stbuf) < 0 || 901 (stbuf.st_mode&S_IFMT) != S_IFREG) { 1501 struct stat stbuf; local 1502 if (stat((char *) yyvsp[-1], &stbuf) < 0) 1504 else if ((stbuf [all...] |
H A D | ftp.y | 447 struct stat stbuf; 448 if (stat((char *) $4, &stbuf) < 0) 450 else if ((stbuf.st_mode&S_IFMT) != S_IFREG) { 456 t = gmtime(&stbuf.st_mtime); 1144 struct stat stbuf; 1145 if (stat(filename, &stbuf) < 0 || 1146 (stbuf.st_mode&S_IFMT) != S_IFREG) 1149 reply(213, "%lu", stbuf.st_size); 1154 struct stat stbuf; 1160 if (fstat(fileno(fin), &stbuf) < [all...] |
/freebsd-9.3-release/libexec/ftpd/ |
H A D | ftpcmd.y | 725 struct stat stbuf; 726 if (stat($4, &stbuf) < 0) 728 else if (!S_ISREG(stbuf.st_mode)) { 732 t = gmtime(&stbuf.st_mtime); 1589 struct stat stbuf; 1590 if (stat(filename, &stbuf) < 0) 1592 else if (!S_ISREG(stbuf.st_mode)) 1595 reply(213, "%jd", (intmax_t)stbuf.st_size); 1601 struct stat stbuf; 1607 if (fstat(fileno(fin), &stbuf) < [all...] |
/freebsd-9.3-release/sbin/camcontrol/ |
H A D | fwdownload.c | 168 struct stat stbuf; local 177 if (fstat(fd, &stbuf) < 0) { 181 if ((img_size = stbuf.st_size) == 0) {
|
/freebsd-9.3-release/contrib/lukemftpd/src/ |
H A D | cmds.c | 464 struct stat stbuf; local 465 if (stat(filename, &stbuf) < 0 || !S_ISREG(stbuf.st_mode)) 468 reply(213, ULLF, (ULLT)stbuf.st_size); 476 struct stat stbuf; local 482 if (fstat(fileno(fin), &stbuf) < 0 || !S_ISREG(stbuf.st_mode)) { 487 if (stbuf.st_size > 10240) {
|
/freebsd-9.3-release/contrib/tcp_wrappers/ |
H A D | scaffold.c | 254 struct stat stbuf; local 269 (void) check_path(buf[0] ? buf : "/", &stbuf);
|
/freebsd-9.3-release/usr.bin/vgrind/ |
H A D | vfontedpr.c | 136 struct stat stbuf; local 307 fstat(fileno(stdin), &stbuf); local 308 cp = ctime(&stbuf.st_mtime);
|