/illumos-gate/usr/src/lib/passwdutil/ |
H A D | files_attr.c | 903 struct stat64 stbuf; in files_update_shadow() local 914 if (stat64(SHADOW, &stbuf) < 0) { in files_update_shadow() 920 filemode = stbuf.st_mode & S_IRUSR; in files_update_shadow() 932 (void) fchown(tempfd, (uid_t)0, stbuf.st_gid); in files_update_shadow() 1009 struct stat64 stbuf; in files_update_passwd() local 1017 if (stat64(PASSWD, &stbuf) < 0) { in files_update_passwd()
|
/illumos-gate/usr/src/cmd/troff/nroff.d/ |
H A D | n10.c | 109 struct stat stbuf; in ptinit() local 118 fstat(fd, &stbuf); in ptinit() 119 codestr = setbrk((int) stbuf.st_size); in ptinit() 121 nread = read(fd, codestr, (int) stbuf.st_size); in ptinit()
|
/illumos-gate/usr/src/cmd/backup/restore/ |
H A D | tape.c | 188 struct stat stbuf; in setup() local 303 if (stat(".", &stbuf) < 0) { in setup() 307 if (stbuf.st_blksize >= tp_bsize && stbuf.st_blksize <= MAXBSIZE) { in setup() 309 fssize = stbuf.st_blksize; in setup() 392 struct stat stbuf; in setupR() local 394 if (stat(".", &stbuf) < 0) { in setupR() 398 if (stbuf.st_blksize >= tp_bsize && stbuf.st_blksize <= MAXBSIZE) { in setupR() 400 fssize = stbuf.st_blksize; in setupR()
|
H A D | symtab.c | 658 struct stat64 stbuf; in initsymtable() local 698 if (fstat64(fd, &stbuf) < 0) { in initsymtable() 708 if (stbuf.st_size < sizeof (hdr)) { in initsymtable() 714 tblsize = stbuf.st_size - sizeof (hdr); in initsymtable()
|
/illumos-gate/usr/src/cmd/luxadm/ |
H A D | lux_util.c | 1178 struct stat stbuf; in get_slash_devices_from_osDevName() local 1237 if (stat(source, &stbuf) == -1) { in get_slash_devices_from_osDevName() 1254 if (lstat(source, &stbuf) == -1) { in get_slash_devices_from_osDevName() 1269 if (lstat(source, &stbuf) == -1) { in get_slash_devices_from_osDevName() 1283 if (stat(source, &stbuf) == -1) { in get_slash_devices_from_osDevName() 1286 if (lstat(source, &stbuf) == -1) { in get_slash_devices_from_osDevName() 1303 if (!S_ISLNK(stbuf.st_mode)) { in get_slash_devices_from_osDevName()
|
/illumos-gate/usr/src/lib/storage/libg_fc/common/ |
H A D | map.c | 882 struct stat stbuf; in g_get_limited_map() local 899 if (stat(drvr_path, &stbuf) < 0) { in g_get_limited_map() 1136 struct stat stbuf; in g_get_dev_list() local 1163 if (stat(fcapath, &stbuf) < 0) { in g_get_dev_list() 1546 struct stat stbuf; in create_map() local 1623 if (stat(drvr_path, &stbuf) < 0) { in create_map() 2158 struct stat stbuf; in g_dev_map_init() local 3334 struct stat stbuf; in g_rdls() local 3406 if (stat(fp_path, &stbuf) < 0) { in g_rdls() 4569 struct stat stbuf; in g_get_nexus_path() local [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_rep.c | 228 struct stat stbuf; in update_fabric_wwn_list() local 266 if (fstat(fd, &stbuf) == -1) { in update_fabric_wwn_list() 272 filesize = size = stbuf.st_size; in update_fabric_wwn_list()
|
/illumos-gate/usr/src/cmd/format/ |
H A D | startup.c | 320 struct stat stbuf; in sup_init() local 383 if (stat(fname, &stbuf) == -1) { in sup_init() 387 if (S_ISDIR(stbuf.st_mode)) { in sup_init() 1612 struct stat stbuf; in add_device_to_disklist() local 1632 if (fstat(search_file, &stbuf) == -1 || !S_ISCHR(stbuf.st_mode)) { in add_device_to_disklist() 2736 struct stat stbuf; in get_physical_name() local 2771 if (stat(s, &stbuf) == -1) { in get_physical_name() 2774 if (lstat(s, &stbuf) == -1) { in get_physical_name() 2785 if (!S_ISLNK(stbuf.st_mode)) { in get_physical_name()
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | collect.c | 199 struct stat stbuf; local 222 if (dfd < 0 || fstat(dfd, &stbuf) < 0) 226 e->e_dfdev = stbuf.st_dev; 227 e->e_dfino = stbuf.st_ino;
|
/illumos-gate/usr/src/cmd/krb5/slave/ |
H A D | kprop.c | 553 struct stat stbuf, stbuf_ok; local 578 if (fstat(fd, &stbuf)) { 597 if (stbuf.st_mtime > stbuf_ok.st_mtime) { 602 *size = stbuf.st_size;
|
/illumos-gate/usr/src/cmd/w/ |
H A D | w.c | 642 struct stat stbuf; in findidle() local 648 if (stat(ttyname, &stbuf) != -1) { in findidle() 649 lastaction = stbuf.st_atime; in findidle()
|
/illumos-gate/usr/src/cmd/rmformat/ |
H A D | rmf_misc.c | 493 struct stat stbuf; in check_and_unmount_floppy() local 538 if (fstat(mfd, &stbuf) < 0 || !S_ISCHR(stbuf.st_mode)) { in check_and_unmount_floppy() 1874 struct stat stbuf; in get_physical_name() local 1909 if (stat(s, &stbuf) == -1) { in get_physical_name() 1912 if (lstat(s, &stbuf) == -1) { in get_physical_name() 1923 if (!S_ISLNK(stbuf.st_mode)) { in get_physical_name()
|
/illumos-gate/usr/src/cmd/fs.d/ |
H A D | mount.c | 230 struct stat64 stbuf; in main() local 477 if (stat64(mountp, &stbuf) == -1) { in main() 482 if (((mode = (stbuf.st_mode & S_IFMT)) == S_IFBLK) || in main() 1584 struct stat64 stbuf; in check_fields() local 1616 if (!aflg && stat64(mountp, &stbuf) < 0) { in check_fields()
|
/illumos-gate/usr/src/cmd/vgrind/ |
H A D | vfontedpr.c | 136 struct stat stbuf; in main() local 372 fstat(fileno(in), &stbuf); in main() 373 cp = ctime(&stbuf.st_mtime); in main()
|
/illumos-gate/usr/src/cmd/vi/port/ |
H A D | exrecover.c | 611 struct stat64 stbuf; in scrapbad() local 616 (void)fstat64(tfile, &stbuf); in scrapbad() 617 size = (off_t)stbuf.st_size; in scrapbad()
|
H A D | ex_temp.c | 60 struct stat64 stbuf; in fileinit() local 78 if (stat64((char *)tfname, &stbuf)) { in fileinit() 87 if (!ISDIR(stbuf)) { in fileinit()
|
/illumos-gate/usr/src/cmd/touch/ |
H A D | touch.c | 79 struct stat stbuf; in main() local 184 if (stat(argv[c], &stbuf)) { in main()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/volcopy/ |
H A D | volcopy.c | 309 struct stat stbuf; in main() local 415 if (fstat(In.f_des, &stbuf) < 0 || (stbuf.st_mode & S_IFMT) != S_IFCHR) in main() 417 if (fstat(Out.f_des, &stbuf) < 0 || (stbuf.st_mode & S_IFMT) != S_IFCHR) in main()
|
/illumos-gate/usr/src/cmd/whodo/ |
H A D | whodo.c | 867 struct stat stbuf; in findidle() local 873 if (stat(ttyname, &stbuf) != -1) { in findidle() 874 lastaction = stbuf.st_atime; in findidle()
|
/illumos-gate/usr/src/cmd/zoneadm/ |
H A D | zfs.c | 464 struct stat stbuf; in path2name() local 486 if (stat(dname, &stbuf) != 0 || !S_ISDIR(stbuf.st_mode) || in path2name() 487 strcmp(stbuf.st_fstype, MNTTYPE_ZFS) != 0) { in path2name()
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devfsmap.c | 1124 struct stat stbuf; in file_exists() local 1130 x = stat(fullpath, &stbuf); in file_exists() 2125 struct stat stbuf; in devfs_walk_minor_nodes() local 2130 &stbuf, callback, cb_arg, &terminate); in devfs_walk_minor_nodes() 2133 &stbuf, callback, cb_arg, &terminate); in devfs_walk_minor_nodes()
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | uucleanup.c | 824 struct stat stbuf; local 829 if (stat(fullname, &stbuf) != -1) { 830 return ((int)((ptime - stbuf.st_mtime)/_sec_per_day));
|
/illumos-gate/usr/src/cmd/who/ |
H A D | who.c | 137 static struct stat stbuf; /* area for stat buffer */ variable 166 stbufp = &stbuf; in main()
|
/illumos-gate/usr/src/cmd/pg/ |
H A D | pg.c | 1114 struct stat stbuf; in checkf() local 1136 if (fstat(fileno(f), &stbuf) == -1) { in checkf() 1143 if ((stbuf.st_mode & S_IFMT) == S_IFDIR) { in checkf() 1150 if ((stbuf.st_mode & S_IFMT) == S_IFREG) { in checkf()
|
/illumos-gate/usr/src/cmd/sgs/ar/common/ |
H A D | file.c | 1065 struct stat stbuf, ar_stbuf; in writefile() local 1286 if (stat(fptr->ar_pathname, &stbuf) < 0) { in writefile() 1295 stbuf.st_size) != stbuf.st_size) { in writefile()
|