| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/ |
| H A D | send_encrypted_files.ksh | 1 #!/bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 31 # 2. Add an empty file to the filesystem 35 # 6. Add 1000 empty files to the filesystem 39 # 10. Remove the 1000 empty files to the filesystem 50 destroy_dataset $TESTPOOL/$TESTFS2 -r 51 datasetexists $TESTPOOL/recv && \ 52 destroy_dataset $TESTPOOL/recv -r 53 [[ -f $keyfile ]] && log_must rm $keyfile 54 [[ -f $sendfile ]] && log_must rm $sendfile [all …]
|
| H A D | send_realloc_dnode_size.ksh | 2 # SPDX-License-Identifier: CDDL-1.0 36 # 4. Create an empty file and add xattrs to it to exercise reclaiming a 48 rm -f $BACKDIR/fs-dn-legacy 49 rm -f $BACKDIR/fs-dn-1k 50 rm -f $BACKDIR/fs-dn-2k 51 rm -f $BACKDIR/fs-attr 53 datasetexists $POOL/fs && destroy_dataset $POOL/fs -rR 54 datasetexists $POOL/newfs && destroy_dataset $POOL/newfs -rR 60 log_must zfs create -o dnodesize=1k $POOL/fs 89 # 4. Create an empty file and add xattrs to it to exercise reclaiming a [all …]
|
| H A D | rsend.kshlib | 1 # SPDX-License-Identifier: CDDL-1.0 10 # or https://opensource.org/licenses/CDDL-1.0. 54 # $pool -------- $FS ------- fs1 ------- fs2 58 # @init @vsnap | ------------ fclone 73 log_must zfs create -p $pool/$FS/fs1/fs2 79 log_must zfs create -V 16M $pool/vol 80 log_must zfs create -V 16M $pool/$FS/vol 90 log_must zfs snapshot -r $pool@init 109 log_must zfs snapshot -r $pool@final 122 log_must rm -rf $BACKDIR/* [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/mailbox/ |
| H A D | apple,mailbox.yaml | 1 # SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Hector Martin <marcan@marcan.st> 11 - Sven Peter <sven@svenpeter.dev> 15 messages between the main CPU and a co-processor. Multiple instances 17 One of the two FIFOs is used to send data to a co-processor while the other 25 - description: 30 - enum: 31 - apple,t8103-asc-mailbox [all …]
|
| /freebsd/sys/contrib/device-tree/src/arm64/apple/ |
| H A D | t600x-nvme.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ OR MIT 9 compatible = "apple,t6000-asc-mailbox", "apple,asc-mailbox-v4"; 11 interrupt-parent = <&aic>; 16 interrupt-names = "send-empty", "send-not-empty", 17 "recv-empty", "recv-not-empty"; 18 power-domains = <&DIE_NODE(ps_ans2)>; 19 #mbox-cells = <0>; 23 compatible = "apple,t6000-sart"; 25 power-domains = <&DIE_NODE(ps_ans2)>; 29 compatible = "apple,t6000-nvme-ans2", "apple,nvme-ans2"; [all …]
|
| /freebsd/usr.bin/posixmqcontrol/ |
| H A D | posixmqcontrol.1 | 1 .\"- 2 .\" SPDX-License-Identifier: BSD-2-Clause 46 .Ar recv 81 .Bl -tag -width truncate 100 This will fail if the queue is not empty or is opened by other processes. 102 Unlink the queues specified - one attempt per queue. 103 Failure to unlink one queue does not stop this sub-command from attempting to 108 .It Ic recv 115 The optional -p priority, if omitted, defaults to MQ_PRIO_MAX / 2 or medium 120 messages) requires destroying and re-creating the queue. [all …]
|
| /freebsd/crypto/heimdal/appl/telnet/telnetd/ |
| H A D | state.c | 45 * Buffer for sub-options, and macros 57 #define SB_LEN() (subend - subpointer) 67 * State for recv fsm 71 #define TS_CR 2 /* CR-LF ->'s CR */ 75 #define TS_WONT 6 /* wont -''- */ 76 #define TS_DO 7 /* do -''- */ 77 #define TS_DONT 8 /* dont -''- */ 86 if ((&ptyobuf[BUFSIZ] - pfrontp) < 2) in telrcv() 88 c = *netip++ & 0377, ncc--; in telrcv() 128 (void)(*decrypt_input)(-1); in telrcv() [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redacted_send/ |
| H A D | redacted_contents.ksh | 2 # SPDX-License-Identifier: CDDL-1.0 27 # 2. Empty redaction list redacts everything. 53 log_must eval "zfs send --redact book1 $sendfs@snap >$stream" 54 log_must eval "zfs recv $recvfs <$stream" 55 log_must mount_redacted -f $recvfs 58 log_must zfs rollback -R $clone@snap 59 log_must zfs destroy -R $recvfs 65 log_must eval "zfs send --redact book3 $sendfs@snap >$stream" 66 log_must eval "zfs recv $recvfs <$stream" 68 log_must zfs rollback -R $clone@snap [all …]
|
| H A D | redacted_mounts.ksh | 2 # SPDX-License-Identifier: CDDL-1.0 29 # without the -f flag, but can with -f. 32 # 5. Verify the files in the send fs are also present in the recv fs. 52 log_must rm $clone_mnt/empty $clone_mnt/contents1 55 log_must rm -rf $clone_mnt/dir1/dir2 58 log_must dd if=/dev/urandom of=$clone_mnt/dir1/empty bs=512 count=1 62 log_must eval "zfs send --redact book1 $sendfs@snap >$stream" 67 log_must mount_redacted -f $recvfs 70 # Verify that the send and recv fs both have the same files under their 77 log_must eval "zfs send --redact book2 $sendvol@snap >$stream" [all …]
|
| H A D | redacted_props.ksh | 2 # SPDX-License-Identifier: CDDL-1.0 43 # Verify a plain dataset, snapshot or bookmark has an empty list. 47 [[ $found_list = "-" ]] || log_fail "Unexpected dataset list: $found_list" 49 [[ $found_list = "-" ]] || log_fail "Unexpected snapshot list: $found_list" 51 [[ $found_list = "-" ]] || log_fail "Unexpected bookmark list: $found_list" 63 log_must eval "zfs send --redact book1 $sendfs@snap >$stream" 64 log_must eval "zfs recv $recvfs <$stream" 70 count=$(wc -l < $tmpdir/prop_list) 71 [ $count -eq 16 ] || log_fail "Found incorrect number of redaction snapshots."
|
| /freebsd/tests/sys/kern/ |
| H A D | unix_dgram.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 44 #include <atf-c.h> 100 * - fd[0] to send, fd[1] to receive in ATF_TC_BODY() 101 * - buf[maxdgram] for data in ATF_TC_BODY() 105 ATF_REQUIRE(socketpair(PF_UNIX, SOCK_DGRAM, 0, fd) != -1); in ATF_TC_BODY() 117 ATF_REQUIRE(send(fd[0], buf, maxdgram + 1, 0) == -1); in ATF_TC_BODY() 124 ATF_REQUIRE(recv(fd[1], buf, maxdgram, MSG_PEEK) == (ssize_t)maxdgram); in ATF_TC_BODY() 140 /* Empty: block. */ in ATF_TC_BODY() 144 ATF_REQUIRE(recv(fd[1], buf, maxdgram, 0) == -1); in ATF_TC_BODY() [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_bookmark/ |
| H A D | zfs_bookmark_cliargs.ksh | 1 #!/bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 11 # or https://opensource.org/licenses/CDDL-1.0. 48 # 9. Verify two short paths are not allowed, and test empty paths 67 log_must rm -f "$TEST_BASE_DIR/zfstest_datastream.$$" 129 # Verify that we can cannot create bookmarks on a non-origin filesystem 172 # Verify two short paths are not allowed, and test empty paths 186 # Verify that we can cannot create bookmarks on another non-origin filesystem 203 log_must eval "destroy_dataset $TESTPOOL/$TESTFS/recv" 204 log_must eval "zfs recv -o mountpoint=none $TESTPOOL/$TESTFS/recv < $TEST_BASE_DIR/zfstest_datastre… [all …]
|
| /freebsd/lib/libc/sys/ |
| H A D | Makefile.inc | 1 # libc-specific portion of the system call interface 8 # emit empty assembly stubs for syscalls in dynamic libc 9 SHARED_CFLAGS+= -D'_SYSCALL_BODY(name)=' 21 compat-stub.c \ 28 recv.c \
|
| /freebsd/sys/ofed/drivers/infiniband/core/ |
| H A D | ib_mad.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0 4 * Copyright (c) 2004-2007 Voltaire, Inc. All rights reserved. 20 * - Redistributions of source code must retain the above 24 * - Redistributions in binary form must reproduce the above 45 #include <linux/dma-mapping.h> 102 if (entry->device == device && entry->port_num == port_num) in __ib_get_mad_port() 141 return -1; in get_spl_qp_index() 147 return mgmt_class - IB_MGMT_CLASS_VENDOR_RANGE2_START; in vendor_class_index() 173 if (!memcmp(vendor_class->oui[i], mad_reg_req->oui, 3)) { in is_vendor_method_in_use() [all …]
|
| /freebsd/contrib/libpcap/ |
| H A D | sockutils.c | 2 * Copyright (c) 2002 - 2003 59 #include "pcap-int.h" 90 * On UN*X, send() and recv() return ssize_t. 92 * On Windows, send() and recv() return an int. 101 * that hold the return values from send() and recv(). 133 if (remaining > fuzzSize - fuzzPos) { in fuzz_recv() 134 remaining = fuzzSize - fuzzPos; in fuzz_recv() 198 * so that lower-rated errors for a given address in a given family 199 * should not overwrite higher-rated errors for another address in that 200 * family, and higher-rated errors should overwrite lower-rated errors. [all …]
|
| /freebsd/libexec/tftpd/tests/ |
| H A D | functional.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 43 #include <atf-c.h> 49 static int s = -1; /* tftp client socket */ 51 static bool s_flag = false; /* Pass -s to tftpd */ 52 static bool w_flag = false; /* Pass -w to tftpd */ 64 #define RECV(hdr, contents, contents_len) do { \ macro 74 &buffer[sizeof(hdr)], r - sizeof(hdr)); \ 76 ((struct sockaddr_in *)&addr)->sin_port = \ 77 ((struct sockaddr_in *)&from)->sin_port; \ [all …]
|
| /freebsd/usr.sbin/bhyve/ |
| H A D | net_backends.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 30 * to be used by network frontends such as virtio-net and e1000. 71 #define NET_BE_SIZE(be) (sizeof(*be) + (be)->priv_size) 78 if (priv->mevp) { in tap_cleanup() 79 mevent_delete(priv->mevp); in tap_cleanup() 81 if (be->fd != -1) { in tap_cleanup() 82 close(be->fd); in tap_cleanup() 83 be->fd = -1; in tap_cleanup() 100 EPRINTLN("TAP backend requires non-NULL callback"); in tap_init() [all …]
|
| /freebsd/contrib/wpa/src/l2_packet/ |
| H A D | l2_packet_none.c | 2 * WPA Supplicant - Layer2 packet handling example with stub functions 3 * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi> 32 os_memcpy(addr, l2->own_addr, ETH_ALEN); in l2_packet_get_own_addr() 41 return -1; in l2_packet_send() 45 * whether l2->l2_hdr is set). in l2_packet_send() 58 /* TODO: receive frame (e.g., recv() using sock */ in l2_packet_receive() 62 l2->rx_callback(l2->rx_callback_ctx, NULL /* TODO: src addr */, in l2_packet_receive() 78 os_strlcpy(l2->ifname, ifname, sizeof(l2->ifname)); in l2_packet_init() 79 l2->rx_callback = rx_callback; in l2_packet_init() 80 l2->rx_callback_ctx = rx_callback_ctx; in l2_packet_init() [all …]
|
| /freebsd/sys/dev/iser/ |
| H A D | iser_verbs.c | 1 /*- 34 ISER_ERR("got cq event %d", cause->event); in iser_cq_event_callback() 40 ISER_ERR("got qp event %d", cause->event); in iser_qp_event_callback() 48 event->event, event->device->name, in iser_event_handler() 49 event->element.port_num); in iser_event_handler() 53 * is_iser_tx_desc - Indicate if the completion wr_id 66 void *start = iser_conn->rx_descs; in is_iser_tx_desc() 67 u64 len = iser_conn->num_rx_descs * sizeof(*iser_conn->rx_descs); in is_iser_tx_desc() 74 return ((uintptr_t)wr_id != (uintptr_t)iser_conn->login_resp_buf); in is_iser_tx_desc() 81 * iser_handle_comp_error() - Handle error completion [all …]
|
| /freebsd/crypto/heimdal/appl/telnet/telnet/ |
| H A D | sys_bsd.c | 68 # define cfgetospeed(ptr) ((ptr)->c_cflag&CBAUD) 70 # define cfgetispeed(ptr) (((ptr)->c_cflag&CIBAUD) >> IBSHIFT) 291 * TerminalNewMode - set up terminal to a specific mode. 336 * left to write out, it returns -1 if it couldn't do in TerminalNewMode() 433 if (f == -1) { in TerminalNewMode() 455 if (f != -1) { in TerminalNewMode() 575 { 230400, B230400 }, { -1, B230400 } 594 while ((tp->speed != -1) && (tp->value < in)) in TerminalSpeeds() 596 *input_speed = tp->speed; in TerminalSpeeds() 599 while ((tp->speed != -1) && (tp->value < out)) in TerminalSpeeds() [all …]
|
| /freebsd/sbin/hastd/ |
| H A D | secondary.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2009-2010 The FreeBSD Foundation 80 * Free list holds unused structures. When free list is empty, we have to wait 81 * until some in-progress requests are freed. 126 hio_##name##_list_size--; \ 144 hio->hio_seq = 0; in hio_clear() 145 hio->hio_error = 0; in hio_clear() 146 hio->hio_cmd = HIO_UNDEF; in hio_clear() 147 hio->hio_offset = 0; in hio_clear() [all …]
|
| /freebsd/contrib/telnet/telnet/ |
| H A D | sys_bsd.c | 69 # define cfgetispeed(ptr) (ptr)->sg_ispeed 70 # define cfgetospeed(ptr) (ptr)->sg_ospeed 93 # define cfgetospeed(ptr) ((ptr)->c_cflag&CBAUD) 95 # define cfgetispeed(ptr) (((ptr)->c_cflag&CIBAUD) >> IBSHIFT) 345 * TerminalNewMode - set up terminal to a specific mode. 389 * left to write out, it returns -1 if it couldn't do in TerminalNewMode() 556 if (f == -1) { in TerminalNewMode() 587 if (f != -1) { in TerminalNewMode() 651 (void) sigsetmask(sigblock(0) & ~(1<<(SIGTSTP-1))); in TerminalNewMode() 695 while ((tp->speed != -1) && (tp->value < in)) in TerminalSpeeds() [all …]
|
| /freebsd/share/man/man9/ |
| H A D | domain.9 | 79 .Bd -literal 121 .Bd -literal 126 pr_soreceive_t *pr_soreceive; /* recv(2) */ 171 If the probe routine returns a non-0 value, then the domain will not be added. 182 has an empty slot in its 196 .Bl -tag -width Er
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | BlockInCriticalSectionChecker.cpp | 1 //===-- BlockInCriticalSectionChecker.cpp -----------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 // recv etc.) inside a critical section. When sleep(x) is called while a mutex 15 //===----------------------------------------------------------------------===// 106 const auto &ASTCtx = Call.getState()->getStateManager().getContext(); in initIdentifierInfo() 116 cast<CXXRecordDecl>(C->getDecl()->getParent())->getIdentifier(); in matchesImpl() 134 LockRegion = Object->getAsRegion(); in getRegion() 179 {CDM::CLibrary, {"recv"}}}; 205 /// Process blocking functions (sleep, getc, fgets, read, recv) [all …]
|
| /freebsd/usr.sbin/ppp/ |
| H A D | fsm.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 1996 - 2001 Brian Somers <brian@Awfulhak.org> 5 * based on work by Toshiharu OHNO <tony-o@iij.ad.jp> 83 recvfn *recv; member 110 return FsmCodes[code-1].name; in Code2Nam() 118 "Req-Sent", "Ack-Rcvd", "Ack-Sent", "Opened", in State2Nam() 131 log_Printf(fp->LogLevel, "%s: Stopped timer expired\n", fp->link->name); in StoppedTimeout() 132 if (fp->OpenTimer.state == TIMER_RUNNING) { in StoppedTimeout() 134 fp->link->name, fp->name); in StoppedTimeout() [all …]
|