Home
last modified time | relevance | path

Searched +full:blocking +full:- +full:io (Results 1 – 25 of 143) sorted by relevance

123456

/freebsd/sys/contrib/device-tree/Bindings/hwmon/
H A Dsensirion,shtc1.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schema
[all...]
/freebsd/crypto/openssh/
H A Dchannels.h45 #define SSH_CHANNEL_OPEN 4 /* normal open two-way channel */
50 #define SSH_CHANNEL_RPORT_LISTENER 11 /* Listening to a R-style port */
58 #define SSH_CHANNEL_RUNIX_LISTENER 19 /* Listening to a R-style domain socket. */
59 #define SSH_CHANNEL_MUX_PROXY 20 /* proxy channel for mux-client */
64 #define CHANNEL_CANCEL_PORT_STATIC -1
67 #define CHANNEL_NONBLOCK_LEAVE 0 /* don't modify non-blocking state */
68 #define CHANNEL_NONBLOCK_SET 1 /* set non-blocking state */
69 #define CHANNEL_NONBLOCK_STDIO 2 /* set non-blocking and restore on close */
71 /* c->restore_block mask flags */
108 /* Context for non-blocking connects */
[all …]
/freebsd/contrib/sendmail/libsm/
H A Dlocal.h2 * Copyright (c) 2000-2002, 2004-2006 Proofpoint, Inc. and its suppliers.
14 * $Id: local.h,v 1.59 2013-11-22 20:51:43 ca Exp $
42 /* std io functions */
52 /* stdio io functions */
61 /* string io functions */
70 /* syslog io functions */
83 ((((fp)->f_flags & SMWR) == 0 || (fp)->f_bf.smb_base == NULL) && \
91 #define HASUB(fp) ((fp)->f_ub.smb_base != NULL)
94 if ((fp)->f_ub.smb_base != (fp)->f_ubuf) \
95 sm_free((char *)(fp)->f_ub.smb_base); \
[all …]
H A Dfopen.c2 * Copyright (c) 2000-2002, 2004 Proofpoint, Inc. and its suppliers.
16 SM_RCSID("@(#)$Id: fopen.c,v 1.63 2013-11-22 20:51:42 ca Exp $")
23 #include <sm/io.h>
34 ** OPENALRM -- handler when timeout activated for sm_io_open()
39 ** sig -- unused
60 ** REOPENALRM -- handler when timeout activated for sm_io_reopen()
65 ** sig -- unused
87 ** SM_IO_OPEN -- open a file of a specific type
90 ** type -- type of file to open
91 ** timeout -- time to complete the open
[all …]
H A Dio.html9 <br> $Id: io.html,v 1.3 2001-03-17 03:22:50 gshapiro Exp $
80 There is one main include file for use with sm_io: <i>io.h</i>. Since the
84 (before io.h).
88 #include &lt;io.h&gt;
162 pre-defined values:
165 SM_TIME_DEFAULT - timeout using the default setting for this file type
168 SM_TIME_FOREVER - timeout will take forever; blocks until task completed
171 SM_TIME_IMMEDIATE - timeout (virtually) now
185 <!-- SM_IO_FOPEN -->
203 <!-- SM_IO_OPEN -->
[all …]
/freebsd/crypto/openssl/crypto/ocsp/
H A Docsp_http.c2 * Copyright 2001-2021 The OpenSSL Project Authors. All Rights Reserved.
15 OSSL_HTTP_REQ_CTX *OCSP_sendreq_new(BIO *io, const char *path, in OCSP_sendreq_new() argument
18 OSSL_HTTP_REQ_CTX *rctx = OSSL_HTTP_REQ_CTX_new(io, io, buf_size); in OCSP_sendreq_new()
22 /*- in OCSP_sendreq_new()
27 * no timeout (blocking indefinitely) in OCSP_sendreq_new()
40 && !OSSL_HTTP_REQ_CTX_set1_req(rctx, "application/ocsp-request", in OCSP_sendreq_new()
/freebsd/sbin/ipf/ipf/
H A Dipl.44 ipl \- IP packet log device
8 logged, the entire header is logged (including any IP options \- TCP/UDP
50 a buffer big enough to hold at least 1 complete log record - reading of partial
72 There is currently no support for non-blocking IO with this device, meaning
73 all read operations should be considered blocking in nature (if there is no
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dvgaarb.h41 /* Non-legacy access */
77 * vga_get - acquire & locks VGA resources
81 * @interruptible: blocking should be interruptible by signals ?
92 * the IO and/or Memory accesse are enabled on the card (including
96 * segment, since P2P bridges don't differenciate VGA memory and IO
97 * afaik). You can indicate whether this blocking should be interruptible
101 * Nested calls are supported (a per-resource counter is maintained)
135 * vga_tryget - try to acquire & lock legacy VGA resources
141 * will return an error (-EBUSY) instead of blocking if the resources
152 * vga_put - release lock on legacy VGA resources
[all …]
/freebsd/tests/sys/audit/
H A Dnetwork.c1 /*-
32 #include <atf-c.h>
64 init_iov(struct iovec *io, char msgbuf[], int datalen) in init_iov() argument
66 io->iov_base = msgbuf; in init_iov()
67 io->iov_len = datalen; in init_iov()
74 init_msghdr(struct msghdr *hdrbuf, struct iovec *io, struct sockaddr_un *addr) in init_msghdr() argument
80 hdrbuf->msg_name = addr; in init_msghdr()
81 hdrbuf->msg_namelen = length; in init_msghdr()
82 hdrbuf->msg_iov = io; in init_msghdr()
83 hdrbuf->msg_iovlen = 1; in init_msghdr()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/power/supply/
H A Dsbs,sbs-battery.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/supply/sbs,sbs-battery.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sebastian Reichel <sre@kernel.org>
16 - $ref: power-supply.yaml#
21 - items:
22 - enum:
23 - ti,bq20z45
24 - ti,bq20z65
[all …]
/freebsd/sys/sys/
H A Dgpio.h3 /*-
4 * SPDX-License-Identifier: (BSD-2-Clause AND ISC)
68 #define GPIO_PIN_OPENDRAIN 0x00000004 /* open-drain output */
69 #define GPIO_PIN_PUSHPULL 0x00000008 /* push-pull output */
71 #define GPIO_PIN_PULLUP 0x00000020 /* internal pull-up enabled */
72 #define GPIO_PIN_PULLDOWN 0x00000040 /* internal pull-down enabled */
93 char gp_name[GPIOMAXNAME]; /* human-readable name */
105 * Reporting gpio pin-change per-event details to userland.
108 * more of these structures (or will return EWOULDBLOCK in non-blocking IO mode
118 * Reporting gpio pin-change summary data to userland.
[all …]
/freebsd/contrib/sendmail/include/sm/
H A Dio.h2 * Copyright (c) 2000-2002, 2004, 2013 Proofpoint, Inc. and its suppliers.
14 * $Id: io.h,v 1.26 2013-11-22 20:51:31 ca Exp $
17 /*-
28 /* mode for sm io (exposed) */
29 #define SM_IO_RDWR 1 /* read-write */
30 #define SM_IO_RDONLY 2 /* read-only */
31 #define SM_IO_WRONLY 3 /* write-only */
32 #define SM_IO_APPEND 4 /* write-only from eof */
33 #define SM_IO_APPENDRW 5 /* read-write from eof */
34 #define SM_IO_RDWRTR 6 /* read-write with truncation indicated */
[all …]
/freebsd/sys/cam/ctl/
H A Dctl_backend_block.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
5 * Copyright (c) 2009-2011 Spectra Logic Corporation
7 * Copyright (c) 2014-2021 Alexander Motin <mav@FreeBSD.org>
41 * $Id: //depot/users/kenm/FreeBSD-test2/sys/cam/ctl/ctl_backend_block.c#5 $
118 #define PRIV(io) \ argument
119 ((struct ctl_ptr_len_flags *)&(io)->io_hdr.ctl_private[CTL_PRIV_BACKEND])
120 #define ARGS(io) \ argument
121 ((struct ctl_lba_len_flags *)&(io)->io_hdr.ctl_private[CTL_PRIV_LBA_LEN])
122 #define DSM_RANGE(io) ((io)->io_hdr.ctl_private[CTL_PRIV_LBA_LEN].integer) argument
[all …]
H A Dctl_io.h1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
5 * Copyright (c) 2014-2015 Alexander Motin <mav@FreeBSD.org>
33 * $Id: //depot/users/kenm/FreeBSD-test2/sys/cam/ctl/ctl_io.h#5 $
65 * can delay I/O at two different points -- datamove and done. This is
170 #define CTL_LUN(io) ((i argument
168 CTL_LUN(io) global() argument
169 CTL_SOFTC(io) global() argument
171 CTL_PORT(io) global() argument
178 CTL_RSGL(io) global() argument
179 CTL_LSGL(io) global() argument
180 CTL_RSGLT(io) global() argument
181 CTL_LSGLT(io) global() argument
[all...]
/freebsd/crypto/openssl/demos/bio/
H A Dsconnect.c2 * Copyright 1998-2020 The OpenSSL Project Authors. All Rights Reserved.
10 /*-
12 * It is actually using non-blocking IO but in a very simple manner
13 * sconnect host:port - it does a 'GET / HTTP/1.0'
15 * cc -I../../include sconnect.c -L../.. -lssl -lcrypto
94 len -= i; in main()
/freebsd/crypto/openssl/ssl/
H A Ds3_msg.c2 * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
16 if (s->server) in ssl3_do_change_cipher_spec()
21 if (s->s3.tmp.key_block == NULL) { in ssl3_do_change_cipher_spec()
22 if (s->session == NULL || s->session->master_key_length == 0) { in ssl3_do_change_cipher_spec()
28 s->session->cipher = s->s3.tmp.new_cipher; in ssl3_do_change_cipher_spec()
29 if (!s->method->ssl3_enc->setup_key_block(s)) { in ssl3_do_change_cipher_spec()
35 if (!s->method->ssl3_enc->change_cipher_state(s, i)) { in ssl3_do_change_cipher_spec()
49 desc = s->method->ssl3_enc->alert_value(desc); in ssl3_send_alert()
50 if (s->version == SSL3_VERSION && desc == SSL_AD_PROTOCOL_VERSION) in ssl3_send_alert()
54 return -1; in ssl3_send_alert()
[all …]
H A Dd1_lib.c2 * Copyright 2005-2021 The OpenSSL Project Authors. All Rights Reserved.
71 if (!DTLS_RECORD_LAYER_new(&s->rlayer)) { in dtls1_new()
82 d1->buffered_messages = pqueue_new(); in dtls1_new()
83 d1->sent_messages = pqueue_new(); in dtls1_new()
85 if (s->server) { in dtls1_new()
86 d1->cookie_len = sizeof(s->d1->cookie); in dtls1_new()
89 d1->link_mtu = 0; in dtls1_new()
90 d1->mtu = 0; in dtls1_new()
92 if (d1->buffered_messages == NULL || d1->sent_messages == NULL) { in dtls1_new()
93 pqueue_free(d1->buffered_messages); in dtls1_new()
[all …]
/freebsd/crypto/openssl/crypto/bio/
H A Dbf_nbio.c2 * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
36 "non-blocking IO test filter",
62 nt->lrn = -1; in nbiof_new()
63 nt->lwn = -1; in nbiof_new()
64 bi->ptr = (char *)nt; in nbiof_new()
65 bi->init = 1; in nbiof_new()
73 OPENSSL_free(a->ptr); in nbiof_free()
74 a->ptr = NULL; in nbiof_free()
75 a->init = 0; in nbiof_free()
76 a->flags = 0; in nbiof_free()
[all …]
/freebsd/sys/kern/
H A Dsys_socket.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
121 struct socket *so = fp->f_data; in soo_read()
137 struct socket *so = fp->f_data; in soo_write()
153 struct socket *so = fp->f_data; in soo_ioctl()
160 so->so_state |= SS_NBIO; in soo_ioctl()
162 so->so_state &= ~SS_NBIO; in soo_ioctl()
169 so->so_state |= SS_ASYNC; in soo_ioctl()
171 so->sol_sbrcv_flags |= SB_ASYNC; in soo_ioctl()
172 so->sol_sbsnd_flags |= SB_ASYNC; in soo_ioctl()
[all …]
/freebsd/sys/dev/mmc/
H A Dmmcbr_if.m1 #-
32 # Group. This Simplified Specification is provided on a non-confidential
35 # Association, SD Group, SD-3C LLC or other third parties.
41 # is provided "AS-IS" without any representations or warranties of any
42 # kind. No responsibility is assumed by the SD Group, SD-3C LLC or the SD
44 # right of the SD Group, SD-3C LLC, the SD Card Association or any third
47 # SD Group, SD-3C LLC, the SD Card Association or any third party. Nothing
48 # herein shall be construed as an obligation by the SD Group, the SD-3C LLC
50 # information, know-how or other confidential information to any third party.
93 # Called by the mmcbus to set up the IO pins correctly, the common/core
[all …]
/freebsd/contrib/sendmail/include/sendmail/
H A Dsendmail.h2 * Copyright (c) 1998-2001 Proofpoint, Inc. and its suppliers.
4 * Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved.
13 * $Id: sendmail.h,v 8.69 2013-11-22 20:51:30 ca Exp $
17 ** SENDMAIL.H -- Global definitions for sendmail.
22 #include <sm/io.h>
44 #define SFF_SETUIDOK 0x00000020L /* set-user-ID files are ok */
49 #define SFF_NOWLINK 0x00000400L /* links only in non-writable dirs */
58 #define SFF_NBLOCK 0x00080000L /* use a non-blocking lock */
61 /* pseudo-flags */
/freebsd/crypto/openssl/apps/
H A Ds_server.c2 * Copyright 1995-2024 The OpenSSL Project Authors. All Rights Reserved.
73 static int accept_socket = -1;
109 * We define this but make it always be 0 in no-dtls builds to simplify the
137 * possible to use a single callback for all protocol versions - but it in psk_server_cb()
289 wbuf->alloced = 1024; in ebcdic_new()
290 wbuf->buff[0] = '\0'; in ebcdic_new()
341 if (inl > (num = wbuf->alloced)) { in ebcdic_write()
348 wbuf->alloced = num; in ebcdic_write()
349 wbuf->buff[0] = '\0'; in ebcdic_write()
354 ebcdic2ascii(wbuf->buff, in, inl); in ebcdic_write()
[all …]
/freebsd/contrib/ntp/ntpd/
H A Drefclock_gpsdjson.c2 * refclock_gpsdjson.c - clock driver as GPSD JSON client
15 * - There is no GPSD for Windows. (There is an unofficial port to
18 * - To work properly, this driver needs PPS and TPV/TOFF sentences
22 * - The device name matching must be done in a different way for
26 * Windows, there's no reason why this should not work there ;-) If this
29 * ---------------------------------------------------------------------
39 * (unit%128). The primary clock unit does all the IO stuff and data
47 * This design is a compromise to reduce the IO load for both NTPD and
51 * ---------------------------------------------------------------------
98 #define INVALID_TOKEN (-1)
[all …]
/freebsd/crypto/openssl/ssl/statem/
H A Dstatem.c2 * Copyright 2015-2022 The OpenSSL Project Authors. All Rights Reserved.
30 * including handling of non-blocking IO events, flushing of the underlying
32 * separate sub-state machines which control reading and writing respectively.
40 * --------------------------------------------- -------------------
44 * | -------------------- -------------------- | Transition | Handshake state |
46 * | | sub-state | | sub-state | |----------->| |
49 * | -------------------- -------------------- | | |
51 * --------------------------------------------- -------------------
73 return ssl->statem.hand_state; in SSL_get_state()
78 return s->statem.in_init; in SSL_in_init()
[all …]
/freebsd/sys/netinet/
H A Dsctp_peeloff.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
4 * Copyright (c) 2001-2007, by Cisco Systems, Inc. All rights reserved.
5 * Copyright (c) 2008-2012, by Randall Stewart. All rights reserved.
6 * Copyright (c) 2008-2012, by Michael Tuexen. All rights reserved.
58 inp = (struct sctp_inpcb *)head->so_pcb; in sctp_can_peel_off()
63 if ((inp->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) || in sctp_can_peel_off()
64 (inp->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL)) { in sctp_can_peel_off()
92 inp = (struct sctp_inpcb *)head->so_pcb; in sctp_do_peeloff()
111 n_inp = (struct sctp_inpcb *)so->so_pcb; in sctp_do_peeloff()
[all …]

123456