/illumos-gate/usr/src/cmd/th_tools/ |
H A D | th_define.c | 1059 struct stat statbuf; in log2errdefs() local 1167 if (stat("/usr/lib/th_script", &statbuf) == -1) { in log2errdefs() 1176 buffer = malloc(statbuf.st_size); in log2errdefs() 1181 if (read(fd, buffer, statbuf.st_size) != statbuf.st_size) { in log2errdefs() 1185 (void) fwrite(buffer, statbuf.st_size, 1, fp); in log2errdefs()
|
/illumos-gate/usr/src/cmd/modload/ |
H A D | add_drv.c | 1020 struct stat statbuf; in ignore_root_basedir() local 1022 return (stat("/ADD_DRV_IGNORE_ROOT_BASEDIR", &statbuf) == 0); in ignore_root_basedir()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/quotaon/ |
H A D | quotaon.c | 100 struct stat statbuf; in main() local
|
/illumos-gate/usr/src/uts/intel/sys/ |
H A D | vmm_dev.h | 188 uint64_t statbuf[MAX_VM_STATS]; member
|
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | pkgtrans.c | 636 struct stat statbuf; in genheader() local 660 if (stat(path, &statbuf) < 0) { in genheader() 666 totsize += statbuf.st_size/BLK_SIZE + 1; in genheader()
|
/illumos-gate/usr/src/cmd/keyserv/ |
H A D | keyserv_cache.c | 204 struct stat statbuf; in create_cache_file_ch() local 234 if (fstat(fd, &statbuf) < 0) { in create_cache_file_ch() 266 if (statbuf.st_size == 0) { in create_cache_file_ch()
|
/illumos-gate/usr/src/cmd/ptools/pmap/ |
H A D | pmap.c | 201 struct stat64 statbuf; in main() local 415 if (fstat64(mapfd, &statbuf) != 0) { in main() 473 memcmp(&newbuf.st_mtim, &statbuf.st_mtim, in main()
|
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_util.c | 790 struct stat64 statbuf; in zfs_path_to_zhandle() local 801 if (stat64(path, &statbuf) != 0) { in zfs_path_to_zhandle() 809 statbuf.st_dev) { in zfs_path_to_zhandle()
|
H A D | libzfs_dataset.c | 2365 char *statbuf, size_t statlen) in get_source() argument 2367 if (statbuf == NULL || *srctype == ZPROP_SRC_TEMPORARY) in get_source() 2380 (void) strlcpy(statbuf, source, statlen); in get_source() 2610 zprop_source_t *src, char *statbuf, size_t statlen, boolean_t literal) in zfs_prop_get() argument 2959 get_source(zhp, src, source, statbuf, statlen); in zfs_prop_get() 2994 zprop_source_t *src, char *statbuf, size_t statlen) in zfs_prop_get_numeric() argument 3013 get_source(zhp, src, source, statbuf, statlen); in zfs_prop_get_numeric()
|
/illumos-gate/usr/src/cmd/zdb/ |
H A D | zdb.c | 2633 struct stat64 statbuf; in dump_cachefile() local 2643 if (fstat64(fd, &statbuf) != 0) { in dump_cachefile() 2649 if ((buf = malloc(statbuf.st_size)) == NULL) { in dump_cachefile() 2651 (u_longlong_t)statbuf.st_size); in dump_cachefile() 2655 if (read(fd, buf, statbuf.st_size) != statbuf.st_size) { in dump_cachefile() 2657 (u_longlong_t)statbuf.st_size); in dump_cachefile() 3201 struct stat64 statbuf; in dump_label() local 3219 } else if (stat64(path, &statbuf) != 0) { in dump_label() 3236 if (fstat64(fd, &statbuf) != 0) { in dump_label() 3243 if (S_ISBLK(statbuf.st_mode)) { in dump_label() [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | smb_quota.c | 1135 struct stat statbuf; in smb_quota_add_ctrldir() local 1193 if (stat(file, &statbuf) != 0) { in smb_quota_add_ctrldir()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/envmon/ |
H A D | piclenvmon.c | 466 struct stat statbuf; in create_envmon_pathname() local 507 if (stat(namebuf, &statbuf) < 0) in create_envmon_pathname() 509 if (!S_ISCHR(statbuf.st_mode)) in create_envmon_pathname()
|
/illumos-gate/usr/src/lib/passwdutil/ |
H A D | files_attr.c | 1147 struct stat64 statbuf; in files_update_history() local 1254 if (stat64(OHISTORY, &statbuf) == 0 || in files_update_history()
|
/illumos-gate/usr/src/lib/libbrand/common/ |
H A D | libbrand.c | 222 struct stat statbuf; in brand_open() local 235 if (stat(path, &statbuf) != 0) in brand_open()
|
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | setup.c | 128 struct stat statbuf; local
|
/illumos-gate/usr/src/cmd/cmd-crypto/cryptoadm/ |
H A D | adm_uef.c | 714 struct stat statbuf; in install_uef_lib() local 761 if (stat(libpath, &statbuf) != 0) { in install_uef_lib()
|
/illumos-gate/usr/src/cmd/dlmgmtd/ |
H A D | dlmgmt_db.c | 283 struct stat statbuf; in dlmgmt_zopen_cb() local 301 if (stat(filename, &statbuf) == -1) { in dlmgmt_zopen_cb()
|
/illumos-gate/usr/src/cmd/file/ |
H A D | file.c | 1807 struct stat statbuf; in default_magic() local 1817 if (stat(dfile, &statbuf) != 0) { in default_magic()
|
/illumos-gate/usr/src/lib/libvmmapi/common/ |
H A D | vmmapi.c | 1451 for (index = 0;; index += nitems(vmstats.statbuf)) { in vm_get_stats() 1465 memcpy(stats_buf + index, vmstats.statbuf, in vm_get_stats() 1470 if (vmstats.num_entries != nitems(vmstats.statbuf)) in vm_get_stats()
|
/illumos-gate/usr/src/lib/storage/liba5k/common/ |
H A D | mon.c | 4353 struct stat statbuf; in l_download() local 4407 if (fstat(file_fd, &statbuf) == -1) { in l_download() 4413 buf_ptr = (uchar_t *)g_zalloc(statbuf.st_size); in l_download() 4421 if (read(file_fd, buf_ptr, statbuf.st_size) == -1) { in l_download() 4478 statbuf.st_size); in l_download()
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | pre-process.c | 953 struct stat statbuf; in find_include() local 966 lstat(entry->d_name, &statbuf); in find_include() 974 if (S_ISDIR(statbuf.st_mode)) { in find_include()
|
/illumos-gate/usr/src/cmd/boot/installboot/i386/ |
H A D | installboot.c | 1954 struct stat statbuf = {0}; in open_device() local 1968 if (fstat(fd, &statbuf) != 0) { in open_device() 1975 if (S_ISCHR(statbuf.st_mode) == 0) { in open_device()
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/ |
H A D | kdb_db2.c | 1919 struct stat statbuf; local 1921 if (stat(to, &statbuf) == -1) {
|
/illumos-gate/usr/src/cmd/fdisk/ |
H A D | fdisk.c | 4867 struct stat statbuf; local 4877 if (stat(node, (struct stat *)&statbuf) == -1) { 4896 if (stat(node, (struct stat *)&statbuf) == -1) { 4906 if ((statbuf.st_mode & S_IFMT) != S_IFCHR) {
|
/illumos-gate/usr/src/lib/libraidcfg/common/ |
H A D | raidcfg.c | 2508 struct stat statbuf; in obj_controller_act() local 2519 if (fstat(image_fd, &statbuf) != 0) { in obj_controller_act() 2524 filebuf = malloc(statbuf.st_size); in obj_controller_act() 2530 size = read(image_fd, filebuf, statbuf.st_size); in obj_controller_act() 2531 if (size != statbuf.st_size) { in obj_controller_act()
|