/freebsd/contrib/netbsd-tests/include/ |
H A D | t_bitstring.c | 146 fprintf(file, "%c", '0'); in calculate_data() 156 (void) fprintf(file, "\n"); in calculate_data() 161 (void) fprintf(file, "%3d ", i); printbits(file, bs, test_length); in calculate_data() 164 (void) fprintf(file, "\n"); in calculate_data() 169 (void) fprintf(file, "%3d ", i); printbits(file, bs, test_length); in calculate_data() 172 (void) fprintf(file, "\n"); in calculate_data() 177 (void) fprintf(file, "%3d ", i); printbits(file, bs, test_length); in calculate_data() 180 (void) fprintf(file, "\n"); in calculate_data() 185 (void) fprintf(file, "%3d ", i); printbits(file, bs, test_length); in calculate_data() 193 (void) fprintf(file, "%3d ", i); printbits(file, bs, test_length); in calculate_data() [all …]
|
/freebsd/usr.sbin/etcupdate/ |
H A D | etcupdate.sh | 451 if ! compare $1/$file $2/$file; then 456 if ! dir_subset $1/$file $2/$file; then 1024 file=$1 1030 compare_fbsdid $DESTDIR/$file $OLDTREE/$file 1090 file=$1 1096 compare $OLDTREE/$file $NEWTREE/$file 1106 compare $NEWTREE/$file $DESTDIR/$file 1116 fbsdid_only $NEWTREE/$file $DESTDIR/$file; then 1256 file=$1 1262 compare $DESTDIR/$file $NEWTREE/$file [all …]
|
/freebsd/tools/test/stress2/tools/ |
H A D | bench.c | 64 char file[128]; in cr1() local 73 snprintf(file, sizeof(file), "%s.%06d.%03d", in cr1() 83 snprintf(file, sizeof(file), "%s.%06d.%03d", in cr1() 95 char file[1024]; in cr2() local 104 snprintf(file, sizeof(file), "%s.%06d.%03d", in cr2() 133 snprintf(file, sizeof(file), "%s/%s.%06d.%03d", in cr3() 143 snprintf(file, sizeof(file), "%s/%s.%06d.%03d", in cr3() 166 snprintf(file, sizeof(file), "%s.%06d.%03d", in rn1() 199 snprintf(file, sizeof(file), "rw1.%06d.%03d", getpid(), i); in rw1() 208 snprintf(file, sizeof(file), "rw1.%06d.%03d", getpid(), i); in rw1() [all …]
|
/freebsd/contrib/netbsd-tests/usr.bin/id/ |
H A D | t_id.sh | 45 atf_check -s eq:0 -o file:expout -e empty ./run_id.sh 46 atf_check -s eq:0 -o file:expout -e empty ./run_id.sh 100 47 atf_check -s eq:0 -o file:expout -e empty ./run_id.sh test 50 atf_check -s eq:0 -o file:expout -e empty ./run_id.sh 0 51 atf_check -s eq:0 -o file:expout -e empty ./run_id.sh root 55 atf_check -s eq:0 -o file:expout -e empty ./run_id.sh 93 atf_check -s eq:0 -o file:expout -e empty ./run_id.sh -G 125 atf_check -s eq:0 -o file:expout -e empty ./run_id.sh -g 159 atf_check -s eq:0 -o file:expout -e empty ./run_id.sh -g 198 atf_check -s eq:0 -o file:expout -e empty ./run_id.sh -p [all …]
|
/freebsd/tools/test/stress2/misc/ |
H A D | bench.sh | 105 char file[128]; 111 snprintf(file, sizeof(file), "t1.%06d.%03d", getpid(), i); 127 char file[128]; 133 snprintf(file, sizeof(file), "t2.%06d.%03d", getpid(), i); 141 snprintf(file, sizeof(file), "t2.%06d.%03d", getpid(), i); 161 snprintf(file, sizeof(file), "%s/t3.%06d.%03d", dir, 187 snprintf(file, sizeof(file), "t4.%06d.%03d", getpid(), i); 213 snprintf(file, sizeof(file), "t5.%06d.%03d", getpid(), i); 238 snprintf(file, sizeof(file), "t6.%06d.%03d", getpid(), i); 249 snprintf(file, sizeof(file), "t6.%06d.%03d", getpid(), i); [all …]
|
H A D | nlink3.sh | 47 char file[100]; 49 snprintf(file, sizeof(file), "f"); 52 err(1, "creat(%s)", file); 57 snprintf(file, sizeof(file), "%d", i); 58 if (link("f", file) == -1) 65 snprintf(file, sizeof(file), "%d", i); 66 if (link("f", file) != -1) 72 snprintf(file, sizeof(file), "%d", i); 73 if (unlink(file) == -1) 78 snprintf(file, sizeof(file), "%d", i); [all …]
|
H A D | fragments.sh | 97 char file[128]; 104 unlink(file); 117 unlink(file); 139 if (unlink(file) == 0) { 149 char file[128]; 173 char file[128]; 197 char file[128]; 200 sprintf(file,"d%d", i); 210 unlink(file); 214 unlink(file); [all …]
|
/freebsd/usr.bin/tail/ |
H A D | forward.c | 246 last = file; in show() 274 for (i = 0, file = files; i < no_files; i++, file++) { in set_events() 275 if (!file->fp) in set_events() 315 for (i = 0, file = files; i < no_files; i++, file++) { in follow() 321 forward(file->fp, file->file_name, style, off, &file->st); in follow() 326 last = --file; in follow() 344 for (i = 0, file = files; i < no_files; i++, file++) { in follow() 346 file->fp = in follow() 350 fstat(fileno(file->fp), &file->st) in follow() 393 for (i = 0, file = files; i < no_files; i++, file++) in follow() [all …]
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | file.h | 44 #undef file 51 struct file *file; in linux_fget() local 60 fdrop(file, curthread); in linux_fget() 87 struct file *file; in put_unused_fd() local 100 fdrop(file, curthread); in put_unused_fd() 106 struct file *file; in fd_install() local 111 filp->_file = file; in fd_install() 126 struct file *file; in get_unused_fd() local 134 fdrop(file, curthread); in get_unused_fd() 141 struct file *file; in get_unused_fd_flags() local [all …]
|
/freebsd/usr.sbin/etcupdate/tests/ |
H A D | always_test.sh | 330 file() function 407 Modified mismatch: /difffiles/difftype/difftype/file (regular file vs fifo file) 439 file /first/difffiles/second/file "bar" 448 file /second/second/difffiles/file "test" 560 file /first/difffiles/second/file "bar" 569 file /second/second/difffiles/file "new" 584 file /difftype/difftype/difffiles/file "foo" 596 file /difffiles/first/first/file "bar" 599 file /difffiles/difftype/difftype/file "new" 624 file /dirchange/todir/difffile/file "baz" [all …]
|
H A D | tests_test.sh | 708 file() function 755 file /equal/equal/equal/file "foo" 773 file /equal/difffiles/difffiles/file "bar" 795 file /first/difffiles/second/file "bar" 798 file /second/equal/first/file "bar" 806 file /second/second/equal/file "foo" 817 file /second/second/difffiles/file "test" 830 file /difftype/difftype/equal/file "bar" 859 file /difffiles/equal/difffiles/file "bar" 881 file /adddir/partial/file "foo" [all …]
|
H A D | fbsdid_test.sh | 70 local file 72 file=$1 77 echo '$' >> $file 102 an old file 107 a new file 117 another old file 122 another new file 168 this is a file 190 this is a file 206 this is a file [all …]
|
/freebsd/contrib/netbsd-tests/usr.bin/sdiff/ |
H A D | t_sdiff.sh | 35 atf_check -o file:$(atf_get_srcdir)/d_flags_l.out -s eq:1 \ 38 atf_check -o file:$(atf_get_srcdir)/d_flags_s.out -s eq:1 \ 41 atf_check -o file:$(atf_get_srcdir)/d_flags_w.out -s eq:1 \ 72 atf_check -o file:$(atf_get_srcdir)/d_tabs.out -s eq:1 \ 105 atf_check -o file:d_input1 -x "yes l | sdiff ${merge_tail}" 108 atf_check -o file:d_input1 -x \ 110 atf_check -o file:d_input2 -x \ 134 atf_check -o file:$(atf_get_srcdir)/d_same.out \ 174 atf_check -o file:expout -s eq:1 -x \ 178 atf_check -o file:expout -s eq:1 -x \ [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/acl/off/ |
H A D | posixmode.ksh | 71 typeset file=$dir/file 79 log_must touch $file 82 log_must rm $file 84 log_must touch $file 100 log_must rm $file 110 log_must touch $file 113 log_must rm $file 115 log_must touch $file 118 log_must rm $file 122 log_must touch $file [all …]
|
/freebsd/sys/contrib/libsodium/regen-msvc/ |
H A D | regen-msvc.py | 11 for file in glob.iglob("src/libsodium/**/*.c", recursive=True): 12 file = file.replace("/", "\\") variable 16 for file in glob.iglob("src/libsodium/**/*.h", recursive=True): 17 file = file.replace("/", "\\") variable 21 for file in glob.iglob("src/libsodium/**/*.c", recursive=True): 22 file = file.replace("/", "\\") variable 29 file = file.replace("/", "\\") variable 36 file = file.replace("/", "\\") variable 42 file = file.replace("/", "\\") variable 54 file = file.replace("/", "\\") variable [all …]
|
/freebsd/share/mk/ |
H A D | bsd.files.mk | 66 .for file in ${${group}} 78 .if ${${group}DIR_${file}:S/^\///} == ${${group}DIR_${file}} 80 _${group}DIR_${file}= ${${group}DIR_${file}} 83 _${group}DIR_${file}= ${group}DIR_${file} 85 ${group}PREFIX_${file}= ${DESTDIR}${${_${group}DIR_${file}}} 103 ${group}NAME_${file}?= ${file:T} 105 STAGE_AS_${file}= ${${group}NAME_${file}} 114 stage_as.${${_${group}DIR_${file}}:C,[/*],_,g}: ${file} 117 _${group}INS_${file}: ${file} installdirs-${_${group}DIR_${file}} 119 -g ${${group}GRP_${file}} -m ${${group}MODE_${file}} \ [all …]
|
/freebsd/tests/sys/audit/ |
H A D | Makefile | 6 ATF_TESTS_C+= file-create 8 ATF_TESTS_C+= file-close 9 ATF_TESTS_C+= file-write 10 ATF_TESTS_C+= file-read 19 SRCS.file-attribute-access+= file-attribute-access.c 21 SRCS.file-attribute-modify+= file-attribute-modify.c 23 SRCS.file-create+= file-create.c 25 SRCS.file-delete+= file-delete.c 27 SRCS.file-close+= file-close.c 29 SRCS.file-write+= file-write.c [all …]
|
/freebsd/sys/ofed/drivers/infiniband/core/ |
H A D | ib_user_mad.c | 161 return file->agents_dead ? NULL : file->agent[id]; in __get_agent() 286 buf += hdr_size(file); in copy_recv_mad() 330 buf += hdr_size(file); in copy_send_mad() 688 agent = ib_register_mad_agent(file->port->ib_dev, file->port->port_num, in ib_umad_reg_agent() 805 agent = ib_register_mad_agent(file->port->ib_dev, file->port->port_num, in ib_umad_reg_agent2() 948 file = kzalloc(sizeof *file, GFP_KERNEL); in ib_umad_open() 949 if (!file) in ib_umad_open() 958 file->port = port; in ib_umad_open() 966 kfree(file); in ib_umad_open() 1003 if (file->agent[i]) in ib_umad_close() [all …]
|
/freebsd/usr.bin/sdiff/tests/ |
H A D | sdiff_test.sh | 35 atf_check -o file:$(atf_get_srcdir)/d_flags_l.out -s eq:1 \ 38 atf_check -o file:$(atf_get_srcdir)/d_flags_s.out -s eq:1 \ 41 atf_check -o file:$(atf_get_srcdir)/d_flags_w.out -s eq:1 \ 72 atf_check -o file:$(atf_get_srcdir)/d_tabs.out -s eq:1 \ 105 atf_check -o file:d_input1 -x "yes l | sdiff ${merge_tail}" 108 atf_check -o file:d_input1 -x \ 110 atf_check -o file:d_input2 -x \ 134 atf_check -o file:$(atf_get_srcdir)/d_same.out \ 174 atf_check -o file:expout -s eq:1 -x \ 178 atf_check -o file:expout -s eq:1 -x \ [all …]
|
/freebsd/usr.bin/hexdump/tests/ |
H A D | hexdump_test.sh | 41 atf_check -o file:"$(atf_get_srcdir)/d_hexdump_bflag_a.out" \ 43 atf_check -o file:"$(atf_get_srcdir)/d_hexdump_bflag_b.out" \ 45 atf_check -o file:"$(atf_get_srcdir)/d_hexdump_bflag_c.out" \ 56 atf_check -o file:"$(atf_get_srcdir)/d_hexdump_cflag_a.out" \ 58 atf_check -o file:"$(atf_get_srcdir)/d_hexdump_cflag_b.out" \ 60 atf_check -o file:"$(atf_get_srcdir)/d_hexdump_cflag_c.out" \ 71 atf_check -o file:"$(atf_get_srcdir)/d_hexdump_UCflag_a.out" \ 73 atf_check -o file:"$(atf_get_srcdir)/d_hexdump_UCflag_b.out" \ 75 atf_check -o file:"$(atf_get_srcdir)/d_hexdump_UCflag_c.out" \ 90 atf_check -o file:"$(atf_get_srcdir)/d_hexdump_UCflag_a.out" \ [all …]
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_read_support_format_iso9660.c | 1829 file->ctime = file->atime = file->mtime; in parse_file_info() 1831 file->rede_files.last = &(file->rede_files.first); in parse_file_info() 2043 file->offset = file->number = file->cl_offset + 1; in parse_file_info() 2057 if (file->cl_offset == file->offset || in parse_file_info() 2287 (((uint64_t)file->ce_offset) + file->ce_size) in register_CE() 2289 offset + file->ce_offset + file->ce_size in register_CE() 2332 heap->reqs[hole].file = file; in register_CE() 2340 heap->reqs[0].file = file; in register_CE() 2410 file = heap->reqs[0].file; in read_CE() 2411 if (file->ce_offset + file->ce_size > step) { in read_CE() [all …]
|
/freebsd/contrib/diff/src/ |
H A D | diff.c | 1064 memset (cmp.file, 0, sizeof cmp.file); in compare_files() 1107 cmp.file[f].desc = cmp.file[0].desc; in compare_files() 1108 cmp.file[f].stat = cmp.file[0].stat; in compare_files() 1132 else if (stat (cmp.file[f].name, &cmp.file[f].stat) != 0) in compare_files() 1156 memset (&cmp.file[f].stat, 0, sizeof cmp.file[f].stat); in compare_files() 1157 cmp.file[f].stat.st_mode = cmp.file[1 - f].stat.st_mode; in compare_files() 1226 cmp.file[0].name, cmp.file[1].name); in compare_files() 1249 = parent->file[cmp.file[0].desc == NONEXISTENT].name; in compare_files() 1275 && cmp.file[0].stat.st_size != cmp.file[1].stat.st_size) in compare_files() 1297 cmp.file[1].desc = cmp.file[0].desc; in compare_files() [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/ |
H A D | mt76x02_debugfs.c | 12 struct mt76x02_dev *dev = file->private; in mt76x02_ampdu_stat_show() 16 seq_puts(file, "Length: "); in mt76x02_ampdu_stat_show() 19 seq_puts(file, "\n"); in mt76x02_ampdu_stat_show() 20 seq_puts(file, "Count: "); in mt76x02_ampdu_stat_show() 22 seq_printf(file, "%8d | ", in mt76x02_ampdu_stat_show() 24 seq_puts(file, "\n"); in mt76x02_ampdu_stat_show() 25 seq_puts(file, "--------"); in mt76x02_ampdu_stat_show() 27 seq_puts(file, "-----------"); in mt76x02_ampdu_stat_show() 28 seq_puts(file, "\n"); in mt76x02_ampdu_stat_show() 58 seq_puts(file, "\n"); in mt76x02_dfs_stat_show() [all …]
|
/freebsd/contrib/netbsd-tests/bin/cp/ |
H A D | t_cp.sh | 41 echo "I'm a file" > file 44 ln -s file link 64 chmod 777 file 71 chmod 644 file 81 chmod 644 file 82 chflags nodump file 93 chmod 644 file 94 chflags nodump file 96 finfo=`stat -f "%f" file` 258 echo "file" > dir/2/file [all …]
|
/freebsd/sys/sys/ |
H A D | file.h | 74 struct file; 91 foffset_get(struct file *fp) in foffset_get() 132 typedef int fo_cmp_t(struct file *fp, struct file *fp1, struct thread *td); 185 struct file { struct 260 struct file **fpp); 262 struct file **fpp); 282 int file_kcmp_generic(struct file *fp1, struct file *fp2, struct thread *td); 300 fhold(struct file *fp) in fhold() 306 struct file *_fp; \ 317 struct file *_fp; \ [all …]
|