/dragonfly/sbin/kldstat/ |
H A D | kldstat.c | 48 struct module_stat stat; in printmod() local 51 if (modstat(modid, &stat) < 0) in printmod() 54 printf("\t\t%2d %s\n", stat.id, stat.name); in printmod() 60 struct kld_file_stat stat; in printfile() local 72 stat.id, stat.refs, POINTER_WIDTH, stat.address, in printfile() 73 buf, stat.name); in printfile() 76 stat.id, stat.refs, POINTER_WIDTH, stat.address, in printfile() 77 stat.size, stat.name); in printfile() 144 struct module_stat stat; in main() local 155 if (modstat(modid, &stat) < 0) in main() [all …]
|
/dragonfly/usr.sbin/rpc.lockd/ |
H A D | lock_proc.c | 401 res.stat.stat = nlm_granted; in nlm_test_1_svc() 403 res.stat.stat = nlm_denied; in nlm_test_1_svc() 433 res.stat.stat = nlm_granted; in nlm_test_msg_1_svc() 435 res.stat.stat = nlm_denied; in nlm_test_msg_1_svc() 633 res.stat.stat = nlm_granted; in nlm_granted_1_svc() 646 res.stat.stat = nlm_granted; in nlm_granted_msg_1_svc() 787 res.stat.stat = nlm_granted; in nlm_nm_lock_3_svc() 840 res.stat.stat = nlm4_denied; in nlm4_test_4_svc() 867 res.stat.stat = nlm4_denied; in nlm4_test_msg_4_svc() 1036 res.stat.stat = nlm4_granted; in nlm4_granted_4_svc() [all …]
|
/dragonfly/usr.sbin/ypserv/ |
H A D | yp_server.c | 144 result.stat = YP_YPERR; 149 result.stat = YP_BADARGS; 154 result.stat = yp_errno; 214 result.stat = YP_YPERR; 224 result.stat = yp_errno; 246 result.stat = YP_YPERR; 256 result.stat = yp_errno; 582 result.stat = YP_YPERR; 592 result.stat = yp_errno; 683 struct stat statbuf; [all …]
|
/dragonfly/share/examples/ses/srcs/ |
H A D | chpmon.c | 56 ses_encstat stat, *carray; local 82 stat = 0; 83 if (ioctl(fd, SESIOC_SETENCSTAT, (caddr_t) &stat) < 0) { 92 if (ioctl(fd, SESIOC_GETENCSTAT, (caddr_t) &stat) < 0) { 99 if ((stat & BADSTAT) == 0) { 110 if (stat & SES_ENCSTAT_UNRECOV) 113 if (stat & SES_ENCSTAT_CRITICAL) 116 if (stat & SES_ENCSTAT_NONCRITICAL) 119 stat = SES_ENCSTAT_CRITICAL; 120 if (ioctl(fd, SESIOC_SETENCSTAT, (caddr_t) &stat) < 0) {
|
H A D | sesd.c | 60 ses_encstat stat, *carray; local 129 if (ioctl(fd, SESIOC_GETENCSTAT, (caddr_t) &stat) < 0) { 137 if (stat == carray[dev]) 140 carray[dev] = stat; 141 if ((stat & ALLSTAT) == 0) { 145 if (stat & SES_ENCSTAT_INFO) { 150 if (stat & SES_ENCSTAT_NONCRITICAL) { 154 if (stat & SES_ENCSTAT_CRITICAL) { 158 if (stat & SES_ENCSTAT_UNRECOV) {
|
/dragonfly/sys/bus/firewire/ |
H A D | fwohci.c | 1097 stat, fwohcicode[stat]); 1972 if (stat) 1992 if (stat) 2005 return(stat); 2026 if (stat == 0 || stat == 0xffffffff) 2031 if (stat) 2060 if (stat == 0 || stat == 0xffffffff) 2121 stat, fwohcicode[stat & 0x1f]); 2177 stat, fwohcicode[stat & 0x1f]); 2218 if (stat) { [all …]
|
/dragonfly/contrib/lvm2/dist/daemons/dmeventd/plugins/snapshot/ |
H A D | dmeventd_snapshot.c | 73 static void _parse_snapshot_params(char *params, struct snap_status *stat) in _parse_snapshot_params() argument 81 stat->used = stat->max = 0; in _parse_snapshot_params() 84 stat->invalid = 1; in _parse_snapshot_params() 101 stat->used = atoi(params); in _parse_snapshot_params() 102 stat->max = atoi(p); in _parse_snapshot_params() 113 struct snap_status stat = { 0 }; in process_event() local 130 _parse_snapshot_params(params, &stat); in process_event() 135 if (stat.invalid || !stat.max) { in process_event() 141 percent = 100 * stat.used / stat.max; in process_event()
|
/dragonfly/contrib/diffutils/src/ |
H A D | diff.c | 1067 set_mtime_to_now (struct stat *st) in set_mtime_to_now() 1167 cmp.file[f].stat = cmp.file[0].stat; in compare_files() 1184 cmp.file[f].stat.st_size = in compare_files() 1195 : stat (cmp.file[f].name, &cmp.file[f].stat)) in compare_files() 1222 memset (&cmp.file[f].stat, 0, sizeof cmp.file[f].stat); in compare_files() 1223 cmp.file[f].stat.st_mode = cmp.file[1 - f].stat.st_mode; in compare_files() 1254 : stat (filename, &cmp.file[dir_arg].stat)) in compare_files() 1274 && 0 < same_file (&cmp.file[0].stat, &cmp.file[1].stat) in compare_files() 1276 &cmp.file[1].stat))) in compare_files() 1399 && cmp.file[0].stat.st_size != cmp.file[1].stat.st_size in compare_files() [all …]
|
/dragonfly/contrib/diffutils/lib/ |
H A D | stat-time.h | 66 get_stat_atime_ns (struct stat const *st) in get_stat_atime_ns() 79 get_stat_ctime_ns (struct stat const *st) in get_stat_ctime_ns() 92 get_stat_mtime_ns (struct stat const *st) in get_stat_mtime_ns() 105 get_stat_birthtime_ns (struct stat const *st _GL_UNUSED) in get_stat_birthtime_ns() 118 get_stat_atime (struct stat const *st) in get_stat_atime() 132 get_stat_ctime (struct stat const *st) in get_stat_ctime() 146 get_stat_mtime (struct stat const *st) in get_stat_mtime() 161 get_stat_birthtime (struct stat const *st _GL_UNUSED) in get_stat_birthtime() 211 stat_time_normalize (int result, struct stat *st _GL_UNUSED) in stat_time_normalize() 217 short int const ts_off[] = { offsetof (struct stat, st_atim), in stat_time_normalize() [all …]
|
/dragonfly/contrib/grep/lib/ |
H A D | stat-time.h | 66 get_stat_atime_ns (struct stat const *st) in get_stat_atime_ns() 79 get_stat_ctime_ns (struct stat const *st) in get_stat_ctime_ns() 92 get_stat_mtime_ns (struct stat const *st) in get_stat_mtime_ns() 105 get_stat_birthtime_ns (struct stat const *st _GL_UNUSED) in get_stat_birthtime_ns() 118 get_stat_atime (struct stat const *st) in get_stat_atime() 132 get_stat_ctime (struct stat const *st) in get_stat_ctime() 146 get_stat_mtime (struct stat const *st) in get_stat_mtime() 161 get_stat_birthtime (struct stat const *st _GL_UNUSED) in get_stat_birthtime() 211 stat_time_normalize (int result, struct stat *st _GL_UNUSED) in stat_time_normalize() 217 short int const ts_off[] = { offsetof (struct stat, st_atim), in stat_time_normalize() [all …]
|
/dragonfly/contrib/cvs-1.12/diff/ |
H A D | diff.c | 881 struct stat const *st; in filetype() 994 inf[i].stat = inf[0].stat; 1008 if (pos <= inf[i].stat.st_size) 1009 inf[i].stat.st_size -= pos; 1011 inf[i].stat.st_size = 0; 1013 time (&inf[i].stat.st_mtime); 1018 stat_result = stat (inf[i].name, &inf[i].stat); 1031 inf[1 - i].stat.st_mode = inf[i].stat.st_mode; 1053 if (stat (filename, &inf[dir_arg].stat) != 0) 1071 && 0 < same_file (&inf[0].stat, &inf[1].stat)) [all …]
|
/dragonfly/gnu/usr.bin/diff/libdiffutils/sys/ |
H A D | stat.h | 32 #include_next <sys/stat.h> 47 #include_next <sys/stat.h> 546 # define stat _stati64 552 # undef stat 554 # define stat rpl_stat 562 struct stat 1011 # define lstat stat 1013 _GL_CXXALIAS_RPL_1 (lstat, stat, int, (const char *name, struct stat *buf)); 1232 # undef stat 1236 _GL_EXTERN_C int stat (const char *name, struct stat *buf) [all …]
|
/dragonfly/sbin/fsck/ |
H A D | fsutil.c | 160 struct stat stb; in unrawname() 164 if (stat(name, &stb) < 0) in unrawname() 189 struct stat stslash, stchar; in devcheck() 191 if (stat("/", &stslash) < 0) { in devcheck() 196 if (stat(origname, &stchar) < 0) { in devcheck() 214 struct stat devstat, mntdevstat; in getmntpt() 220 if (stat(name, &devstat) != 0) in getmntpt() 256 struct stat stslash, stblock, stchar; 262 if (stat("/", &stslash) < 0) { 269 if (stat(newname, &stblock) < 0) { [all …]
|
/dragonfly/usr.sbin/ppp/ |
H A D | exec.c | 118 int stat, argc, i, ret, wret, pidpipe[2]; in exec_Create() local 122 stat = fcntl(fids[0], F_GETFL, 0); in exec_Create() 123 if (stat > 0) { in exec_Create() 124 stat |= O_NONBLOCK; in exec_Create() 125 fcntl(fids[0], F_SETFL, stat); in exec_Create() 198 while ((wret = waitpid(pid, &stat, 0)) == -1 && errno == EINTR) in exec_Create() 206 } else if (WIFSIGNALED(stat)) { in exec_Create() 208 WTERMSIG(stat)); in exec_Create() 212 } else if (WIFSTOPPED(stat)) { in exec_Create() 214 WSTOPSIG(stat)); in exec_Create() [all …]
|
H A D | prompt.c | 422 if (stat > 0) { in prompt_TtyInit() 423 stat |= O_NONBLOCK; in prompt_TtyInit() 452 int stat; in prompt_TtyCommandMode() local 461 if (stat > 0) { in prompt_TtyCommandMode() 462 stat |= O_NONBLOCK; in prompt_TtyCommandMode() 475 int stat; in prompt_TtyTermMode() local 481 if (stat > 0) { in prompt_TtyTermMode() 482 stat &= ~O_NONBLOCK; in prompt_TtyTermMode() 491 int stat; in prompt_TtyOldMode() local 494 if (stat > 0) { in prompt_TtyOldMode() [all …]
|
/dragonfly/gnu/usr.bin/grep/libgreputils/sys/ |
H A D | stat.h | 32 #include_next <sys/stat.h> 47 #include_next <sys/stat.h> 384 # define stat _stati64 774 # define lstat stat 776 _GL_CXXALIAS_RPL_1 (lstat, stat, int, (const char *name, struct stat *buf)); 970 # elif defined __MINGW32__ && defined stat 980 # elif defined _MSC_VER && defined stat 991 # undef stat 992 # define stat(name, st) rpl_stat (name, st) 994 _GL_EXTERN_C int stat (const char *name, struct stat *buf) [all …]
|
/dragonfly/games/trek/ |
H A D | shield.c | 68 char *stat; in shield() local 83 stat = &Ship.cloaked; in shield() 90 stat = &Ship.shldup; in shield() 105 if (*stat) in shield() 115 i = !*stat; in shield() 117 if (*stat == i) { in shield() 134 *stat = i; in shield()
|
/dragonfly/include/rpcsvc/ |
H A D | nlm_prot.x | 40 union nlm_testrply switch (nlm_stats stat) { 48 nlm_stats stat; member 53 nlm_stat stat; member 58 nlm_testrply stat; member 134 nlm_stats stat; member 160 nlm4_stats stat; member 188 union nlm4_testrply switch (nlm4_stats stat) { 197 nlm4_testrply stat; member 208 nlm4_stat stat; member 240 nlm4_stats stat; member
|
/dragonfly/contrib/gcc-4.7/libgcc/ |
H A D | dfp-bit.c | 277 CMPtype stat; in DFP_EQ() local 280 return stat != 0; in DFP_EQ() 288 int stat; in DFP_NE() local 293 return stat != 0; in DFP_NE() 301 int stat; in DFP_LT() local 304 return (stat == -1) ? -1 : 1; in DFP_LT() 312 int stat; in DFP_GT() local 315 return (stat == 1) ? 1 : -1; in DFP_GT() 323 int stat; in DFP_LE() local 328 return stat == 1; in DFP_LE() [all …]
|
/dragonfly/bin/ln/ |
H A D | ln.c | 63 struct stat sb; in main() 156 if (stat(targetdir, &sb)) in main() 174 struct stat sb1, sb2; in samedirent() 198 if (stat(pathbuf, &sb1) != 0) in samedirent() 206 if (stat(pathbuf, &sb2) != 0) in samedirent() 214 struct stat sb; in linkit() 223 if ((Pflag ? lstat : stat)(source, &sb)) { in linkit() 241 (!hflag && stat(target, &sb) == 0 && S_ISDIR(sb.st_mode))) { in linkit() 260 if (stat(source, &sb) != 0) in linkit() 273 if (stat(wbuf, &sb) != 0) in linkit()
|
/dragonfly/contrib/libarchive/libarchive/ |
H A D | archive_entry_stat.c | 39 const struct stat * 42 struct stat *st; in archive_entry_stat() 43 if (entry->stat == NULL) { in archive_entry_stat() 44 entry->stat = calloc(1, sizeof(*st)); in archive_entry_stat() 45 if (entry->stat == NULL) in archive_entry_stat() 59 return (entry->stat); in archive_entry_stat() 61 st = entry->stat; in archive_entry_stat()
|
/dragonfly/share/examples/kld/syscall/test/ |
H A D | call.c | 51 struct module_stat stat; in main() local 53 stat.version = sizeof(stat); in main() 54 modstat(modfind("syscall"), &stat); in main() 55 syscall_num = stat.data.intval; in main()
|
/dragonfly/sys/kern/ |
H A D | kern_objcache.c | 948 struct objcache_stats stat; in sysctl_ocstats() local 969 memset(&stat, 0, sizeof(stat)); in sysctl_ocstats() 970 strlcpy(stat.oc_name, desc->name, sizeof(stat.oc_name)); in sysctl_ocstats() 971 stat.oc_limit = desc->total_objects; in sysctl_ocstats() 992 if (stat.oc_requested > puts) in sysctl_ocstats() 993 stat.oc_used = stat.oc_requested - puts; in sysctl_ocstats() 994 if (stat.oc_limit > unalloc + stat.oc_used) { in sysctl_ocstats() 995 stat.oc_cached = stat.oc_limit - in sysctl_ocstats() 996 (unalloc + stat.oc_used); in sysctl_ocstats() 998 stat.oc_requested += stat.oc_failed; in sysctl_ocstats() [all …]
|
/dragonfly/lib/libc/rpc/ |
H A D | clnt_bcast.c | 318 stat = RPC_CANTSEND; in rpc_broadcast_exp() 350 if (stat == RPC_SUCCESS) in rpc_broadcast_exp() 355 if (stat == RPC_SUCCESS) in rpc_broadcast_exp() 356 stat = RPC_CANTSEND; in rpc_broadcast_exp() 362 stat = RPC_SYSTEMERROR; in rpc_broadcast_exp() 433 stat = RPC_CANTSEND; in rpc_broadcast_exp() 496 stat = RPC_SUCCESS; in rpc_broadcast_exp() 507 stat = RPC_TIMEDOUT; in rpc_broadcast_exp() 545 stat = RPC_CANTRECV; in rpc_broadcast_exp() 619 stat = RPC_SUCCESS; in rpc_broadcast_exp() [all …]
|
/dragonfly/contrib/cvs-1.12/src/ |
H A D | filesubr.c | 33 struct stat sb; in copy_file() 56 if (stat (from, &sb) < 0) in copy_file() 122 struct stat sb; in isdir() 140 struct stat sb; in islink() 157 struct stat sb; in isdevice() 216 struct stat sb; in isaccessible() 274 struct stat sb; in make_directory() 337 struct stat sb; in xchmod() 413 struct stat sb; in unlink_file_dir() 432 if (stat (f, &sb) < 0) in unlink_file_dir() [all …]
|