/freebsd/tools/tools/locale/tools/ |
H A D | finalize | 3 # SPDX-License-Identifier: BSD-2-Clause 35 set -e 44 [ $# -ne 1 ] && usage 45 [ $1 = "monetdef" -o $1 = "msgdef" -o $1 = "colldef" -o \ 46 $1 = "numericdef" -o $1 = "timedef" -o $1 = "ctypedef" ] || usage 49 base=${BASEDIR:-$(dirname ${self})} 62 FULLMAP=${TMPDIR}/utf8-map 63 FULLEXTRACT=${TMPDIR}/extracted-names 73 mkdir -p $old $new 81 nname=`echo $oldname | awk '{ split($0, a, "_"); print a[1]"_"a[3]"@"a[2];} '` [all …]
|
/freebsd/contrib/tcpdump/ |
H A D | README.md | 3 **To report a security issue please send an e-mail to security@tcpdump.org.** 11 https://github.com/the-tcpdump-group/tcpdump.git 22 which simplifies installation of updates and long-term maintenance. However, 32 * HP-UX 11i 43 Tcpdump uses libpcap, a system-independent interface for user-level 56 taken from Sun's etherfind were later re-written by Steven McCanne of 72 [tcpslice](https://github.com/the-tcpdump-group/tcpslice). 76 ### The original LBL README by Steve McCanne, Craig Leres and Van Jacobson 78 This directory also contains some short awk programs intended as 82 send-ack.awk [all …]
|
/freebsd/contrib/one-true-awk/testdir/ |
H A D | T.argv | 3 awk=${awk-../a.out} 7 $awk ' 9 for (i = 1; i < ARGC-1; i++) 19 $awk ' 23 if (i < ARGC-1) 32 $awk ' 35 ARGV[ARGC-1] = "" 42 $awk 55 $awk '{print L $0}' L=foo <foo0 >foo2 64 $awk '{print L $0}' L=foo foo0 >foo2 [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/snapshot/ |
H A D | snapshot_001_pos.ksh | 1 #! /usr/local/bin/ksh93 -p 37 # system has been changed. Uses 'sum -r'. 43 # 4. Append to the original file 50 # CODING_STATUS: COMPLETED (2005-07-04) 61 if [[ $? -eq 0 ]]; then 65 if [[ -e $SNAPDIR ]]; then 66 log_must $RM -rf $SNAPDIR > /dev/null 2>&1 69 if [[ -e $TESTDIR ]]; then 70 log_must $RM -rf $TESTDIR/* > /dev/null 2>&1 74 log_assert "Verify a file system snapshot is identical to original." [all …]
|
H A D | snapshot_005_pos.ksh | 1 #! /usr/local/bin/ksh93 -p 36 # system has been changed. Uses 'sum -r'. 42 # 4) Append to the original file 49 # CODING_STATUS: COMPLETED (2005-07-04) 60 if [[ $? -eq 0 ]]; then 64 if [[ -e $SNAPDIR1 ]]; then 65 log_must $RM -rf $SNAPDIR1 > /dev/null 2>&1 68 if [[ -e $TESTDIR ]]; then 69 log_must $RM -rf $TESTDIR/* > /dev/null 2>&1 74 "the original dataset." [all …]
|
/freebsd/contrib/atf/ |
H A D | COPYING | 69 original authors have agreed to relicense their work so that this project 73 * configure.ac, Makefile.am: The original versions were derived from the 78 * atf-c/ui.c: The format_paragraph and format_text functions were 84 * atf-c++/detail/io.hpp, atf-c++/detail/io.cpp, atf-c++/detail/io_test.cpp: 90 * admin/check-style.sh, admin/check-style-common.awk, 91 admin/check-style-cpp.awk, admin/check-style-shell.awk: These files,
|
/freebsd/crypto/krb5/src/config/ |
H A D | ren2long | 4 # back to their original longer name. The awk script produces a script with 6 # if [ -f <short> ]; then echo ::mv <short> <long> ; mv <short> <long> ; fi 9 find . -type f -print | gawk -f $0.awk | sh -x 2> /dev/null
|
/freebsd/tests/sys/cddl/zfs/tests/history/ |
H A D | history_010_pos.ksh | 1 #!/usr/local/bin/ksh93 -p 39 # 1. Create non-root test user and group. 40 # 2. Do some zfs operation test by root and non-root user. 47 # CODING_STATUS: COMPLETED (2006-12-27) 60 [[ -f $REAL_HISTORY ]] && $RM -f $REAL_HISTORY 61 [[ -f $EXPECT_HISTORY ]] && $RM -f $EXPECT_HISTORY 66 datasetexists $root_testfs && log_must $ZFS destroy -rf $root_testfs 77 uid=$($ID $HIST_USER | $AWK -F= '{print $2}'| $AWK -F"(" '{print $1}' ) 78 gid=$($ID $HIST_USER | $AWK -F= '{print $3}'| $AWK -F"(" '{print $1}' ) 80 # Get original long history [all …]
|
H A D | history_009_pos.ksh | 1 #!/usr/local/bin/ksh93 -p 62 # c-$ identifies permission to create at dataset creation time. 63 # C-$ identifies permission sets to grant locally at dataset 66 # s-$@<name> permissions defined in specified set @<name> 67 # S-$@<name> Sets defined in named set @<name> 78 # CODING_STATUS: COMPLETED (2006-12-26) 91 if [[ -f $REAL_HISTORY ]]; then 92 log_must $RM -f $REAL_HISTORY 94 if [[ -f $ADD_HISTORY ]]; then 95 log_must $RM -f $ADD_HISTORY [all …]
|
H A D | history_common.kshlib | 33 # $1-n arguments for execution. 37 [[ -z $EXPECT_HISTORY ]] && log_fail "EXPECT_HISTORY is undefined." 48 shift $(($OPTIND -1)) 53 log_must $SU $user -c "$@" 55 user_id=$(id -u $user) 67 # Get the basename of command. i.e: /usr/sbin/zpool -> zpool 68 typeset cmd=$($ECHO $cmdline | $AWK '{print $1}') 73 print -n $cmd $cmdline >> $EXPECT_HISTORY 74 if [[ -n $long_hist ]]; then 79 [ -n "$zn" ] && zn=":$zn" [all …]
|
/freebsd/tools/ifnet/ |
H A D | convert_ifapi.sh | 39 if [ $# -lt 1 ] 45 # XXX - This needs to change if the data structure uses different name 55 *) c="-" ;; 61 # Handle the case where $__ifp__->if_blah = XX; 63 if echo $line | grep "$__ifp__->.* = " > /dev/null 2>&1 65 if echo $line | grep "\[$__ifp__->.* = " > /dev/null 2>&1; then 66 # Special case of array[ifp->member] = value 69 word=`echo $line | awk -F "if_" ' { print $2 }' | awk -F" =" '{ print $1 }'` 70 value=`echo $line | awk -F "=" '{ print $2 }' | sed -e 's/;//g'` 72 new=`echo $new | sed -e 's/&/\\\&/'` [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/hotspare/ |
H A D | hotspare_clone_002_pos.ksh | 1 #!/usr/local/bin/ksh93 -p 36 # create clone and then invoke "zpool detach" with the original device, 44 # 5. Do 'zpool detach' with the original device 51 # CODING STATUS: COMPLETED (2006-06-07) 90 [[ ! -e $file ]] && \ 92 checksum2=$($SUM $file | $AWK '{print $1}') 97 log_must $RM -rf $mtpt/clone.0/* 98 log_must $RM -rf $mtpt/clone.1/* 99 log_must $ZFS destroy -Rf $TESTPOOL@snap.1 100 log_must $ZFS destroy -Rf $TESTPOOL@snap.0 [all …]
|
H A D | hotspare_snapshot_002_pos.ksh | 1 #!/usr/local/bin/ksh93 -p 45 # 5. Do 'zpool detach' with the original device 52 # CODING STATUS: COMPLETED (2006-06-07) 89 [[ ! -e $file ]] && \ 91 checksum2=$($SUM $file | $AWK '{print $1}') 99 log_must $ZPOOL add -f "$TESTPOOL" spare $odev 103 log_must $ZPOOL add -f "$TESTPOOL" spare $dev 114 checksum1=$($SUM $MYTESTFILE | $AWK '{print $1}')
|
H A D | hotspare_scrub_002_pos.ksh | 1 #!/usr/local/bin/ksh93 -p 37 # 'zpool scrub will scan spares as well as original devices' 42 # 4. Replace one of the original devices with a spare 51 # CODING STATUS: COMPLETED (2013-01-14) 70 $ZPOOL status $pool | awk -v vdev=$vdev '$1~vdev {print $5; exit}' 93 # Some vdevs (ie raidz1) will display the errors on the spare-0 line 97 [[ $(get_cksum $TESTPOOL "spare-0") > 0 ]] 99 log_must [ $sdev_errors -o $spare0_errors ] 101 # Now clear the old errors, remove the original device and scrub again. 110 if [ $(get_cksum $TESTPOOL $sdev) -ne 0 ]; then [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/ |
H A D | send-c_zstream_recompress.ksh | 1 #!/bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 30 # 4. Verify the contents match the original filesystem 44 log_must zfs create -o compress=lz4 $sendfs 49 log_must eval "zfs send -c $sendfs@snap | zstream recompress gzip-1 | zfs recv $recvfs" 51 log_must diff -r $dir $recvdir 54 log_must zstream recompress gzip-1 <$BACKDIR/uncompressed >$BACKDIR/compressed 55 typeset uncomp_size=$(wc -c $BACKDIR/uncompressed | awk '{print $1}') 56 typeset comp_size=$(wc -c $BACKDIR/compressed | awk '{print $1}') 57 [[ "$uncomp_size" -gt "$comp_size" ]] || log_fail "recompressed stream was not smaller"
|
/freebsd/lib/libstdbuf/ |
H A D | libstdbuf.3 | 46 .Bl -tag -width size -offset indent 56 .Bl -tag -width size -offset indent 70 .Xr awk 1 75 is used to force it to be line-buffered so 78 .Bd -literal -offset indent 80 STDBUF_1=L awk '$2 > 1 || $3 > 1' | cat -n 95 .An -nosplit 96 The original idea of the
|
/freebsd/usr.bin/stdbuf/ |
H A D | stdbuf.1 | 49 .Bl -tag -width Ds 72 .Bl -tag -width size -offset indent 86 .Xr awk 1 91 is used to force it to be line-buffered so 94 .Bd -literal -offset indent 95 # vmstat 1 | stdbuf -o L awk '$2 > 1 || $3 > 1' | cat -n 106 .An -nosplit 107 The original idea of the
|
/freebsd/crypto/krb5/src/windows/ |
H A D | README | 2 ---------------------------------------- 21 * Some common Unix utilities such as sed/awk/cp/cat installed in the 22 command-line path. 26 tools are in your command-line path. WiX version 3.11.1 is verified 31 utilities to the command-line path. In some versions of Windows (not 33 obtained via the Utilities and SDK for UNIX-based Applications, which 35 Note that the Windows nmake will not find the SUA awk utility in the 36 path unless it is named awk.exe; the permissions on the utility may 37 need correcting if awk.exe is created as a copy of the original awk. 54 After Visual Studio is installed, you should be able to invoke 32-bit [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/zvol/zvol_swap/ |
H A D | zvol_swap_003_pos.ksh | 1 #! /bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 11 # or https://opensource.org/licenses/CDDL-1.0. 52 [[ -f $TESTDIR/$TESTFILE ]] && log_must rm -f $TESTDIR/$TESTFILE 53 [[ -f $NEW_VFSTAB_FILE ]] && log_must rm -f $NEW_VFSTAB_FILE 54 [[ -f $PREV_VFSTAB_FILE ]] && \ 56 [[ -f $PREV_VFSTAB_FILE ]] && rm -f $PREV_VFSTAB_FILE 61 log_must swap -d $voldev 76 [[ -f $NEW_VFSTAB_FILE ]] && cp /dev/null $NEW_VFSTAB_FILE 78 awk '$4 != "swap" {print $1}' /etc/vfstab > $NEW_VFSTAB_FILE [all …]
|
/freebsd/usr.bin/gzip/ |
H A D | znew | 1 #!/bin/sh - 6 #- 24 a=`du -k "$1" | awk '{ print $1 }'` 25 b=`du -k "$2" | awk '{ print $1 }'` 26 test $a -lt $b 29 # Check gzip integrity if the -t flag is specified 31 if test $tflag -eq 1; then 32 gzip -qt < "$1" 42 if test ! -e "$filez"; then 46 if test ! -f "$filez"; then [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_status/ |
H A D | zpool_status_007_pos.ksh | 1 #!/bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 11 # or https://opensource.org/licenses/CDDL-1.0. 36 # fs->snap1->clone1->snap2->clone2->... 37 # 4. Read the original file and immediately delete it 39 # 6. Snapshot clone2->snapxx and clone into snapxx->clonexx 40 # 7. Verify we report errors in the pool in 'zpool status -v' 42 # 9. Verify we report errors in the pool in 'zpool status -v' 54 rm -f $TESTDIR/vdev_a 62 truncate -s $MINVDEVSIZE $TESTDIR/vdev_a [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/bclone/ |
H A D | bclone_common.kshlib | 1 # SPDX-License-Identifier: CDDL-1.0 10 # or https://opensource.org/licenses/CDDL-1.0. 29 export RECORDSIZE=$(zfs get -Hp -o value recordsize $TESTPOOL/$TESTFS) 36 if is_linux && [[ $(linux_version) -lt $(linux_version "5.3") ]]; then 37 log_unsupported "copy_file_range can't copy cross-filesystem before Linux 5.3" 41 # https://github.com/freebsd/freebsd-src/commit/969071be938c 42 if is_freebsd && [ $(freebsd_version) -lt $(freebsd_version 14.0) ] ; then 43 log_unsupported "Cloning across datasets not supported in $(uname -r)" 50 typeset -r size=$1 51 typeset -r dir=$2 [all …]
|
/freebsd/sys/conf/ |
H A D | kern.post.mk | 16 kernel-install: _dtbinstall 70 ${target}: kernel-${target} 72 ${target}: modules-${target} 73 modules-${target}: 99 OSRELDATE!= awk '/^\#define[[:space:]]*__FreeBSD_version/ { print $$3 }' \ 109 -u CC \ 110 -u CXX \ 111 -u CPP \ 112 -u MAKESYSPATH \ 113 -u MK_AUTO_OBJ \ [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/direct/ |
H A D | dio.kshlib | 1 # SPDX-License-Identifier: CDDL-1.0 30 rm -f $DIO_VDEVS 36 function dio_and_verify # mode file-size block-size directory ioengine extra-args 46 log_must fio --directory=$mntpnt --name=direct-$mode \ 47 --rw=$mode --size=$size --bs=$bs --direct=1 --numjobs=1 \ 48 --verify=sha1 --ioengine=$ioengine --fallocate=none \ 49 --group_reporting --minimal --do_verify=1 $extra_args 53 log_must fio --directory=$mntpnt --name=direct-$mode \ 54 --rw=read --size=$size --bs=$bs --direct=0 --numjobs=1 \ 55 --ioengine=$ioengine --group_reporting --minimal [all …]
|
/freebsd/usr.bin/file/ |
H A D | Makefile | 2 # Copyright (c) David E. O'Brien, 2000-2004, 2009 3 # Copyright (c) Ian F. Darwin 86/09/01 - see LEGAL.NOTICE. 18 # misrepresented as being the original software. Since few users 32 CFLAGS+= -DMAGIC='"${MAGICPATH}/magic"' -DHAVE_CONFIG_H 33 CFLAGS+= -I${SRCTOP}/lib/libmagic 37 FILEVER!= awk '$$1 == "\#define" && $$2 == "VERSION" { print $$3; exit }' \ 48 ${mp}: ${mp:C/[0-9]/man/} 49 sed -e 's/__FSECTION__/5/g' -e 's/__CSECTION__/1/g' \ 50 -e 's/__VERSION__/${FILEVER}/g' \ 51 -e 's,__MAGIC__,${MAGICPATH}/magic,g' ${.ALLSRC} > ${.TARGET}
|