Home
last modified time | relevance | path

Searched refs:stat (Results 1 – 25 of 1055) sorted by relevance

12345678910>>...43

/dflybsd-src/sbin/kldstat/
H A Dkldstat.c48 struct module_stat stat; in printmod() local
50 stat.version = sizeof(struct module_stat); in printmod()
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
64 stat.version = sizeof(struct kld_file_stat); in printfile()
65 if (kldstat(fileid, &stat) < 0) { in printfile()
69 humanize_number(buf, sizeof(buf), stat.size, "", in printfile()
72 stat.id, stat.refs, POINTER_WIDTH, stat.address, in printfile()
73 buf, stat.name); in printfile()
[all …]
/dflybsd-src/usr.sbin/rpc.lockd/
H A Dlock_proc.c401 res.stat.stat = nlm_granted; in nlm_test_1_svc()
403 res.stat.stat = nlm_denied; in nlm_test_1_svc()
404 memcpy(&res.stat.nlm_testrply_u.holder, holder, in nlm_test_1_svc()
406 res.stat.nlm_testrply_u.holder.l_offset = holder->l_offset; in nlm_test_1_svc()
407 res.stat.nlm_testrply_u.holder.l_len = holder->l_len; 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()
436 memcpy(&res.stat.nlm_testrply_u.holder, holder, in nlm_test_msg_1_svc()
438 res.stat.nlm_testrply_u.holder.l_offset = holder->l_offset; in nlm_test_msg_1_svc()
439 res.stat.nlm_testrply_u.holder.l_len = holder->l_len; in nlm_test_msg_1_svc()
[all …]
/dflybsd-src/usr.sbin/ypserv/
H A Dyp_server.c144 result.stat = YP_YPERR;
149 result.stat = YP_BADARGS;
154 result.stat = yp_errno;
158 result.stat = yp_getbykey(&argp->key, &result.val);
165 if (do_dns && result.stat != YP_TRUE &&
169 if (do_dns && result.stat != YP_TRUE &&
182 result.stat = yp_async_lookup_name(rqstp, nbuf,
185 result.stat = yp_async_lookup_addr(rqstp, nbuf,
188 result.stat = yp_async_lookup_name(rqstp, nbuf,
191 result.stat = yp_async_lookup_addr(rqstp, nbuf,
[all …]
/dflybsd-src/share/examples/ses/srcs/
H A Dchpmon.c56 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 Dsesd.c60 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) {
/dflybsd-src/sys/bus/firewire/
H A Dfwohci.c292 u_int32_t fun, stat; in fwphy_rddata() local
316 stat = OREAD(sc, FWOHCI_INTSTAT); in fwphy_rddata()
317 if ((stat & OHCI_INT_REG_FAIL) != 0 || in fwphy_rddata()
1027 u_int stat, status; local
1068 stat = status & FWOHCIEV_MASK;
1069 switch(stat){
1077 device_printf(sc->fc.dev, "txd err=%2x %s\n", stat, fwohcicode[stat]);
1082 device_printf(sc->fc.dev, "txd err=%2x %s\n", stat, fwohcicode[stat]);
1097 stat, fwohcicode[stat]);
1120 } else if (stat != FWOHCIEV_ACKPEND) {
[all …]
/dflybsd-src/contrib/lvm2/dist/daemons/dmeventd/plugins/snapshot/
H A Ddmeventd_snapshot.c73 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()
/dflybsd-src/contrib/grep/lib/
H A Dstat-time.h66 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 …]
/dflybsd-src/contrib/cvs-1.12/diff/
H A Ddiff.c46 static char const *filetype PARAMS((struct stat const *));
162 if (f.desc < 0 || fstat (f.desc, &f.stat) != 0)
881 struct stat const *st; in filetype()
994 inf[i].stat = inf[0].stat;
1000 stat_result = fstat (STDIN_FILENO, &inf[i].stat);
1001 if (stat_result == 0 && S_ISREG (inf[i].stat.st_mode))
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);
[all …]
/dflybsd-src/sbin/fsck/
H A Dfsutil.c160 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()
240 if (stat(devname, &mntdevstat) == 0 && in getmntpt()
256 struct stat stslash, stblock, stchar;
262 if (stat("/", &stslash) < 0) {
[all …]
/dflybsd-src/usr.sbin/ppp/
H A Dexec.c118 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 Dprompt.c418 int stat, fd = p ? p->fd_in : STDIN_FILENO; in prompt_TtyInit() local
421 stat = fcntl(fd, F_GETFL, 0); in prompt_TtyInit()
422 if (stat > 0) { in prompt_TtyInit()
423 stat |= O_NONBLOCK; in prompt_TtyInit()
424 fcntl(fd, F_SETFL, stat); in prompt_TtyInit()
452 int stat; in prompt_TtyCommandMode() local
460 stat = fcntl(p->fd_in, F_GETFL, 0); in prompt_TtyCommandMode()
461 if (stat > 0) { in prompt_TtyCommandMode()
462 stat |= O_NONBLOCK; in prompt_TtyCommandMode()
463 fcntl(p->fd_in, F_SETFL, stat); in prompt_TtyCommandMode()
[all …]
/dflybsd-src/gnu/usr.bin/grep/libgreputils/sys/
H A Dstat.h32 #include_next <sys/stat.h>
47 #include_next <sys/stat.h>
384 # define stat _stati64
654 _GL_FUNCDECL_RPL (fstat, int, (int fd, struct stat *buf) _GL_ARG_NONNULL ((2)));
655 _GL_CXXALIAS_RPL (fstat, int, (int fd, struct stat *buf));
657 _GL_CXXALIAS_SYS (fstat, int, (int fd, struct stat *buf));
679 (int fd, char const *name, struct stat *st, int flags)
682 (int fd, char const *name, struct stat *st, int flags));
686 (int fd, char const *name, struct stat *st, int flags)
690 (int fd, char const *name, struct stat *st, int flags));
[all …]
/dflybsd-src/games/trek/
H A Dshield.c68 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()
/dflybsd-src/include/rpcsvc/
H A Dnlm_prot.x40 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
/dflybsd-src/contrib/gcc-4.7/libgcc/
H A Ddfp-bit.c277 CMPtype stat; in DFP_EQ() local
278 stat = DFP_COMPARE_OP (DEC_FLOAT_COMPARE, arg_a, arg_b); in DFP_EQ()
280 return stat != 0; in DFP_EQ()
288 int stat; in DFP_NE() local
289 stat = DFP_COMPARE_OP (DEC_FLOAT_COMPARE, arg_a, arg_b); in DFP_NE()
291 if (__builtin_expect (stat == -2, 0)) /* An operand is NaN. */ in DFP_NE()
293 return stat != 0; in DFP_NE()
301 int stat; in DFP_LT() local
302 stat = DFP_COMPARE_OP (DEC_FLOAT_COMPARE, arg_a, arg_b); in DFP_LT()
304 return (stat == -1) ? -1 : 1; in DFP_LT()
[all …]
/dflybsd-src/bin/ln/
H A Dln.c63 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()
/dflybsd-src/contrib/libarchive/libarchive/
H A Darchive_entry_stat.c39 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()
/dflybsd-src/share/examples/kld/syscall/test/
H A Dcall.c51 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()
/dflybsd-src/sys/kern/
H A Dkern_objcache.c948 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()
982 stat.oc_requested += cache->gets_cumulative; in sysctl_ocstats()
983 stat.oc_exhausted += cache->gets_exhausted; in sysctl_ocstats()
984 stat.oc_failed += cache->gets_null; in sysctl_ocstats()
985 stat.oc_allocated += cache->allocs_cumulative; in sysctl_ocstats()
992 if (stat.oc_requested > puts) in sysctl_ocstats()
993 stat.oc_used = stat.oc_requested - puts; in sysctl_ocstats()
[all …]
/dflybsd-src/lib/libc/rpc/
H A Dclnt_bcast.c238 enum clnt_stat stat = RPC_SUCCESS; /* Return status */ in rpc_broadcast_exp() local
318 stat = RPC_CANTSEND; in rpc_broadcast_exp()
340 stat = RPC_SYSTEMERROR; in rpc_broadcast_exp()
350 if (stat == RPC_SUCCESS) in rpc_broadcast_exp()
351 stat = RPC_UNKNOWNPROTO; 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()
388 stat = RPC_CANTENCODEARGS; in rpc_broadcast_exp()
412 stat = RPC_CANTENCODEARGS; in rpc_broadcast_exp()
[all …]
H A Dcrypt_client.c54 int stat; in _des_crypt_call() local
87 stat = result_1->stat; in _des_crypt_call()
89 if (result_1->stat == DESERR_NONE || in _des_crypt_call()
90 result_1->stat == DESERR_NOHWDEVICE) { in _des_crypt_call()
98 return(stat); in _des_crypt_call()
/dflybsd-src/contrib/cvs-1.12/src/
H A Dfilesubr.c33 struct stat sb; in copy_file()
56 if (stat (from, &sb) < 0) in copy_file()
122 struct stat sb; in isdir()
124 if (stat (file, &sb) < 0) in isdir()
140 struct stat sb; in islink()
157 struct stat sb; in isdevice()
216 struct stat sb; in isaccessible()
222 if (stat (file, &sb)== -1) in isaccessible()
274 struct stat sb; in make_directory()
276 if (stat (name, &sb) == 0 && (!S_ISDIR (sb.st_mode))) in make_directory()
[all …]
/dflybsd-src/test/stress/stress2/misc/
H A Drename.sh75 struct stat sb;
93 stat(dir1, &sb);
94 if (stat(dir1, &sb) == -1)
101 stat(dir2, &sb);
102 if (stat(dir2, &sb) == -1)
111 if (stat("..", &sb) == -1)
/dflybsd-src/games/hunt/huntd/
H A Dmakemaze.c135 int stat; in remap() local
143 stat = 0; in remap()
145 stat |= NORTH; in remap()
147 stat |= SOUTH; in remap()
149 stat |= EAST; in remap()
151 stat |= WEST; in remap()
152 switch (stat) { in remap()

12345678910>>...43