| /openbsd-src/gnu/usr.bin/perl/lib/File/ |
| H A D | stat.t | 14 use File::stat; 19 my @stat = CORE::stat $file; 20 my $stat = File::stat::stat($file); 21 isa_ok($stat, 'File::stat', 'should build a stat object'); 22 is_deeply($stat, \@stat, '... and matches the builtin'); 43 is($stat->$meth, $stat[$i], "$desc in position $i"); 48 my $stat2 = stat $file; 51 is_deeply($stat2, $stat, '... and matches the direct call'); 56 my @stat = CORE::stat $file; 57 my $stat = File::stat::stat($file); [all …]
|
| H A D | stat-7896.t | 5 use File::stat; 15 is(File::stat::stat('/notafile'), undef, 'invalid file should fail'); 22 is(File::stat::stat('/notafile'), undef, 'invalid file should fail again'); 25 is(File::stat::stat('/notafile'), undef, 'invalid file should fail again');
|
| /openbsd-src/usr.bin/rsync/ |
| H A D | sender.c | 48 struct blkstat stat; /* status of file being updated */ member 73 if (p->stat.map != MAP_FAILED) in send_up_reset() 74 munmap(p->stat.map, p->stat.mapsz); in send_up_reset() 76 p->stat.map = MAP_FAILED; in send_up_reset() 77 p->stat.mapsz = 0; in send_up_reset() 79 if (p->stat.fd != -1) in send_up_reset() 80 close(p->stat.fd); in send_up_reset() 82 p->stat.fd = -1; in send_up_reset() 86 p->stat.offs = 0; in send_up_reset() 87 p->stat.hint = 0; in send_up_reset() [all …]
|
| /openbsd-src/gnu/usr.bin/cvs/ |
| H A D | depcomp | 55 stat=$? 56 if test $stat -eq 0; then : 59 exit $stat 78 stat=$? 79 if test $stat -eq 0; then : 82 exit $stat 120 stat=$? 121 if test $stat -eq 0; then : 124 exit $stat 157 stat=$? [all …]
|
| /openbsd-src/regress/sys/ffs/tests/chmod/ |
| H A D | 00.t | 15 expect 0644 stat ${n0} mode 17 expect 0111 stat ${n0} mode 21 expect 0755 stat ${n0} mode 23 expect 0753 stat ${n0} mode 27 expect 0644 stat ${n0} mode 29 expect 0310 stat ${n0} mode 34 expect 0644 stat ${n1} mode 36 expect 0321 stat ${n1} mode 43 ctime1=`${FSTEST} stat ${n0} ctime` 46 ctime2=`${FSTEST} stat ${n0} ctime` [all …]
|
| /openbsd-src/usr.sbin/rpc.lockd/ |
| H A D | procs.c | 312 result.stat.stat = nlm_granted; in nlm_test_1_svc() 314 result.stat.stat = nlm_denied; in nlm_test_1_svc() 315 memcpy(&result.stat.nlm_testrply_u.holder, holder, in nlm_test_1_svc() 317 result.stat.nlm_testrply_u.holder.l_offset = in nlm_test_1_svc() 319 result.stat.nlm_testrply_u.holder.l_len = in nlm_test_1_svc() 346 result.stat.stat = nlm_granted; in nlm_test_msg_1_svc() 348 result.stat.stat = nlm_denied; in nlm_test_msg_1_svc() 349 memcpy(&result.stat.nlm_testrply_u.holder, holder, in nlm_test_msg_1_svc() 351 result.stat.nlm_testrply_u.holder.l_offset = in nlm_test_msg_1_svc() 353 result.stat.nlm_testrply_u.holder.l_len = in nlm_test_msg_1_svc() [all …]
|
| /openbsd-src/regress/lib/libc/sys/ |
| H A D | t_stat.c | 62 struct stat sa, sb; in ATF_TC_BODY() 65 (void)memset(&sa, 0, sizeof(struct stat)); in ATF_TC_BODY() 66 (void)memset(&sb, 0, sizeof(struct stat)); in ATF_TC_BODY() 71 ATF_REQUIRE(stat(path, &sa) == 0); in ATF_TC_BODY() 73 ATF_REQUIRE(stat(path, &sb) == 0); in ATF_TC_BODY() 96 struct stat sa, sb; in ATF_TC_BODY() 125 (void)memset(&sa, 0, sizeof(struct stat)); in ATF_TC_BODY() 126 (void)memset(&sb, 0, sizeof(struct stat)); in ATF_TC_BODY() 128 ATF_REQUIRE(stat(ftse->fts_parent->fts_path,&sa) == 0); in ATF_TC_BODY() 130 ATF_REQUIRE(stat(".", &sb) == 0); in ATF_TC_BODY() [all …]
|
| /openbsd-src/gnu/usr.bin/perl/dist/Time-HiRes/t/ |
| H A D | stat.t | 7 Test::More::plan(skip_all => "no hi-res stat"); 12 "$^O file timestamps not reliable enough for stat test"); 28 my($a, $stat, $b) = ("a", [Time::HiRes::stat($$)], "b"); 29 is $a, "a", "stat stack discipline"; 30 is $b, "b", "stat stack discipline"; 31 is ref($stat), "ARRAY", "stat returned array"; 32 push @mtime, $stat->[9]; 38 skip "testing stat access time on Haiku", 2; 42 $lstat->[8] = $stat->[8]; 44 is_deeply $lstat, $stat, "write: stat and lstat returned same values"; [all …]
|
| /openbsd-src/regress/sys/ffs/tests/chflags/ |
| H A D | 00.t | 15 expect none stat ${n0} flags 17 expect UF_NODUMP,UF_IMMUTABLE,UF_APPEND,UF_OPAQUE,SF_ARCHIVED,SF_IMMUTABLE,SF_APPEND stat ${n0} fla… 19 expect UF_NODUMP,UF_IMMUTABLE,UF_APPEND,UF_OPAQUE stat ${n0} flags 21 expect SF_ARCHIVED,SF_IMMUTABLE,SF_APPEND stat ${n0} flags 23 expect none stat ${n0} flags 27 expect none stat ${n0} flags 29 expect UF_NODUMP,UF_IMMUTABLE,UF_APPEND,UF_OPAQUE,SF_ARCHIVED,SF_IMMUTABLE,SF_APPEND stat ${n0} fla… 31 expect UF_NODUMP,UF_IMMUTABLE,UF_APPEND,UF_OPAQUE stat ${n0} flags 33 expect SF_ARCHIVED,SF_IMMUTABLE,SF_APPEND stat ${n0} flags 35 expect none stat ${n0} flags [all …]
|
| H A D | 11.t | 16 expect none stat ${n1} flags 18 expect none stat ${n1} flags 21 expect none stat ${n1} flags 23 expect none stat ${n1} flags 28 expect none stat ${n1} flags 30 expect none stat ${n1} flags 33 expect none stat ${n1} flags 35 expect none stat ${n1} flags 40 expect none stat ${n1} flags 42 expect none stat ${n1} flags [all …]
|
| /openbsd-src/regress/sys/ffs/tests/unlink/ |
| H A D | 00.t | 34 ctime1=`${FSTEST} stat ${n0} ctime` 37 ctime2=`${FSTEST} stat ${n0} ctime` 43 ctime1=`${FSTEST} stat ${n0} ctime` 46 ctime2=`${FSTEST} stat ${n0} ctime` 52 ctime1=`${FSTEST} stat ${n0} ctime` 55 ctime2=`${FSTEST} stat ${n0} ctime` 60 ctime1=`${FSTEST} stat ${n0} ctime` 63 ctime2=`${FSTEST} stat ${n0} ctime` 69 time=`${FSTEST} stat ${n0} ctime` 72 mtime=`${FSTEST} stat ${n0} mtime` [all …]
|
| /openbsd-src/regress/sys/ffs/tests/open/ |
| H A D | 00.t | 53 time=`${FSTEST} stat . ctime` 56 atime=`${FSTEST} stat ${n0} atime` 58 mtime=`${FSTEST} stat ${n0} mtime` 60 ctime=`${FSTEST} stat ${n0} ctime` 62 mtime=`${FSTEST} stat . mtime` 64 ctime=`${FSTEST} stat . ctime` 70 dmtime=`${FSTEST} stat . mtime` 71 dctime=`${FSTEST} stat . ctime` 74 mtime=`${FSTEST} stat . mtime` 76 ctime=`${FSTEST} stat . ctime` [all …]
|
| /openbsd-src/regress/sys/ffs/tests/link/ |
| H A D | 00.t | 85 ctime1=`${FSTEST} stat ${n0} ctime` 86 dctime1=`${FSTEST} stat . ctime` 87 dmtime1=`${FSTEST} stat . mtime` 90 ctime2=`${FSTEST} stat ${n0} ctime` 92 dctime2=`${FSTEST} stat . ctime` 94 dmtime2=`${FSTEST} stat . mtime` 100 ctime1=`${FSTEST} stat ${n0} ctime` 101 dctime1=`${FSTEST} stat . ctime` 102 dmtime1=`${FSTEST} stat . mtime` 105 ctime2=`${FSTEST} stat ${n0} ctime` [all …]
|
| /openbsd-src/gnu/usr.bin/texinfo/ |
| H A D | depcomp | 95 stat=$? 96 if test $stat -eq 0; then : 99 exit $stat 118 stat=$? 119 if test $stat -eq 0; then : 122 exit $stat 160 stat=$? 161 if test $stat -eq 0; then : 164 exit $stat 211 stat=$? [all …]
|
| /openbsd-src/regress/sys/ffs/tests/chown/ |
| H A D | 00.t | 40 expect 123,456 stat ${n1} uid,gid 41 expect 123,456 stat ${n0} uid,gid 44 expect 123,456 stat ${n1} uid,gid 45 expect 123,456 stat ${n0} uid,gid 133 ctime1=`${FSTEST} stat ${n0} ctime` 137 ctime2=`${FSTEST} stat ${n0} ctime` 142 ctime1=`${FSTEST} stat ${n0} ctime` 146 ctime2=`${FSTEST} stat ${n0} ctime` 151 ctime1=`${FSTEST} stat ${n0} ctime` 155 ctime2=`${FSTEST} stat ${n0} ctime` [all …]
|
| /openbsd-src/gnu/usr.bin/perl/t/op/ |
| H A D | filetest.t | 87 my ($size) = (stat 'TEST')[7]; 100 like $@, qr/^The stat preceding -l _ wasn't an lstat at /, 264 stat "test.pl"; 266 isnt(stat _, 1, 291 like $@, qr/^The stat preceding -l _ wasn't an lstat at /, 292 '-T HANDLE sets the stat type'; 314 is(-T _, 1, '-T _ works after stat $ioref'); 324 isnt(stat _, 1, '-T _ on closed filehandle resets stat info'); 349 stat 'test.pl'; 351 isnt(stat _, 1, '-T "nonexistent" resets stat success status'); [all …]
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.niklas/ |
| H A D | t139.C | 4 struct stat {}; struct 5 stat gstat; 6 int stat (struct stat*); 7 void f () { struct stat* ps; stat (ps); } in f()
|
| /openbsd-src/sys/arch/armv7/omap/ |
| H A D | ti_iic.c | 223 uint32_t stat; in ti_iic_intr() local 226 stat = I2C_READ_REG(sc, AM335X_I2C_IRQSTATUS); in ti_iic_intr() 227 I2C_WRITE_REG(sc, AM335X_I2C_IRQSTATUS, stat); in ti_iic_intr() 230 ti_iic_handle_intr(sc, stat); in ti_iic_intr() 237 DPRINTF(("ti_iic_intr status 0x%x\n", stat)); in ti_iic_intr() 361 uint16_t con, stat, mask; in ti_iic_op() local 431 stat = ti_iic_stat(sc, mask); in ti_iic_op() 432 DPRINTF(("ti_iic_op stat 0x%x\n", stat)); in ti_iic_op() 433 if (stat == 0) /* timeout */ in ti_iic_op() 436 ti_iic_handle_intr(sc, stat); in ti_iic_op() [all …]
|
| /openbsd-src/bin/ksh/ |
| H A D | c_test.c | 203 struct stat b1, b2; in test_eval() 234 return stat(opnd1, &b1) == 0; in test_eval() 239 return stat(opnd1, &b1) == 0; in test_eval() 241 return stat(opnd1, &b1) == 0 && S_ISREG(b1.st_mode); in test_eval() 243 return stat(opnd1, &b1) == 0 && S_ISDIR(b1.st_mode); in test_eval() 245 return stat(opnd1, &b1) == 0 && S_ISCHR(b1.st_mode); in test_eval() 247 return stat(opnd1, &b1) == 0 && S_ISBLK(b1.st_mode); in test_eval() 249 return stat(opnd1, &b1) == 0 && S_ISFIFO(b1.st_mode); in test_eval() 253 return stat(opnd1, &b1) == 0 && S_ISSOCK(b1.st_mode); in test_eval() 257 return stat(opnd1, &b1) == 0 && in test_eval() [all …]
|
| /openbsd-src/gnu/usr.bin/perl/t/win32/ |
| H A D | stat.t | 30 my @st = stat $0; 32 my @fst = stat $fh; 72 @st = stat("win32"); 98 @st = stat $0; 99 my @lst = stat $tmpfile1; 119 @st = stat "win32"; 120 my @lst = stat $tmpfile1; 147 my @st = stat $tmpfile1; 163 my @mst = stat $tmpfile1; 173 my @st = stat $tmpfile1; [all …]
|
| /openbsd-src/sys/dev/fdt/ |
| H A D | qciic_fdt.c | 145 uint32_t stat; in qciic_fdt_wait() 149 stat = HREAD4(sc, GENI_M_IRQ_STATUS); in qciic_fdt_wait() 150 if (stat & bits) in qciic_fdt_wait() 163 uint32_t stat, word; in qciic_fdt_read() 170 stat = HREAD4(sc, GENI_RX_FIFO_STATUS); in qciic_fdt_read() 171 if (GENI_RX_FIFO_STATUS_WC(stat) > 0) in qciic_fdt_read() 188 uint32_t stat, word; in qciic_fdt_write() 196 stat = HREAD4(sc, GENI_TX_FIFO_STATUS); in qciic_fdt_write() 197 if (stat < 16) in qciic_fdt_write() 216 uint32_t m_cmd, m_param, stat; in qciic_fdt_exec() 142 uint32_t stat; qciic_fdt_wait() local 160 uint32_t stat, word; qciic_fdt_read() local 185 uint32_t stat, word; qciic_fdt_write() local 213 uint32_t m_cmd, m_param, stat; qciic_fdt_exec() local [all...] |
| /openbsd-src/gnu/gcc/fixincludes/tests/base/sys/ |
| H A D | stat.h | 27 static int stat(const char *__f, struct stat *__p) { in stat() function 38 static int stat(__f, __p) in stat() function 40 struct stat *__p; 52 @(#)stat.h 6.1 (ULTRIX) 66 # define __INCstath <sys/stat.h>
|
| /openbsd-src/games/trek/ |
| H A D | shield.c | 70 char *stat; in shield() local 86 stat = &Ship.cloaked; in shield() 95 stat = &Ship.shldup; in shield() 115 if (*stat) in shield() 123 i = !*stat; in shield() 125 if (*stat == i) in shield() 144 *stat = i; in shield()
|
| /openbsd-src/usr.bin/rdistd/ |
| H A D | server.h | 79 char *find_file(char *, struct stat *, int *); 80 mntent_t *findmnt(struct stat *, struct mntinfo *); 84 mntent_t *getmntpt(char *, struct stat *, int *); 85 int is_nfs_mounted(char *, struct stat *, int *); 86 int is_ro_mounted(char *, struct stat *, int *); 87 int is_symlinked(char *, struct stat *, int *);
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/fixinc/tests/base/sys/ |
| H A D | stat.h | 32 static int stat(const char *__f, struct stat *__p) { in stat() function 43 static int stat(__f, __p) in stat() function 45 struct stat *__p; 57 @(#)stat.h 6.1 (ULTRIX) 71 # define __INCstath <sys/stat.h>
|