| /freebsd-13-stable/contrib/subversion/subversion/libsvn_fs_x/ |
| HD | rev_file.c | 45 apr_file_t *file; member 84 svn_fs_x__revision_file_t *file = apr_palloc(result_pool, sizeof(*file)); in create_revision_file() local 85 file->fs = fs; in create_revision_file() 86 file->file_info.is_packed = FALSE; in create_revision_file() 87 file->file_info.start_revision = SVN_INVALID_REVNUM; in create_revision_file() 88 file->file = NULL; in create_revision_file() 89 file->stream = NULL; in create_revision_file() 90 file->p2l_stream = NULL; in create_revision_file() 91 file->l2p_stream = NULL; in create_revision_file() 92 file->block_size = ffd->block_size; in create_revision_file() [all …]
|
| /freebsd-13-stable/contrib/subversion/subversion/libsvn_fs_fs/ |
| HD | rev_file.c | 37 init_revision_file(svn_fs_fs__revision_file_t *file, in init_revision_file() argument 44 file->is_packed = svn_fs_fs__is_packed_rev(fs, revision); in init_revision_file() 45 file->start_revision = svn_fs_fs__packed_base_rev(fs, revision); in init_revision_file() 47 file->file = NULL; in init_revision_file() 48 file->stream = NULL; in init_revision_file() 49 file->p2l_stream = NULL; in init_revision_file() 50 file->l2p_stream = NULL; in init_revision_file() 51 file->block_size = ffd->block_size; in init_revision_file() 52 file->l2p_offset = -1; in init_revision_file() 53 file->l2p_checksum = NULL; in init_revision_file() [all …]
|
| /freebsd-13-stable/contrib/netbsd-tests/include/ |
| HD | t_bitstring.c | 46 printbits(FILE *file, bitstr_t *b, int n) in printbits() argument 54 (void) fprintf(file, "%3d %3d ", jc, js); in printbits() 57 (void) fprintf(file, "%c", (bit_test(b, i) ? '1' : '0')); in printbits() 60 (void) fprintf(file, "%c", '\n'); in printbits() 64 calculate_data(FILE *file, const int test_length) in calculate_data() argument 71 (void) fprintf(file, "Testing with TEST_LENGTH = %d\n\n", test_length); in calculate_data() 73 (void) fprintf(file, "test _bit_byte, _bit_mask, and bitstr_size\n"); in calculate_data() 74 (void) fprintf(file, " i _bit_byte(i) _bit_mask(i) bitstr_size(i)\n"); in calculate_data() 77 (void) fprintf(file, "%3d%15u%15u%15zu\n", in calculate_data() 83 (void) fprintf(file, "\ntest bit_alloc, clearbits, bit_ffc, bit_ffs\n"); in calculate_data() [all …]
|
| /freebsd-13-stable/usr.sbin/etcupdate/ |
| HD | etcupdate.sh | 73 etcupdate revert [-d workdir] [-D destdir] [-L logfile] file ... 186 local destdir dir file make 201 for file in $PREWORLD_FILES; do 202 name=$(basename $file) 204 cp -p $SRCDIR/$file $1/etc/$name || return 1 396 local contents file 405 for file in $contents; do 406 if ! compare $1/$file $2/$file; then 410 if [ -d $1/$file ]; then 411 if ! dir_subset $1/$file $2/$file; then [all …]
|
| /freebsd-13-stable/contrib/netbsd-tests/usr.bin/id/ |
| HD | 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 59 atf_check -s eq:1 -o empty -e file:experr ./run_id.sh nonexistent 93 atf_check -s eq:0 -o file:expout -e empty ./run_id.sh -G 94 atf_check -s eq:0 -o file:expout -e empty ./run_id.sh -G 100 95 atf_check -s eq:0 -o file:expout -e empty ./run_id.sh -G test [all …]
|
| /freebsd-13-stable/usr.bin/tail/ |
| HD | forward.c | 241 show(file_info_t *file) in show() argument 245 while ((ch = getc(file->fp)) != EOF) { in show() 246 if (last != file) { in show() 248 printfn(file->file_name, 1); in show() 249 last = file; in show() 255 if (ferror(file->fp)) { in show() 256 fclose(file->fp); in show() 257 file->fp = NULL; in show() 258 ierr(file->file_name); in show() 261 clearerr(file->fp); in show() [all …]
|
| /freebsd-13-stable/usr.sbin/etcupdate/tests/ |
| HD | always_test.sh | 106 echo "foo" > $OLD/first/difffiles/second/file 107 echo "bar" > $TEST/first/difffiles/second/file 122 echo "new" > $NEW/second/second/difffiles/file 123 echo "test" > $TEST/second/second/difffiles/file 152 ln -s "old" $OLD/difftype/difftype/difffiles/file 153 echo "foo" > $NEW/difftype/difftype/difffiles/file 154 echo "bar" > $TEST/difftype/difftype/difffiles/file 177 echo "foo" > $OLD/difffiles/first/first/file 178 echo "bar" > $NEW/difffiles/first/first/file 183 echo "old" > $OLD/difffiles/difftype/difftype/file [all …]
|
| HD | tests_test.sh | 109 echo "foo" > $i/equal/equal/equal/file 118 echo "foo" > $i/equal/first/first/file 142 echo "foo" > $i/equal/difffiles/difffiles/file 144 echo "bar" > $TEST/equal/difffiles/difffiles/file 150 echo "foo" > $i/first/equal/second/file 154 echo "foo" > $i/first/equal/second/fulldir/file 163 echo "foo" > $OLD/first/first/equal/file 191 echo "foo" > $OLD/first/difffiles/second/file 192 echo "bar" > $TEST/first/difffiles/second/file 199 echo "bar" > $NEW/second/equal/first/file [all …]
|
| HD | fbsdid_test.sh | 70 local file 72 file=$1 75 echo -n '# $FreeBSD' >> $file 76 echo -n "$@" >> $file 77 echo '$' >> $file 102 an old file 107 a new file 117 another old file 122 another new file 139 this is the old file [all …]
|
| /freebsd-13-stable/contrib/netbsd-tests/usr.bin/sdiff/ |
| HD | 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 \ 55 atf_check -o file:$(atf_get_srcdir)/d_iflags_a1.out -s eq:1 sdiff ${tail1} 56 atf_check -o file:$(atf_get_srcdir)/d_iflags_a2.out -s eq:1 sdiff ${tail2} 57 atf_check -o file:$(atf_get_srcdir)/d_iflags_b1.out -s eq:1 sdiff -s ${tail1} 58 atf_check -o file:$(atf_get_srcdir)/d_iflags_b2.out -s eq:1 sdiff -s ${tail2} 59 atf_check -o file:$(atf_get_srcdir)/d_iflags_c1.out -s eq:1 sdiff -l ${tail1} 60 atf_check -o file:$(atf_get_srcdir)/d_iflags_c2.out -s eq:1 sdiff -l ${tail2} 61 atf_check -o file:$(atf_get_srcdir)/d_iflags_d1.out -s eq:1 sdiff -s ${tail1} [all …]
|
| /freebsd-13-stable/sys/compat/linuxkpi/common/include/linux/ |
| HD | file.h | 44 #undef file 51 struct file *file; in linux_fget() local 55 &cap_no_rights, &file) != 0) in linux_fget() 59 if (file->f_data == NULL || in linux_fget() 60 file->f_ops != &linuxfileops) { in linux_fget() 61 fdrop(file, curthread); in linux_fget() 64 return ((struct linux_file *)file->f_data); in linux_fget() 88 struct file *file; in put_unused_fd() local 91 &cap_no_rights, &file) != 0) { in put_unused_fd() 99 fdclose(curthread, file, fd); in put_unused_fd() [all …]
|
| /freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/acl/off/ |
| HD | posixmode.ksh | 71 typeset file=$dir/file 79 log_must touch $file 80 log_must chown :$wheel $file 82 log_must rm $file 84 log_must touch $file 85 log_must chown :$wheel $file 86 log_must user_run $other rm $file 89 log_must user_run $owner touch $file 90 log_must chown :$group $file 92 log_must user_run $owner rm $file [all …]
|
| /freebsd-13-stable/sys/contrib/libsodium/regen-msvc/ |
| HD | regen-msvc.py | 11 for file in glob.iglob("src/libsodium/**/*.c", recursive=True): 12 file = file.replace("/", "\\") variable 13 tlv1 = tlv1 + " <ClCompile Include=\"{}\" />\r\n".format(file) 16 for file in glob.iglob("src/libsodium/**/*.h", recursive=True): 17 file = file.replace("/", "\\") variable 18 tlv2 = tlv2 + " <ClInclude Include=\"{}\" />\r\n".format(file) 21 for file in glob.iglob("src/libsodium/**/*.c", recursive=True): 22 file = file.replace("/", "\\") variable 23 tlf1 = tlf1 + " <ClCompile Include=\"{}\">\r\n".format(file) 28 for file in glob.iglob("src/libsodium/**/*.h", recursive=True): [all …]
|
| /freebsd-13-stable/share/mk/ |
| HD | bsd.files.mk | 66 .for file in ${${group}} 67 ${group}OWN_${file}?= ${${group}OWN} 68 ${group}GRP_${file}?= ${${group}GRP} 70 ${group}OWN_${file}= ${SHAREOWN} 71 ${group}GRP_${file}= ${SHAREGRP} 73 ${group}MODE_${file}?= ${${group}MODE} 77 ${group}DIR_${file}?= ${${group}DIR} 78 .if ${${group}DIR_${file}:S/^\///} == ${${group}DIR_${file}} 80 _${group}DIR_${file}= ${${group}DIR_${file}} 83 _${group}DIR_${file}= ${group}DIR_${file} [all …]
|
| /freebsd-13-stable/sys/ofed/drivers/infiniband/core/ |
| HD | ib_user_mad.c | 152 static int hdr_size(struct ib_umad_file *file) in hdr_size() argument 154 return file->use_pkey_index ? sizeof (struct ib_user_mad_hdr) : in hdr_size() 159 static struct ib_mad_agent *__get_agent(struct ib_umad_file *file, int id) in __get_agent() argument 161 return file->agents_dead ? NULL : file->agent[id]; in __get_agent() 164 static int queue_packet(struct ib_umad_file *file, in queue_packet() argument 170 mutex_lock(&file->mutex); in queue_packet() 175 if (agent == __get_agent(file, packet->mad.hdr.id)) { in queue_packet() 176 list_add_tail(&packet->list, &file->recv_list); in queue_packet() 177 wake_up_interruptible(&file->recv_wait); in queue_packet() 182 mutex_unlock(&file->mutex); in queue_packet() [all …]
|
| HD | ib_uverbs_main.c | 87 static ssize_t (*uverbs_cmd_table[])(struct ib_uverbs_file *file, 128 static int (*uverbs_ex_cmd_table[])(struct ib_uverbs_file *file, 197 struct ib_uverbs_event_file *file = in ib_uverbs_release_event_file() local 200 kfree(file); in ib_uverbs_release_event_file() 203 void ib_uverbs_release_ucq(struct ib_uverbs_file *file, in ib_uverbs_release_ucq() argument 220 spin_lock_irq(&file->async_file->lock); in ib_uverbs_release_ucq() 225 spin_unlock_irq(&file->async_file->lock); in ib_uverbs_release_ucq() 228 void ib_uverbs_release_uevent(struct ib_uverbs_file *file, in ib_uverbs_release_uevent() argument 233 spin_lock_irq(&file->async_file->lock); in ib_uverbs_release_uevent() 238 spin_unlock_irq(&file->async_file->lock); in ib_uverbs_release_uevent() [all …]
|
| /freebsd-13-stable/tests/sys/audit/ |
| HD | Makefile | 4 ATF_TESTS_C= file-attribute-access 5 ATF_TESTS_C+= file-attribute-modify 6 ATF_TESTS_C+= file-create 7 ATF_TESTS_C+= file-delete 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 20 SRCS.file-attribute-access+= utils.c 21 SRCS.file-attribute-modify+= file-attribute-modify.c [all …]
|
| /freebsd-13-stable/contrib/libarchive/libarchive/ |
| HD | archive_read_support_format_iso9660.c | 337 struct file_info *file; member 424 struct file_info *file, const unsigned char *start, 427 struct file_info *file); 445 struct file_info *file); 448 struct file_info *file, uint64_t key); 451 #define add_entry(arch, iso9660, file) \ argument 452 heap_add_entry(arch, &((iso9660)->pending_files), file, file->offset) 1161 struct file_info *file; in choose_volume() local 1196 file = parse_file_info(a, NULL, block, vd->size); in choose_volume() 1197 if (file == NULL) in choose_volume() [all …]
|
| /freebsd-13-stable/usr.bin/sdiff/tests/ |
| HD | 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 \ 55 atf_check -o file:$(atf_get_srcdir)/d_iflags_a1.out -s eq:1 sdiff ${tail1} 56 atf_check -o file:$(atf_get_srcdir)/d_iflags_a2.out -s eq:1 sdiff ${tail2} 57 atf_check -o file:$(atf_get_srcdir)/d_iflags_b1.out -s eq:1 sdiff -s ${tail1} 58 atf_check -o file:$(atf_get_srcdir)/d_iflags_b2.out -s eq:1 sdiff -s ${tail2} 59 atf_check -o file:$(atf_get_srcdir)/d_iflags_c1.out -s eq:1 sdiff -l ${tail1} 60 atf_check -o file:$(atf_get_srcdir)/d_iflags_c2.out -s eq:1 sdiff -l ${tail2} 61 atf_check -o file:$(atf_get_srcdir)/d_iflags_d1.out -s eq:1 sdiff -s ${tail1} [all …]
|
| /freebsd-13-stable/contrib/diff/src/ |
| HD | diff.c | 1039 #define DIR_P(f) (S_ISDIR (cmp.file[f].stat.st_mode) != 0) in compare_files() 1054 char const *dir = parent->file[name0 == 0].name; in compare_files() 1064 memset (cmp.file, 0, sizeof cmp.file); in compare_files() 1074 cmp.file[0].desc = name0 == 0 ? NONEXISTENT : UNOPENED; in compare_files() 1075 cmp.file[1].desc = name1 == 0 ? NONEXISTENT : UNOPENED; in compare_files() 1088 cmp.file[0].name = name0; in compare_files() 1089 cmp.file[1].name = name1; in compare_files() 1093 cmp.file[0].name = free0 in compare_files() 1094 = dir_file_pathname (parent->file[0].name, name0); in compare_files() 1095 cmp.file[1].name = free1 in compare_files() [all …]
|
| /freebsd-13-stable/contrib/netbsd-tests/bin/cp/ |
| HD | t_cp.sh | 41 echo "I'm a file" > file 44 ln -s file link 64 chmod 777 file 65 atf_check -s eq:0 -o empty -e empty cp file file2 66 cp_compare file_to_file_simple file file2 71 chmod 644 file 73 cp_compare file_to_file_simple file file2 81 chmod 644 file 82 chflags nodump file 83 atf_check -s eq:0 -o empty -e empty cp -p file file3 [all …]
|
| /freebsd-13-stable/contrib/apr/file_io/unix/ |
| HD | buffer.c | 21 APR_DECLARE(apr_status_t) apr_file_buffer_set(apr_file_t *file, in apr_file_buffer_set() argument 27 file_lock(file); in apr_file_buffer_set() 29 if(file->buffered) { in apr_file_buffer_set() 31 rv = apr_file_flush_locked(file); in apr_file_buffer_set() 33 file_unlock(file); in apr_file_buffer_set() 38 file->buffer = buffer; in apr_file_buffer_set() 39 file->bufsize = bufsize; in apr_file_buffer_set() 40 file->buffered = 1; in apr_file_buffer_set() 41 file->bufpos = 0; in apr_file_buffer_set() 42 file->direction = 0; in apr_file_buffer_set() [all …]
|
| /freebsd-13-stable/sys/sys/ |
| HD | file.h | 76 struct file; 87 off_t foffset_lock(struct file *fp, int flags); 88 void foffset_lock_uio(struct file *fp, struct uio *uio, int flags); 89 void foffset_unlock(struct file *fp, off_t val, int flags); 90 void foffset_unlock_uio(struct file *fp, struct uio *uio, int flags); 93 foffset_get(struct file *fp) in foffset_get() 99 typedef int fo_rdwr_t(struct file *fp, struct uio *uio, 102 typedef int fo_truncate_t(struct file *fp, off_t length, 104 typedef int fo_ioctl_t(struct file *fp, u_long com, void *data, 106 typedef int fo_poll_t(struct file *fp, int events, [all …]
|
| /freebsd-13-stable/usr.bin/hexdump/tests/ |
| HD | 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" \ 86 atf_check -o file:"$(atf_get_srcdir)/d_hexdump_UCflag_a.out" \ [all …]
|
| /freebsd-13-stable/contrib/ofed/opensm/opensm/ |
| HD | osm_dump.c | 63 static void dump_ucast_path_distribution(cl_map_item_t * item, FILE * file, in dump_ucast_path_distribution() argument 77 fprintf(file, "dump_ucast_path_distribution: Switch 0x%" PRIx64 "\n" in dump_ucast_path_distribution() 83 fprintf(file, "\n %03u : %u", i, num_paths); in dump_ucast_path_distribution() 85 fprintf(file, " (switch management port)"); in dump_ucast_path_distribution() 98 fprintf(file, " (link to switch"); in dump_ucast_path_distribution() 101 fprintf(file, " (link to router"); in dump_ucast_path_distribution() 104 fprintf(file, " (link to CA"); in dump_ucast_path_distribution() 107 fprintf(file, " (link to unknown node type"); in dump_ucast_path_distribution() 111 fprintf(file, " 0x%" PRIx64 ")", remote_guid_ho); in dump_ucast_path_distribution() 114 fprintf(file, "\n"); in dump_ucast_path_distribution() [all …]
|