Searched refs:stat (Results 1 - 25 of 1652) sorted by relevance

1234567891011>>

/src/tools/stat/
H A DMakefile3 HOSTPROGNAME= ${_TOOL_PREFIX}stat
4 HOST_SRCDIR= usr.bin/stat
/src/tests/usr.bin/stat/
H A Dt_stat.sh39 stat -f 'plain <%SN>' 'Ümläute'
42 stat -f 'right-aligned <%20SN>' 'Ümläute'
45 stat -f 'left-aligned <%-20SN>' 'Ümläute'
47 atf_check -s exit:1 -o ignore -e 'inline:stat: % SN: bad format\n' \
48 stat -f 'string-space <% SN>' 'Ümläute'
50 atf_check -s exit:1 -o ignore -e 'inline:stat: %+SN: bad format\n' \
51 stat -f 'string-plus <%+SN>' 'Ümläute'
53 atf_check -s exit:1 -o ignore -e 'inline:stat: %0SN: bad format\n' \
54 stat -f 'string-zero <%0SN>' 'Ümläute'
57 stat
[all...]
H A DMakefile3 TESTSDIR= ${TESTSBASE}/usr.bin/stat
/src/usr.bin/stat/
H A DMakefile3 PROG= stat
6 LINKS= ${BINDIR}/stat ${BINDIR}/readlink
7 MAN= stat.1 readlink.1
13 COPTS.stat.c+= ${CC_WNO_IMPLICIT_FALLTHROUGH}
15 COPTS.stat.c += -Wno-format-nonliteral
/src/sys/net/
H A Dnet_stats.h47 #define _NET_STAT_GETREF(stat) ((net_stat_ref_t)percpu_getref((stat)))
48 #define _NET_STAT_PUTREF(stat) percpu_putref((stat))
56 #define _NET_STATINC(stat, x) \
58 net_stat_ref_t _nsr_ = _NET_STAT_GETREF(stat); \
60 _NET_STAT_PUTREF(stat); \
69 #define _NET_STATDEC(stat, x) \
71 net_stat_ref_t _nsr_ = _NET_STAT_GETREF(stat); \
73 _NET_STAT_PUTREF(stat); \
[all...]
/src/sys/lib/libsa/
H A Dstat.c1 /* $NetBSD: stat.c,v 1.7 2007/11/24 13:20:57 isaki Exp $ */
31 * @(#)stat.c 8.1 (Berkeley) 6/11/93
37 stat(const char *str, struct stat *sb) function in typeref:typename:int
/src/usr.sbin/tcpdchk/
H A Dscaffold.h16 int check_path(const char *, struct stat *);
/src/sys/fs/v7fs/
H A Dv7fs_superblock_util.c67 struct v7fs_stat *stat = &fs->stat; local in function:v7fs_superblock_status
69 stat->total_blocks = sb->volume_size - sb->datablock_start_sector;
70 stat->total_inode = V7FS_MAX_INODE(sb);
71 stat->free_inode = sb->total_freeinode;
72 stat->free_blocks = sb->total_freeblock;
73 stat->total_files = stat->total_inode - sb->total_freeinode - 1;
75 DPRINTF("block %d/%d, inode %d/%d\n", stat->free_blocks,
76 stat
[all...]
/src/bin/cp/
H A Dextern.h52 int copy_fifo(struct stat *, int);
55 int copy_special(struct stat *, int);
56 int set_utimes(const char *, struct stat *);
57 int setfile(struct stat *, int);
58 int preserve_dir_acls(struct stat *, char *, char *);
/src/share/examples/refuse/virtdir/
H A Dvirtdir.h32 #include <sys/stat.h>
56 struct stat file; /* stat struct for file entries */
57 struct stat dir; /* stat struct for dir entries */
58 struct stat lnk; /* stat struct for symlinks */
69 int virtdir_init(virtdir_t *, const char *, struct stat *, struct stat *, struct stat *);
[all...]
/src/sbin/mount_qemufwcfg/
H A Dvirtdir.h35 #include <sys/stat.h>
56 struct stat file; /* stat struct for file entries */
57 struct stat dir; /* stat struct for dir entries */
58 struct stat lnk; /* stat struct for symlinks */
69 int virtdir_init(virtdir_t *, const char *, const struct stat *,
70 const struct stat *, const struct stat *);
[all...]
/src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/bus/
H A Dnouveau_nvkm_subdev_bus_gf100.c37 u32 stat = nvkm_rd32(device, 0x001100) & nvkm_rd32(device, 0x001140); local in function:gf100_bus_intr
39 if (stat & 0x0000000e) {
47 (stat & 0x00000002) ? "!ENGINE " : "",
48 (stat & 0x00000004) ? "IBUS " : "",
49 (stat & 0x00000008) ? "TIMEOUT " : "");
52 nvkm_wr32(device, 0x001100, (stat & 0x0000000e));
53 stat &= ~0x0000000e;
56 if (stat) {
57 nvkm_error(subdev, "intr %08x\n", stat);
58 nvkm_mask(device, 0x001140, stat,
[all...]
H A Dnouveau_nvkm_subdev_bus_nv04.c39 u32 stat = nvkm_rd32(device, 0x001100) & nvkm_rd32(device, 0x001140); local in function:nv04_bus_intr
41 if (stat & 0x00000001) {
43 stat &= ~0x00000001;
47 if (stat & 0x00000110) {
51 stat &= ~0x00000110;
55 if (stat) {
56 nvkm_error(subdev, "intr %08x\n", stat);
57 nvkm_mask(device, 0x001140, stat, 0x00000000);
/src/tests/lib/libc/gen/posix_spawn/
H A Dfa_spawn_utils.c36 #include <sys/stat.h>
49 struct stat st;
51 RL(stat(fname, &st));
/src/include/
H A Dftw.h29 #include <sys/stat.h>
39 #define FTW_NS 4 /* Unknown type; stat() failed. */
57 int ftw(const char *, int (*)(const char *, const struct stat *, int), int);
58 int nftw(const char *, int (*)(const char *, const struct stat *, int,
/src/tests/usr.bin/indent/
H A Dlsym_period.c37 get_time(struct stat st)
45 get_time(struct stat st)
/src/tools/compat/
H A Dlchflags.c38 #include <sys/stat.h>
45 struct stat psb;
H A Dlchmod.c38 #include <sys/stat.h>
45 struct stat psb;
H A Dlchown.c38 #include <sys/stat.h>
45 struct stat psb;
/src/tests/lib/libposix/
H A Dt_rename.c35 #include <sys/stat.h>
55 struct stat sb;
64 REQUIRE_LIBC(stat("t1", &sb), -1);
70 ATF_REQUIRE_MSG(stat("t1", &sb) != 0, "BSD rename should remove file t1");
74 REQUIRE_LIBC(stat("t1", &sb), -1);
/src/usr.sbin/sesd/srcs/
H A Dchpmon.c55 ses_encstat stat, *carray; local in function:main
81 stat = 0;
82 if (ioctl(fd, SESIOC_SETENCSTAT, (caddr_t) &stat) < 0) {
91 if (ioctl(fd, SESIOC_GETENCSTAT, (caddr_t) &stat) < 0) {
98 if ((stat & BADSTAT) == 0) {
109 if (stat & SES_ENCSTAT_UNRECOV)
112 if (stat & SES_ENCSTAT_CRITICAL)
115 if (stat & SES_ENCSTAT_NONCRITICAL)
118 stat = SES_ENCSTAT_CRITICAL;
119 if (ioctl(fd, SESIOC_SETENCSTAT, (caddr_t) &stat) <
[all...]
/src/sys/arch/next68k/dev/
H A Dnextdma.c320 struct nextdma_status *stat = &nsc->sc_stat; local in function:nextdma_reset
332 if ((stat->nd_map) || (stat->nd_map_cont)) {
333 if (stat->nd_map_cont) {
338 stat->nd_map_cont, nsc->sc_conf.nd_cb_arg);
340 stat->nd_map_cont = 0;
341 stat->nd_idx_cont = 0;
345 stat->nd_map = 0;
346 stat->nd_idx = 0;
362 struct nextdma_status *stat local in function:nextdma_rotate
410 struct nextdma_status *stat = &nsc->sc_stat; local in function:nextdma_setup_curr_regs
469 struct nextdma_status *stat = &nsc->sc_stat; local in function:nextdma_setup_cont_regs
559 struct nextdma_status *stat = &nsc->sc_stat; local in function:nextdma_enet_intr
794 struct nextdma_status *stat = &nsc->sc_stat; local in function:nextdma_finished
806 struct nextdma_status *stat = &nsc->sc_stat; local in function:nextdma_start
910 struct nextdma_status *stat = &nsc->sc_stat; local in function:nextdma_print
[all...]
/src/games/trek/
H A Dshield.c76 char *stat; local in function:shield
91 stat = &Ship.cloaked;
98 stat = &Ship.shldup;
113 if (*stat)
123 i = !*stat;
125 if (*stat == i) {
142 *stat = i;
/src/tests/lib/libc/sys/
H A Dt_stat.c34 #include <sys/stat.h>
51 static const char *path = "stat";
56 atf_tc_set_md_var(tc, "descr", "Test chflags(2) with stat(2)");
61 struct stat sa, sb;
64 (void)memset(&sa, 0, sizeof(struct stat));
65 (void)memset(&sb, 0, sizeof(struct stat));
70 ATF_REQUIRE(stat(path, &sa) == 0);
72 ATF_REQUIRE(stat(path, &sb) == 0);
75 atf_tc_fail("stat(2) did not detect chflags(2)");
89 atf_tc_set_md_var(tc, "descr", "Test stat(
[all...]
/src/lib/libc/compat/gen/
H A Dcompat_glob.c11 #include <sys/stat.h>
13 #include <compat/sys/stat.h>
31 #define stat __compat_stat macro

Completed in 25 milliseconds

1234567891011>>