Home
last modified time | relevance | path

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

12345678910>>...70

/freebsd/sbin/kldstat/
H A Dkldstat.c52 struct module_stat stat; in printmod() local
54 bzero(&stat, sizeof(stat)); in printmod()
55 stat.version = sizeof(struct module_stat); in printmod()
56 if (modstat(modid, &stat) < 0) { in printmod()
61 printf("\t\t%3d %s (%d, %u, 0x%lx)\n", stat.id, in printmod()
62 stat.name, stat.data.intval, stat.data.uintval, in printmod()
63 stat.data.ulongval); in printmod()
65 printf("\t\t%3d %s\n", stat.id, stat.name); in printmod()
71 struct kld_file_stat stat; in printfile() local
75 stat.version = sizeof(struct kld_file_stat); in printfile()
[all …]
/freebsd/sys/dev/sfxge/common/
H A Def10_mac.c606 __inout_ecount(EFX_MAC_NSTATS) efsys_stat_t *stat, in ef10_mac_stats_update()
652 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_PKTS]), &value); in ef10_mac_stats_update()
655 EFSYS_STAT_SUBR_QWORD(&(stat[EFX_MAC_TX_PKTS]), &value); in ef10_mac_stats_update()
658 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_PAUSE_PKTS]), &value); in ef10_mac_stats_update()
661 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_UNICST_PKTS]), &value); in ef10_mac_stats_update()
664 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_MULTICST_PKTS]), &value); in ef10_mac_stats_update()
667 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_BRDCST_PKTS]), &value); in ef10_mac_stats_update()
670 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_OCTETS]), &value); in ef10_mac_stats_update()
673 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_LE_64_PKTS]), &value); in ef10_mac_stats_update()
675 EFSYS_STAT_INCR_QWORD(&(stat[EFX_MAC_TX_LE_64_PKTS]), &value); in ef10_mac_stats_update()
[all …]
H A Dsiena_mac.c271 __inout_ecount(EFX_MAC_NSTATS) efsys_stat_t *stat, in siena_mac_stats_update()
300 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_PKTS]), &value); in siena_mac_stats_update()
302 EFSYS_STAT_SUBR_QWORD(&(stat[EFX_MAC_TX_PKTS]), &value); in siena_mac_stats_update()
305 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_PAUSE_PKTS]), &value); in siena_mac_stats_update()
308 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_UNICST_PKTS]), &value); in siena_mac_stats_update()
311 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_MULTICST_PKTS]), &value); in siena_mac_stats_update()
314 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_BRDCST_PKTS]), &value); in siena_mac_stats_update()
317 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_OCTETS]), &value); in siena_mac_stats_update()
320 EFSYS_STAT_SET_QWORD(&(stat[EFX_MAC_TX_LE_64_PKTS]), &value); in siena_mac_stats_update()
322 EFSYS_STAT_INCR_QWORD(&(stat[EFX_MAC_TX_LE_64_PKTS]), &value); in siena_mac_stats_update()
[all …]
/freebsd/contrib/pjdfstest/tests/unlink/
H A D00.t53 ctime1=`${fstest} stat ${n0} ctime`
56 ctime2=`${fstest} stat ${n0} ctime`
62 ctime1=`${fstest} stat ${n0} ctime`
65 ctime2=`${fstest} stat ${n0} ctime`
71 ctime1=`${fstest} stat ${n0} ctime`
74 ctime2=`${fstest} stat ${n0} ctime`
80 ctime1=`${fstest} stat ${n0} ctime`
83 ctime2=`${fstest} stat ${n0} ctime`
89 ctime1=`${fstest} stat ${n0} ctime`
92 ctime2=`${fstest} stat ${n0} ctime`
[all …]
/freebsd/usr.bin/stat/tests/
H A Dstat_test.sh41 atf_check -o match:'.* a' stat -Fn a
42 atf_check -o match:'.* b/' stat -Fn b
43 atf_check -o match:'.* c\*' stat -Fn c
44 atf_check -o match:'.* d@' stat -Fn d
45 atf_check -o match:'.* f\|' stat -Fn f
63 stat_out=stat.output
73 atf_check -o save:$stat_out stat -l $path
90 atf_check -o inline:"$(stat a | tr -d '\n')" stat -n a
91 atf_check -o inline:"$(stat a b | tr -d '\n')" stat -n a b
103 atf_check -s exit:1 stat -q nonexistent
[all …]
/freebsd/contrib/pjdfstest/tests/chown/
H A D00.t37 expect 123,456 stat ${n1} uid,gid
38 expect 123,456 stat ${n0} uid,gid
75 expect 65534,65533 stat ${n0} uid,gid
76 expect 65534,65533 stat ${n1} uid,gid
79 expect 65534,65532 stat ${n0} uid,gid
80 expect 65534,65532 stat ${n1} uid,gid
83 expect 65534,65531 stat ${n0} uid,gid
84 expect 65534,65531 stat ${n1} uid,gid
117 expect 65534,65533 stat ${n0} uid,gid
122 expect 65534,65533 stat ${n0} uid,gid
[all …]
/freebsd/usr.bin/systat/
H A Dzarc.c114 #define DO(stat) \ in domode() argument
115 delta->hits.stat = (curstat.hits.stat - oldstat.hits.stat); \ in domode()
116 delta->misses.stat = (curstat.misses.stat - oldstat.misses.stat); \ in domode()
117 rate->current.stat = calc_rate(delta->hits.stat, delta->misses.stat); \ in domode()
118 rate->total.stat = calc_rate(curstat.hits.stat, curstat.misses.stat) in domode()
145 #define DO(stat, col, width) \ in showzarc() argument
146 sysputuint64(wnd, row, col, width, stat, HN_DIVISOR_1000) in showzarc()
147 #define RATES(stat) mvwprintw(wnd, row, 31+1, "%3"PRIu64, rate.current.stat);\ in showzarc() argument
148 mvwprintw(wnd, row, 31+1+5+7+7+8, "%3"PRIu64, rate.total.stat) in showzarc()
149 #define HITS(stat) DO(delta.hits.stat, 31+1+5, 6); \ in showzarc() argument
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_stat.c61 struct stat sa, sb; in ATF_TC_BODY()
64 (void)memset(&sa, 0, sizeof(struct stat)); in ATF_TC_BODY()
65 (void)memset(&sb, 0, sizeof(struct stat)); in ATF_TC_BODY()
70 ATF_REQUIRE(stat(path, &sa) == 0); in ATF_TC_BODY()
72 ATF_REQUIRE(stat(path, &sb) == 0); in ATF_TC_BODY()
95 struct stat sa, sb; in ATF_TC_BODY()
124 (void)memset(&sa, 0, sizeof(struct stat)); in ATF_TC_BODY()
125 (void)memset(&sb, 0, sizeof(struct stat)); in ATF_TC_BODY()
127 ATF_REQUIRE(stat(ftse->fts_parent->fts_path,&sa) == 0); in ATF_TC_BODY()
129 ATF_REQUIRE(stat(".", &sb) == 0); in ATF_TC_BODY()
[all …]
/freebsd/sys/dev/rtwn/usb/
H A Drtwn_usb_rx.c69 struct rtwn_rx_stat_common *stat) in rtwn_rx_check_pre_alloc() argument
83 rxdw0 = le32toh(stat->rxdw0); in rtwn_rx_check_pre_alloc()
109 rtwn_rx_copy_to_mbuf(struct rtwn_softc *sc, struct rtwn_rx_stat_common *stat, in rtwn_rx_copy_to_mbuf() argument
120 __func__, le32toh(stat->rxdw0), le32toh(stat->rxdw1), in rtwn_rx_copy_to_mbuf()
121 le32toh(stat->rxdw2), le32toh(stat->rxdw3), le32toh(stat->rxdw4), in rtwn_rx_copy_to_mbuf()
122 le32toh(stat->tsf_low)); in rtwn_rx_copy_to_mbuf()
124 if (rtwn_rx_check_pre_alloc(sc, stat) != 0) in rtwn_rx_copy_to_mbuf()
135 memcpy(mtod(m, uint8_t *), (uint8_t *)stat, totlen); in rtwn_rx_copy_to_mbuf()
155 struct rtwn_rx_stat_common *stat = &uc->uc_rx_stat; in rtwn_rxeof_fragmented() local
162 if (uc->uc_rx_stat_len < sizeof(*stat)) { in rtwn_rxeof_fragmented()
[all …]
/freebsd/usr.sbin/rpc.lockd/
H A Dlock_proc.c446 res.stat.stat = nlm_granted; in nlm_test_1_svc()
448 res.stat.stat = nlm_denied; in nlm_test_1_svc()
449 memcpy(&res.stat.nlm_testrply_u.holder, holder, in nlm_test_1_svc()
451 res.stat.nlm_testrply_u.holder.l_offset = holder->l_offset; in nlm_test_1_svc()
452 res.stat.nlm_testrply_u.holder.l_len = holder->l_len; in nlm_test_1_svc()
478 res.stat.stat = nlm_granted; in nlm_test_msg_1_svc()
480 res.stat.stat = nlm_denied; in nlm_test_msg_1_svc()
481 memcpy(&res.stat.nlm_testrply_u.holder, holder, in nlm_test_msg_1_svc()
483 res.stat.nlm_testrply_u.holder.l_offset = holder->l_offset; in nlm_test_msg_1_svc()
484 res.stat.nlm_testrply_u.holder.l_len = holder->l_len; in nlm_test_msg_1_svc()
[all …]
/freebsd/contrib/pjdfstest/tests/chflags/
H A D00.t42 expect none stat ${n0} flags
44 expect ${allflags} stat ${n0} flags
46 expect ${userflags} stat ${n0} flags
48 expect ${systemflags} stat ${n0} flags
50 expect none stat ${n0} flags
58 expect none stat ${n0} flags
60 expect ${allflags} stat ${n0} flags
62 expect ${userflags} stat ${n0} flags
64 expect ${systemflags} stat ${n0} flags
66 expect none stat ${n0} flags
[all …]
/freebsd/contrib/netbsd-tests/lib/librumphijack/
H A Dt_vfs.sh131 atf_check -s exit:0 -o save:stat.out \
132 stat -f "${statstr}" /rump/mnt/filename
135 atf_check -s exit:0 -o file:stat.out \
136 stat -f "${statstr}" /rump/mnt/dir/same
145 atf_check -s exit:0 -o save:stat.out \
146 stat -f "${statstr}" /rump/mnt/filename
149 atf_check -s exit:0 -o file:stat.out \
150 stat -f "${statstr}" /rump/mnt/filename
151 atf_check -s exit:0 -o file:stat.out \
152 stat -f "${statstr}" /rump/mnt/dir/same
[all …]
/freebsd/contrib/pjdfstest/tests/link/
H A D12.t28 expect 1 stat ${n0} nlink
30 expect 2 stat ${n0} nlink
32 expect 1 stat ${n0} nlink
36 expect 1 stat ${n0} nlink
39 expect 2 stat ${n0} nlink
41 expect 1 stat ${n0} nlink
45 expect 2 stat ${n0} nlink
48 expect 1 stat ${n0} nlink
54 expect 2 stat ${n0} nlink
56 expect 1 stat ${n0} nlink
[all …]
H A D13.t30 expect 1 stat ${n0}/${n1} nlink
32 expect 2 stat ${n0}/${n1} nlink
34 expect 1 stat ${n0}/${n1} nlink
38 expect 1 stat ${n0}/${n1} nlink
41 expect 2 stat ${n0}/${n1} nlink
43 expect 1 stat ${n0}/${n1} nlink
47 expect 2 stat ${n0}/${n1} nlink
50 expect 1 stat ${n0}/${n1} nlink
54 expect 2 stat ${n0}/${n1} nlink
57 expect 1 stat ${n0}/${n1} nlink
[all …]
/freebsd/tools/regression/security/cap_test/
H A Dcap_test_pdfork.c56 struct stat stat; in test_pdfork() local
84 REQUIRE(fstat(pd, &stat)); in test_pdfork()
89 CHECK(now >= stat.st_birthtime); in test_pdfork()
90 CHECK((now - stat.st_birthtime) < 2); in test_pdfork()
91 CHECK(stat.st_birthtime == stat.st_atime); in test_pdfork()
92 CHECK(stat.st_atime == stat.st_ctime); in test_pdfork()
93 CHECK(stat.st_ctime == stat.st_mtime); in test_pdfork()
/freebsd/contrib/pjdfstest/tests/open/
H A D00.t59 time=`${fstest} stat . ctime`
62 atime=`${fstest} stat ${n0} atime`
64 mtime=`${fstest} stat ${n0} mtime`
66 ctime=`${fstest} stat ${n0} ctime`
68 mtime=`${fstest} stat . mtime`
70 ctime=`${fstest} stat . ctime`
76 dmtime=`${fstest} stat . mtime`
77 dctime=`${fstest} stat . ctime`
80 mtime=`${fstest} stat . mtime`
82 ctime=`${fstest} stat . ctime`
[all …]
/freebsd/contrib/openbsm/config/
H A Ddepcomp192 stat=$?
193 if test $stat -ne 0; then
195 exit $stat
218 stat=$?
219 if test $stat -ne 0; then
221 exit $stat
260 stat=$?
261 if test $stat -ne 0; then
263 exit $stat
315 stat=$?
[all …]
/freebsd/contrib/openpam/
H A Ddepcomp192 stat=$?
193 if test $stat -ne 0; then
195 exit $stat
218 stat=$?
219 if test $stat -ne 0; then
221 exit $stat
260 stat=$?
261 if test $stat -ne 0; then
263 exit $stat
315 stat=$?
[all …]
/freebsd/contrib/ntp/sntp/libevent/build-aux/
H A Ddepcomp192 stat=$?
193 if test $stat -ne 0; then
195 exit $stat
218 stat=$?
219 if test $stat -ne 0; then
221 exit $stat
260 stat=$?
261 if test $stat -ne 0; then
263 exit $stat
315 stat=$?
[all …]
/freebsd/contrib/ntp/sntp/libevent/
H A Ddepcomp192 stat=$?
193 if test $stat -ne 0; then
195 exit $stat
218 stat=$?
219 if test $stat -ne 0; then
221 exit $stat
260 stat=$?
261 if test $stat -ne 0; then
263 exit $stat
315 stat=$?
[all …]
/freebsd/contrib/file/
H A Ddepcomp192 stat=$?
193 if test $stat -ne 0; then
195 exit $stat
218 stat=$?
219 if test $stat -ne 0; then
221 exit $stat
260 stat=$?
261 if test $stat -ne 0; then
263 exit $stat
315 stat=$?
[all …]
/freebsd/contrib/libevent/build-aux/
H A Ddepcomp192 stat=$?
193 if test $stat -ne 0; then
195 exit $stat
218 stat=$?
219 if test $stat -ne 0; then
221 exit $stat
260 stat=$?
261 if test $stat -ne 0; then
263 exit $stat
315 stat=$?
[all …]
/freebsd/contrib/sqlite3/
H A Ddepcomp192 stat=$?
193 if test $stat -ne 0; then
195 exit $stat
218 stat=$?
219 if test $stat -ne 0; then
221 exit $stat
260 stat=$?
261 if test $stat -ne 0; then
263 exit $stat
315 stat=$?
[all …]
/freebsd/sys/rpc/rpcsec_tls/
H A Drpctls_impl.c250 enum clnt_stat stat; in rpctls_connect() local
260 stat = clnt_call_private(newclient, &ext, NULLPROC, (xdrproc_t)xdr_void, in rpctls_connect()
263 if (stat == RPC_AUTHERROR) in rpctls_connect()
264 return (stat); in rpctls_connect()
265 if (stat != RPC_SUCCESS) in rpctls_connect()
282 stat = rpctlscd_connect_2(&arg, &res, rpctls_connect_handle); in rpctls_connect()
283 if (stat == RPC_SUCCESS) in rpctls_connect()
297 return (stat); in rpctls_connect()
306 enum clnt_stat stat; in rpctls_cl_handlerecord() local
310 stat = rpctlscd_handlerecord_2(&arg, &res, rpctls_connect_handle); in rpctls_cl_handlerecord()
[all …]
/freebsd/usr.sbin/ypserv/
H A Dyp_server.c146 result.stat = YP_YPERR;
151 result.stat = YP_BADARGS;
156 result.stat = yp_errno;
160 result.stat = yp_getbykey(&argp->key, &result.val);
167 if (do_dns && result.stat != YP_TRUE &&
171 if (do_dns && result.stat != YP_TRUE &&
185 result.stat = yp_async_lookup_name(rqstp, nbuf,
188 result.stat = yp_async_lookup_addr(rqstp, nbuf,
191 result.stat = yp_async_lookup_name(rqstp, nbuf,
194 result.stat = yp_async_lookup_addr(rqstp, nbuf,
[all …]

12345678910>>...70