Searched defs:stb (Results 1 - 25 of 45) sorted by relevance

12

/illumos-gate/usr/src/ucbcmd/biff/
H A Dbiff.c58 struct stat stb; local
75 if (stat(cp, &stb) < 0)
79 stb.st_mode&0100 ? gettext("y") : gettext("n"));
80 exit((stb.st_mode&0100) ? 0 : 1);
85 if (chmod(cp, stb.st_mode|0100) < 0)
90 if (chmod(cp, stb.st_mode&~0100) < 0)
97 return ((stb.st_mode&0100) ? 0 : 1);
/illumos-gate/usr/src/ucbcmd/ln/
H A Dln.c27 struct stat stb; variable in typeref:struct:stat
58 if (stat(argv[argc-1], &stb) < 0)
60 if ((stb.st_mode&S_IFMT) != S_IFDIR)
84 if (sflag == 0 && fflag == 0 && stat(from, &stb) >= 0 &&
85 (stb.st_mode&S_IFMT) == S_IFDIR) {
89 if (stat(to, &stb) >= 0 && (stb.st_mode&S_IFMT) == S_IFDIR) {
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dscandir.c44 struct stat stb; local
50 if (fstat(dirp->dd_fd, &stb) < 0)
57 arraysz = (stb.st_size / 24);
81 if (fstat(dirp->dd_fd, &stb) < 0)
83 arraysz = stb.st_size / 12;
/illumos-gate/usr/src/ucblib/libucb/port/gen/
H A Dscandir.c79 struct stat64 stb; local
85 if (fstat64(dirp->dd_fd, &stb) < 0)
92 arraysz = (stb.st_size / 24);
118 if (fstat64(dirp->dd_fd, &stb) < 0)
120 arraysz = stb.st_size / 12;
146 struct stat64 stb; local
152 if (fstat64(dirp->dd_fd, &stb) < 0)
158 if (stb.st_size > SSIZE_MAX) {
162 arraysz = (stb.st_size / 24);
188 if (fstat64(dirp->dd_fd, &stb) <
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dscandir.c81 struct stat64 stb; local
87 if (fstat64(dirp->dd_fd, &stb) < 0)
94 tmp_arraysz = stb.st_size / 24; /* 24 bytes on a 64-bit system */
166 struct stat64 stb; local
172 if (fstat64(dirp->dd_fd, &stb) < 0)
179 tmp_arraysz = stb.st_size / 24; /* 24 bytes on a 64-bit system */
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dopen.c114 struct stat64 fsb, stb; local
129 if (stat64(buf, &stb) == 0)
130 rval = (stb.st_rdev == fsb.st_rdev);
/illumos-gate/usr/src/lib/libsocket/inet/
H A Druserpass.c155 struct stat64 stb; local
195 if (fstat64(fileno(d->cfile), &stb) >= 0 &&
196 (stb.st_mode & 077) != 0) {
/illumos-gate/usr/src/lib/libbc/libc/net/
H A Druserpass.c132 struct stat stb; local
170 if (fstat(fileno(d->cfile), &stb) >= 0
171 && (stb.st_mode & 077) != 0) {
/illumos-gate/usr/src/cmd/csh/
H A Dsh.sem.c515 struct stat stb; local
521 if (stat_(cp, &stb) < 0)
523 type = stb.st_mode & S_IFMT;
H A Dsh.exec.c367 struct stat stb; local
399 if (fstat(dirp->dd_fd, &stb) < 0 || !isdir(stb)) {
H A Dsh.exp.c514 struct stat stb; local
527 if ((**vp == NULL) || isa(**vp, ANYOP) && stat_(**vp, &stb))
549 if (stat_(ep, &stb)) {
556 i = (stb.st_mode & S_IFMT) == S_IFREG;
560 i = (stb.st_mode & S_IFMT) == S_IFDIR;
564 i = stb.st_size == 0;
572 i = stb.st_uid == uid;
/illumos-gate/usr/src/cmd/sendmail/libsmutil/
H A Dsafefile.c693 struct stat stb; local
722 sff, smode, &stb);
725 sff, smode, &stb);
731 if (stb.st_mode == ST_MODE_NOFILE && bitset(SFF_CREAT, sff))
749 if (filechanged(fn, fd, &stb))
856 ** stb -- stat structure from before open.
864 filechanged(fn, fd, stb)
867 struct stat *stb;
871 if (stb->st_mode == ST_MODE_NOFILE)
875 if (lstat(fn, stb) <
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Druserpass.c88 struct stat stb; local
137 if (fstat(fileno(cfile), &stb) >= 0 &&
138 (stb.st_mode & 077) != 0) {
155 if (fstat(fileno(cfile), &stb) >= 0 &&
156 (stb.st_mode & 077) != 0) {
/illumos-gate/usr/src/lib/libdscfg/common/
H A Dcfg_cluster.c445 struct stat stb; local
466 if (stat(pathname, &stb) < 0) {
471 conferr = scconf_get_ds_by_devt(major(stb.st_rdev),
472 minor(stb.st_rdev), &dsname);
/illumos-gate/usr/src/lib/librdc/common/
H A Drdcrules.c460 struct stat stb; local
474 if (stat(rdc->pfile, &stb) != 0) {
478 if (!S_ISCHR(stb.st_mode)) {
487 if (stat(rdc->sfile, &stb) != 0) {
492 if (!S_ISCHR(stb.st_mode)) {
/illumos-gate/usr/src/cmd/vi/port/
H A Dexpreserve.c360 struct stat stb; local
H A Dex_io.c536 struct stat64 stb; local
538 if (stat64((char *)cp, &stb) < 0)
540 return (IDENTICAL((*sp), stb));
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Ddocmd.c525 struct stat stb; local
534 if (stat(stamp, &stb) < 0) {
539 printf("%s: %d\n", stamp, stb.st_mtime);
542 lastmod = stb.st_mtime;
583 struct stat stb; local
606 if (access(name, 4) < 0 || stat(name, &stb) < 0) {
611 switch (stb.st_mode & S_IFMT) {
616 rcmptime(&stb);
624 if (stb.st_mtime > lastmod)
681 struct stat stb; local
[all...]
H A Dexpand.c256 struct stat stb; local
262 if (!expany || stat(path, &stb) >= 0) {
292 struct stat stb; local
302 if (fstat(dirp->dd_fd, &stb) < 0)
304 if (!ISDIR(stb.st_mode)) {
455 struct stat stb; local
522 if (stat(path, &stb) == 0 && ISDIR(stb.st_mode))
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.comsat.c287 struct stat stb, stl; local
296 if (stat(tty, &stb) == -1) {
300 if ((stb.st_mode & 0100) == 0) {
347 if (fstat(fd, &stb) != 0 || stb.st_uid != pwd->pw_uid) {
379 if (fstat(mbox, &stb) == -1 || lstat(name, &stl) == -1) {
389 stl.st_dev != stb.st_dev ||
390 stl.st_ino != stb.st_ino ||
392 stb.st_nlink != 1) {
397 timep[0] = stb
[all...]
/illumos-gate/usr/src/cmd/script/
H A Dscript.c263 struct stat stb; local
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dalias.c398 struct stat stb; local
456 if (stat(map->map_file, &stb) < 0)
463 mtime = stb.st_mtime;
475 if (stat(buf, &stb) < 0 || stb.st_mtime < mtime || attimeout)
527 struct stat stb; local
545 fstat(sm_io_getinfo(af, SM_IO_WHAT_FD, NULL), &stb) < 0 ||
546 bitset(S_IWUSR|S_IWGRP|S_IWOTH, stb.st_mode))
/illumos-gate/usr/src/cmd/avs/sv/
H A Dsvboot.c332 struct stat stb; local
337 if (stat(svn->svn_path, &stb) != 0) {
343 svc.svc_major = major(stb.st_rdev);
344 svc.svc_minor = minor(stb.st_rdev);
378 struct stat stb; local
405 if (stat(rdev, &stb) != 0) {
411 if (!S_ISCHR(stb.st_mode)) {
445 struct stat stb; local
448 if (stat(path, &stb) < 0) {
452 svc.svc_major = major(stb
[all...]
/illumos-gate/usr/src/ucbcmd/install.d/
H A Dinstall.c73 struct stat stb; local
142 if (stat(dirname, &stb) < 0) {
146 if ((stb.st_mode&S_IFMT) != S_IFDIR) {
150 mode = (mode & ~S_ISGID) | (stb.st_mode & S_ISGID);
176 if (stat(argv[argc-1], &stb) < 0)
178 if ((stb.st_mode&S_IFMT) != S_IFDIR)
/illumos-gate/usr/src/cmd/du/
H A Ddu.c282 struct stat stb, stb1; local
309 i = fstatat(curfd, curname, &stb, 0);
320 i = fstatat(curfd, curname, &stb, AT_SYMLINK_NOFOLLOW);
339 if (dflg && stb.st_dev != device) {
345 device = stb.st_dev;
360 if (Lflg || ((stb.st_mode & S_IFMT) == S_IFDIR) ||
361 (stb.st_nlink > 1)) {
363 if ((rc = add_tnode(&tree, stb.st_dev, stb.st_ino)) != 1) {
382 blocks = stb
[all...]

Completed in 129 milliseconds

12