/freebsd/usr.bin/renice/tests/ |
H A D | renice_test.sh | 2 # Copyright (c) 2022-2023 Klara, Inc. 4 # SPDX-License-Identifier: BSD-2-Clause 7 # Name of user to use for -u tests when running as root. Beware that 12 atf_check -o empty -e ignore -s exit:0 renice "$@" 16 local pid=$1 17 local expected=$2 18 local actual="$(ps -o nice= -p $pid)" 19 atf_check test "$actual" -eq "$expected" 27 local pid nice incr 29 pid=$! [all …]
|
/freebsd/contrib/netbsd-tests/bin/ps/ |
H A D | t_ps.sh | 43 # for regular expressions to match the text in left- or 44 # right-justified columns. 94 default_keywords='pid tty stat time command' 95 j_keywords='user pid ppid pgid sess jobc state tt time command' 96 l_keywords='uid pid ppid cpu pri nice vsz rss wchan state tt time command' 97 s_keywords='uid pid ppid cpu lid nlwp pri nice vsz rss wchan lstate tt ltime command' 98 u_keywords='user pid %cpu %mem vsz rss tt state start time command' 99 v_keywords='pid state time sl re pagein vsz rss lim tsiz %cpu %mem command' 102 # Convert a list of keywords like "pid comm" to a regexp 103 # like " *PID COMMAND *" [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/soc/qcom/ |
H A D | qcom,smp2p.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Andy Gross <agross@kernel.org> 11 - Bjorn Andersson <bjorn.andersson@linaro.org> 12 - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 16 of a single 32-bit value between two processors. Each value has a single 17 writer (the local side) and a single reader (the remote side). Values are 18 uniquely identified in the system by the directed edge (local processor ID to 35 $ref: /schemas/types.yaml#/definitions/phandle-array [all …]
|
H A D | qcom,smp2p.txt | 4 a single 32-bit value between two processors. Each value has a single writer 5 (the local side) and a single reader (the remote side). Values are uniquely 6 identified in the system by the directed edge (local processor ID to remote 9 - compatible: 15 - interrupts: 17 Value type: <prop-encoded-array> 20 - mboxes: 22 Value type: <prop-encoded-array> 26 - qcom,ipc: 28 Value type: <prop-encoded-array> [all …]
|
/freebsd/tests/sys/fs/fusefs/ |
H A D | locks.cc | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 65 void expect_setlk(uint64_t ino, pid_t pid, uint64_t start, uint64_t end, in expect_setlk() argument 73 in.body.setlk.owner == (uint32_t)pid && in expect_setlk() 77 in.body.setlk.lk.pid == (uint64_t)pid); in expect_setlk() 82 void expect_setlkw(uint64_t ino, pid_t pid, uint64_t start, uint64_t end, in expect_setlkw() argument 90 in.body.setlkw.owner == (uint32_t)pid && in expect_setlkw() 94 in.body.setlkw.lk.pid == (uint64_t)pid); in expect_setlkw() 132 * fall back to local locks. 134 TEST_F(FlockFallback, local) in TEST_F() argument [all …]
|
/freebsd/lib/libnv/tests/ |
H A D | nvlist_send_recv_test.c | 1 /*- 44 #include <atf-c.h> 50 #define fd_is_valid(fd) (fcntl((fd), F_GETFL) != -1 || errno != EBADF) 66 nvlist_add_number(nvl, "nvlist/number/-1", -1); in send_nvlist_child() 76 if (pipe(pfd) == -1) in send_nvlist_child() 140 ATF_REQUIRE(strcmp(name, "nvlist/number/-1") == 0); in send_nvlist_parent() 141 ATF_REQUIRE((int)nvlist_get_number(nvl, name) == -1); in send_nvlist_parent() 254 ATF_REQUIRE(strcmp(cname, "nvlist/number/-1") == 0); in send_nvlist_parent() 255 ATF_REQUIRE((int)nvlist_get_number(cnvl, cname) == -1); in send_nvlist_parent() 343 pid_t pid; in nvlist_send_recv__send_nvlist() local [all …]
|
/freebsd/sys/contrib/openzfs/.github/workflows/scripts/ |
H A D | qemu-6-tests.sh | 6 # called on runner: qemu-6-tests.sh 7 # called on qemu-vm: qemu-6-tests.sh $OS $2/$3 10 set -eu 17 DIFF=$((CURRENT-TSSTART)) 19 DIFF=$((DIFF-(H*3600))) 21 S=$((DIFF-(M*60))) 24 echo $LINE| grep -q "^Test[: ]" && CTR=$((CTR+1)) && echo $CTR > /tmp/ctr 27 COLOR="$BASE/scripts/zfs-tests-color.sh" 28 CLINE=$(echo $LINE| grep "^Test[ :]" | sed -e 's|/usr/local|/usr|g' \ 29 | sed -e 's| /usr/share/zfs/zfs-tests/tests/| |g' | $COLOR) [all …]
|
/freebsd/contrib/ntp/html/hints/ |
H A D | solaris.xtra.S99ntpd | 3 if [ -x /usr/local/bin/xntpd ]; then 8 /usr/local/bin/tickadj -s 9 /usr/local/bin/ntpdate -v server1 server2 11 /usr/local/bin/xntpd 15 … pid=`/usr/bin/ps -e | /usr/bin/grep xntpd | /usr/bin/sed -e 's/^ *//' -e 's/ .*//'` 16 if [ "${pid}" != "" ]; then 18 /usr/bin/kill ${pid}
|
/freebsd/usr.bin/fstat/ |
H A D | fstat.1 | 39 .Op Fl p Ar pid 54 .Bl -tag -width "-N system" 63 .Ql fstat -f /usr/src . 69 Include memory-mapped files in the listing; normally these are excluded 83 .It Fl p Ar pid 107 .Bl -tag -width MOUNT 112 .It Sy PID 115 The file number in the per-process open file table or one of the following 118 .Bl -tag -width jail -offset indent -compact 122 memory-mapped file [all …]
|
/freebsd/usr.bin/tail/tests/ |
H A D | tail_test.sh | 1 # SPDX-License-Identifier: BSD-2-Clause 35 tail -r infile > outfile 36 tail -r < infile > outpipe 58 tail -r infile > outfile 59 tail -r < infile > outpipe 80 tail -rn2 infile > outfile 81 tail -rn2 < infile > outpipe 101 printf '\n1\n2\n3\n' | tail -r > outfile 102 printf '\n1\n2\n3\n' | tail -r > outpipe 123 tail -rc28 infile > outfile [all …]
|
/freebsd/usr.sbin/syslogd/tests/ |
H A D | syslogd_test_common.sh | 1 #- 2 # SPDX-License-Identifier: BSD-2-Clause 16 readonly SYSLOGD_PIDFILE="${PWD}/syslogd.pid" 22 local jail bind_arg conf_file pid_file socket privsocket 23 local opt next other_args 32 bind_arg="${bind_arg} -b ${OPTARG}" 54 -* | "") 55 other_args="${other_args} -${opt}" 56 shift $((OPTIND - 1)) 59 other_args="${other_args} -${opt} ${next}" [all …]
|
/freebsd/usr.bin/procstat/ |
H A D | procstat.1 | 1 .\"- 2 .\" Copyright (c) 2007-2009 Robert N. M. Watson 34 .Op Fl -libxo 40 .Op Ar pid ... | Ar core ... 42 .Op Fl -libxo 50 .Op Fl -libxo 71 .Op Ar pid ... | Ar core ... 73 .Op Fl -libxo 96 .Op Fl -libxo 104 .Op Fl -libxo [all …]
|
/freebsd/cddl/usr.sbin/dtrace/tests/tools/ |
H A D | dtest.sh | 15 local tag 19 tag=${tag%%[a-z.]*} 25 local dflags exe exstatus pid retval status 34 dflags="-x droptags" 39 dflags="-x errtags" 48 if [ -f "$exe" -a -x "$exe" ]; then 50 pid=$! 51 dflags="$dflags ${pid}" 54 dtrace -C -s "${TFILE}" $dflags >$STDOUT 2>$STDERR 57 if [ $status -ne $exstatus ]; then [all …]
|
/freebsd/contrib/bsnmp/ |
H A D | README | 3 This is a mini-SNMP daemon. The basic daemon implements the system group 11 - snmp_mibII provides the information groups for ip, tcp, and udp. 14 ------------ 18 configure [--with-libbegemot[=path]] 24 line. An example configuration file is provided. Use --with-libbegemot 28 ------- 30 snmpd [-m name[=value]] [-p pid-file] [-c config-file] [-d] [-l prefix] 31 [-D debug-flags] [-I path] 33 -m defines a configuration macro. If no value is given it 36 -p specify the file where to store the PID. Default is [all …]
|
/freebsd/crypto/heimdal/appl/test/ |
H A D | gssapi_client.c | 2 * Copyright (c) 1997 - 2000 Kungliga Tekniska Högskolan 51 input_token->length = 3; in do_trans() 52 input_token->value = strdup("hej"); in do_trans() 67 input_token->length = 7; in do_trans() 68 input_token->value = "hemligt"; in do_trans() 102 struct sockaddr_storage remote, local; in proto() local 124 errx(1, "malloc - out of memory"); in proto() 155 addrlen = sizeof(local); in proto() 156 if (getsockname (sock, (struct sockaddr *)&local, &addrlen) < 0 in proto() 157 || addrlen > sizeof(local)) in proto() [all …]
|
H A D | gssapi_server.c | 2 * Copyright (c) 1997 - 2000 Kungliga Tekniska Högskolan 87 fprintf (stderr, "gss_verify_mic: %.*s\n", (int)input_token->length, in process_it() 88 (char *)input_token->value); in process_it() 106 fprintf (stderr, "gss_unwrap: %.*s %s\n", (int)output_token->length, in process_it() 107 (char *)output_token->value, in process_it() 124 fprintf (stderr, "gss_unwrap: %.*s %s\n", (int)output_token->length, in process_it() 125 (char *)output_token->value, in process_it() 137 struct sockaddr_in remote, local; in proto() local 153 addrlen = sizeof(local); in proto() 154 if (getsockname (sock, (struct sockaddr *)&local, &addrlen) < 0 in proto() [all …]
|
/freebsd/contrib/bsnmp/snmpd/ |
H A D | snmpd.sh | 3 # Copyright (c) 2001-2003 34 SNMPD=/usr/local/bin/bsnmpd 35 PID=/var/run/snmpd.pid 41 if [ -r ${PID} ] ; then 42 if kill -0 `cat ${PID}` ; then 43 echo "snmpd already running -- pid `cat ${PID}`" >/dev/stderr 46 rm -f ${PID} 48 if ${SNMPD} -c ${CONF} -p ${PID} ; then 54 if [ -r ${PID} ] ; then 55 if kill -0 `cat ${PID}` ; then [all …]
|
/freebsd/cddl/usr.sbin/dwatch/ |
H A D | dwatch | 2 #- 3 # Copyright (c) 2014-2018 Devin Teske 40 " # END-QUOTE 45 : ${DWATCH_PROFILES_PATH="/usr/libexec/dwatch:/usr/local/libexec/dwatch"} 49 VERSION='$Version: 1.4 $' # -V 54 # Command-line arguments 59 # Command-line defaults 61 _MAX_ARGS=64 # -B num 62 _MAX_DEPTH=64 # -K num 65 # Command-line options [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_destroy/ |
H A D | zfs_destroy_common.kshlib | 56 log_must $ZFS create -V $VOLSIZE $VOL 59 if [[ ! -d $TESTDIR1 ]]; then 87 typeset dirfiltered=$(echo $dir | sed -Ee 's,[/\.],_,g') 95 pid=$(eval echo \$SLEEP_PID_${dirfiltered}) 97 log_note "Sleeping while on ${dir} in pid $pid" 103 typeset dirfiltered=$(echo $dir | sed -Ee 's,[/\.],_,g') 104 typeset pid=$(eval echo \$SLEEP_PID_${dirfiltered}) 107 [[ -z "$pid" ]] && log_fail "make_dir_unbusy called without busy?" 108 $KILL -15 $pid 117 if [[ $STF_EXITCODE -eq $STF_FAIL ]]; then [all …]
|
/freebsd/sbin/hastd/ |
H A D | hast.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2009-2010 The FreeBSD Foundation 54 * 0 - initial version 55 * 1 - HIO_KEEPALIVE added 56 * 2 - "memsync" and "received" attributes added for memsync mode 92 #define HASTD_PIDFILE "/var/run/hastd.pid" 108 /* Protocol-specific data. */ 116 /* Protocol-specific data. */ 120 /* PID file path. */ [all …]
|
/freebsd/crypto/openssl/test/recipes/ |
H A D | 80-test_cmp_http.t | 2 # Copyright 2007-2022 The OpenSSL Project Authors. All Rights Reserved. 3 # Copyright Nokia 2007-2019 4 # Copyright Siemens AG 2015-2019 25 if config('options') =~ /-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION|enable-fuzz-afl/; 27 plan skip_all => "These tests are not supported in a no-cmp build" 29 plan skip_all => "These tests are not supported in a no-ec build" 31 plan skip_all => "These tests are not supported in a no-sock build" 34 plan skip_all => "Tests involving local HTTP server not available on Windows or VMS" 36 plan skip_all => "Tests involving local HTTP server not available in cross-compile builds" 68 # The local $server_name variables below are among others taken as the name of a [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/mv_files/ |
H A D | mv_files_common.kshlib | 34 $ECHO "#!/usr/local/bin/ksh93" > $TMPDIR/exitsZero.ksh 39 #!/usr/local/bin/ksh93 46 typeset -i i=1 47 while [ \$i -le 50 ] 56 for pid in \$PIDS 58 \$WAIT \$pid 65 if [[ $? -eq 1 ]]; then 87 $RM -rf $TESTDIR || log_unresolved Could not remove $TESTDIR 88 $MKDIR -p $TESTDIR || log_unresolved Could not create $TESTDIR 90 $RM -rf $TESTDIR_TGT || log_unresolved Could not remove $TESTDIR_TGT [all …]
|
/freebsd/crypto/openssh/contrib/suse/ |
H A D | rc.sshd | 2 # Copyright (c) 1995-2000 SuSE GmbH Nuernberg, Germany. 14 # Required-Start: $network $remote_fs 15 # Required-Stop: $network $remote_fs 16 # Default-Start: 3 5 17 # Default-Stop: 0 1 2 6 22 test -x $SSHD_BIN || exit 5 25 test -r $SSHD_SYSCONFIG || exit 6 28 SSHD_PIDFILE=/var/run/sshd.init.pid 33 # rc_check check and set local and overall rc status 34 # rc_status check and set local and overall rc status [all …]
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/ |
H A D | tst.weak2.d | 30 * ASSERTION: check that we prefer weak symbols to local ones 32 * SECTION: pid provider 46 /pid == $1/ 56 pid$1:a.out:go:entry, 57 pid$1:a.out:_go:entry 63 pid$1:a.out:go:entry, 64 pid$1:a.out:_go:entry 71 pid$1:a.out:go:entry, 72 pid$1:a.out:_go:entry 78 profile:::tick-4
|
/freebsd/bin/pkill/tests/ |
H A D | pkill-j_test.sh | 5 local check_name="$1" 6 jls -j "$check_name" -s | tr ' ' '\n' | grep jid= | sed -e 's/.*=//g' 11 if [ "$(id -u)" -ne 0 ]; then 19 ln -sf /bin/sleep $sleep 21 name="pkill -j <jid>" 23 jail -c path=/ name=${base}_1_1 ip4.addr=127.0.0.1 \ 24 command=daemon -p ${PWD}/${base}_1_1.pid $sleep $sleep_amount & 26 jail -c path=/ name=${base}_1_2 ip4.addr=127.0.0.1 \ 27 command=daemon -p ${PWD}/${base}_1_2.pid $sleep $sleep_amount & 36 [0-9]*,[0-9]*) [all …]
|