| /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 16 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 46 .Ar recv 76 kernel module to be loaded but does not require 81 .Bl -tag -width truncate 83 Create the named queues, if they do not already exist. 97 If the queue exists but does not match the requested size and depth, this 100 This will fail if the queue is not empty or is opened by other processes. [all …]
|
| /freebsd/crypto/heimdal/appl/telnet/telnetd/ |
| H A D | state.c | 22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 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() [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 26 # 1. An unmodified file does not get redacted at all. 27 # 2. Empty redaction list redacts everything. 29 # 4. A file moved in the clone does not redact the file. 50 # An unmodified file does not get redacted at all. 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 [all …]
|
| H A D | redacted_mounts.ksh | 2 # SPDX-License-Identifier: CDDL-1.0 23 # Verify that received redacted datasets are not mounted by default, but 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 [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 8 # You may not use this file except in compliance with the License. 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 131 log_mustnot_expect "source is not an ancestor of the new bookmark's dataset" zfs bookmark "$DATASET… 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 [all …]
|
| /freebsd/tests/sys/kern/ |
| H A D | unix_dgram.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 16 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 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() [all …]
|
| /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 30 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 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() [all …]
|
| /freebsd/contrib/libpcap/ |
| H A D | sockutils.c | 2 * Copyright (c) 2002 - 2003 20 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 46 * that hides the differences between operating systems. It does not 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() [all …]
|
| /freebsd/libexec/tftpd/tests/ |
| H A D | functional.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 16 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 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)); \ [all …]
|
| /freebsd/usr.sbin/bhyve/ |
| H A D | net_backends.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 16 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 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() [all …]
|
| /freebsd/sys/dev/iser/ |
| H A D | iser_verbs.c | 1 /*- 14 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 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 54 * is a TX descriptor or not. 66 void *start = iser_conn->rx_descs; in is_iser_tx_desc() [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 21 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 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() [all …]
|
| /freebsd/crypto/heimdal/appl/telnet/telnet/ |
| H A D | sys_bsd.c | 22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 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() 470 * user attempts to read it, not when we send it. in TerminalNewMode() 561 * are in ascending order. They do not have to be [all …]
|
| /freebsd/share/man/man9/ |
| H A D | domain.9 | 17 .\" EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 21 .\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 68 is not 79 .Bd -literal 121 .Bd -literal 126 pr_soreceive_t *pr_soreceive; /* recv(2) */ 161 is not called directly, instead 171 If the probe routine returns a non-0 value, then the domain will not be added. 182 has an empty slot in its 189 never fails, but it may not add a domain if its [all …]
|
| /freebsd/contrib/telnet/telnet/ |
| H A D | sys_bsd.c | 18 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 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() 396 * drain, TIOCSETP, also flushes the input queue, which is NOT in TerminalNewMode() 556 if (f == -1) { in TerminalNewMode() [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/ |
| H A D | rsend.kshlib | 1 # SPDX-License-Identifier: CDDL-1.0 7 # You may not use this file except in compliance with the License. 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 [all …]
|
| /freebsd/contrib/ntp/libntp/lib/isc/include/isc/ |
| H A D | socket.h | 2 * Copyright (C) 2004-2009, 2011, 2012 Internet Systems Consortium, Inc. ("ISC") 3 * Copyright (C) 1998-2002 Internet Software Consortium. 37 * Clients of this module must not be holding a socket's task's lock when 166 isc_region_t region; /*%< for single-buffer i/o */ 169 isc_time_t timestamp; /*%< timestamp of packet recv */ 194 * indicate that the packet is not complete, even though 240 #define ISC_SOCKCANCEL_RECV 0x00000001 /*%< cancel recv */ 289 isc_result_t (*recv)(isc_socket_t *sock, isc_region_t *region, member 312 * In effect, this definition is used only for non-BIND9 version ("export") 313 * of the library, and the export version does not work for win32. So, to avoid [all …]
|
| /freebsd/sys/netgraph/ |
| H A D | ng_l2tp.c | 1 /*- 2 * Copyright (c) 2001-2002 Packet Design, LLC. 23 * OR NON-INFRINGEMENT. PACKET DESIGN DOES NOT WARRANT, GUARANTEE, 102 #define L2TP_SEQ_DIFF(x, y) ((int16_t)((x) - (y))) 105 #define SESSHASH(x) (((x) ^ ((x) >> 8)) & (SESSHASHSIZE - 1)) 122 * - If cwnd < ssth, we're doing slow start, otherwise congestion avoidance 123 * - The number of unacknowledged xmit packets is (ns - rack) <= seq->wmax 124 * - The first (ns - rack) mbuf's in xwin[] array are copies of these 127 * - We try to keep the peer's receive window as full as possible. 128 * Therefore, (i < cwnd && xwin[i] != NULL) implies (ns - rack) > i. [all …]
|
| /freebsd/sys/contrib/openzfs/man/man8/ |
| H A D | zfs-receive.8 | 1 .\" SPDX-License-Identifier: CDDL-1.0 7 .\" You may not use this file except in compliance with the License. 10 .\" or https://opensource.org/licenses/CDDL-1.0. 38 .Nm zfs-receive 67 .Bl -tag -width "" 93 .Nm zfs Cm recv 110 command is received, any snapshots that do not exist on the sending location are 117 to a regular (non-deduplicated) stream by using the 142 is a read-only property and cannot be set, it's allowed to receive the send 147 may only be received as is, and cannot be re-encrypted, decrypted, or [all …]
|
| H A D | zfs-recv.8 | 1 .\" SPDX-License-Identifier: CDDL-1.0 7 .\" You may not use this file except in compliance with the License. 10 .\" or https://opensource.org/licenses/CDDL-1.0. 34 .Dt ZFS-RECEIVE 8 38 .Nm zfs-receive 67 .Bl -tag -width "" 93 .Nm zfs Cm recv [all...] |
| /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 //===----------------------------------------------------------------------===// 101 // In case of checking C code, or when the corresponding headers are not in initIdentifierInfo() 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"}}}; [all …]
|
| /freebsd/lib/libdevdctl/ |
| H A D | consumer.cc | 1 /*- 19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 69 /*----------------------------- DevdCtl::Consumer ----------------------------*/ 70 //- Consumer Static Private Data ----------------------------------------------- 73 //- Consumer Public Methods ---------------------------------------------------- 77 : m_devdSockFD(-1), in Consumer() 96 if (m_devdSockFD != -1) { in ConnectToDevd() 109 if (m_devdSockFD == -1) in ConnectToDevd() 114 if (result == -1) { in ConnectToDevd() [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> 19 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 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() [all …]
|