| /freebsd/sbin/ipf/ipf/ |
| H A D | ipf.4 | 3 ipf \- packet filtering kernel interface 13 ioctl(fd, SIOCADDFR, struct frentry **) 14 ioctl(fd, SIOCDELFR, struct frentry **) 15 ioctl(fd, SIOCIPFFL, int *) 21 ioctl(fd, SIOCADAFR, struct frentry **) (same as SIOCADDFR) 22 ioctl(fd, SIOCRMAFR, struct frentry **) (same as SIOCDELFR) 23 ioctl(fd, SIOCADIFR, struct frentry **) 24 ioctl(fd, SIOCRMIFR, struct frentry **) 25 ioctl(fd, SIOCINAFR, struct frentry **) 26 ioctl(fd, SIOCINIFR, struct frentry **) [all …]
|
| /freebsd/stand/kboot/libkboot/ |
| H A D | dfk.c | 4 * SPDX-License-Identifier: BSD-2-Clause 48 int fd; member 51 // All the line_buffer stuff can be replaced by fgetstr() 55 int fd; member 69 lb->pos = lb->eos = lb->buf; // Reset to no data condition in lb_fill() 70 rv = read(lb->fd, lb->buf, sizeof(lb->buf)); in lb_fill() 73 lb->pos = lb->buf; in lb_fill() 74 lb->eos = lb->buf + rv; in lb_fill() 81 close(lb->fd); in lb_fini() 88 lb->fd = open(fn, O_RDONLY); in lb_init() [all …]
|
| /freebsd/contrib/libpcap/ |
| H A D | pcap-usb-linux.c | 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 39 #include "pcap-int.h" 40 #include "pcap-usb-linux.h" 41 #include "pcap-usb-linux-common.h" 72 #include "diag-control.h" 77 #define USBMON_DEV_PREFIX_LEN (sizeof USBMON_DEV_PREFIX - 1) 98 size_t data_len; /* Length of data (can be zero) */ 127 u_char *mmapbuf; /* memory-mapped region pointer */ 150 * XXX - is there any notion of "up" and "running"? in usb_dev_add() 154 * As this refers to all buses, there's no notion of in usb_dev_add() [all …]
|
| H A D | pcap-bpf.c | 31 * at least on *BSD and macOS, it also defines various SIOC ioctls - 51 #define USBUS_PREFIX_LEN (sizeof(usbus_prefix) - 1) 70 * values, not IBM's non-standard IFT_ values. 78 * zero-copy BPF. 129 #include "pcap-int.h" 132 #include "os-proto.h" 137 * to align the IP header on a 4-byte boundary. 149 * Zero-copy read buffer -- for zero-copy BPF. 'buffer' above will 154 * associated with buffer so that it can be used to decide which the 190 * We check this by checking whether IFM_GMASK is defined and > 2^32-1. [all …]
|
| H A D | pcap-linux.c | 2 * pcap-linux.c: Packet capture interface to the Linux kernel 5 * Sebastian Krahmer <krahmer@cs.uni-potsdam.de> 36 * Monitor-mode support for mac80211 includes code taken from the iw 60 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 99 #include "pcap-int.h" 100 #include "pcap-util.h" 105 #include "diag-control.h" 124 * least some people are doing cross-builds for MIPS with older versions 135 (__atomic_load_n(&pkt->tp_status, __ATOMIC_ACQUIRE) != TP_STATUS_KERNEL) 137 (__atomic_store_n(&pkt->tp_status, TP_STATUS_KERNEL, __ATOMIC_RELEASE)) [all …]
|
| /freebsd/contrib/llvm-project/lldb/include/lldb/Host/ |
| H A D | Terminal.h | 1 //===-- Terminal.h -------- 23 No, global() enumerator 32 No, global() enumerator 42 m_fd(fd) m_fd() argument 50 SetFileDescriptor(int fd) SetFileDescriptor() argument [all...] |
| /freebsd/secure/lib/libcrypto/man/man3/ |
| H A D | ASYNC_WAIT_CTX_new.3 | 1 .\" -*- mode: troff; coding: utf-8 -*- 58 .TH ASYNC_WAIT_CTX_NEW 3ossl 2025-09-30 3.5.4 OpenSSL 71 \&\- functions to manage waiting for asynchronous jobs to complete 85 \& OSSL_ASYNC_FD fd, 90 \& OSSL_ASYNC_FD *fd, void **custom_data); 91 \& int ASYNC_WAIT_CTX_get_all_fds(ASYNC_WAIT_CTX *ctx, OSSL_ASYNC_FD *fd, 111 this would have a one-to-one correspondence with an SSL connection. 117 any one time, but can be reused after an \fBASYNC_JOB\fR has finished for a 121 \&\fBASYNC_WAIT_CTX\fRs can have "wait" file descriptors associated with them. 124 associated with that job in \fI*fd\fR. The number of file descriptors returned will [all …]
|
| /freebsd/lib/libfigpar/ |
| H A D | figpar.c | 1 /*- 2 * Copyright (c) 2002-2015 Devin Teske <dteske@FreeBSD.org> 17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 44 * If no match is found, a pointer to the static dummy array (above) is 64 /* Re-initialize the dummy variable in case it was written to */ in get_config_option() 74 * Parse the configuration file at `path' and execute the `action' call-back 78 * For unknown directives that are encountered, you can optionally pass a 79 * call-back function for the third argument to be called for unknowns. 81 * Returns zero on success; otherwise returns -1 and errno should be consulted. 103 int fd; in parse_config() local [all …]
|
| /freebsd/contrib/libarchive/libarchive/ |
| H A D | archive_read_open_filename.c | 1 /*- 2 * Copyright (c) 2003-2010 Tim Kientzle 17 * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, 74 int fd; member 131 strcpy(mine->filename.m, filename); in archive_read_open_filenames() 132 mine->block_size = block_size; in archive_read_open_filenames() 133 mine->fd = -1; in archive_read_open_filenames() 134 mine->buffer = NULL; in archive_read_open_filenames() 135 mine->st_mode = mine->use_lseek = 0; in archive_read_open_filenames() 137 mine->filename_type = FNT_STDIN; in archive_read_open_filenames() [all …]
|
| H A D | archive_write_open_filename.c | 1 /*- 2 * Copyright (c) 2003-2007 Tim Kientzle 17 * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, 59 int fd; member 103 archive_set_error(a, ENOMEM, "No memory"); in open_filename() 107 r = archive_mstring_copy_mbs(&mine->filename, filename); in open_filename() 109 r = archive_mstring_copy_wcs(&mine->filename, filename); in open_filename() 113 archive_set_error(a, ENOMEM, "No memory"); in open_filename() 118 "Can't convert '%s' to WCS", in open_filename() 122 "Can't convert '%ls' to MBS", in open_filename() [all …]
|
| /freebsd/stand/i386/loader/ |
| H A D | chain.c | 1 /*- 17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 61 int fd, len, size = SECTOR_SIZE; in command_chain() local 71 command_errmsg = "no device or file name specified"; in command_chain() 79 fd = open(argv[1], O_RDONLY); in command_chain() 80 if (fd == -1) { in command_chain() 86 vctx = vectx_open(fd, argv[1], 0L, NULL, &verror, __func__); in command_chain() 88 sprintf(command_errbuf, "can't verify: %s", argv[1]); in command_chain() 89 close(fd); in command_chain() 95 if (verify_file(fd, argv[1], 0, VE_MUST, __func__) < 0) { in command_chain() [all …]
|
| /freebsd/lib/libsys/ |
| H A D | open.2 | 19 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 41 .Fn openat "int fd" "const char *path" "int flags" "..." 82 .Fa fd 94 .Fa fd 104 .Fa fd 117 .Fa fd ; 123 .Fa fd . 124 Additionally, no symbolic link in 127 .Fa fd 139 MIB is set to zero, ".." is not allowed if found on non-local filesystem. [all …]
|
| /freebsd/crypto/openssl/doc/man3/ |
| H A D | ASYNC_WAIT_CTX_new.pod | 12 - functions to manage waiting for asynchronous jobs to complete 26 OSSL_ASYNC_FD fd, 31 OSSL_ASYNC_FD *fd, void **custom_data); 32 int ASYNC_WAIT_CTX_get_all_fds(ASYNC_WAIT_CTX *ctx, OSSL_ASYNC_FD *fd, 53 this would have a one-to-one correspondence with an SSL connection. 59 any one time, but can be reused after an B<ASYNC_JOB> has finished for a 63 B<ASYNC_WAIT_CTX>s can have "wait" file descriptors associated with them. 66 associated with that job in I<*fd>. The number of file descriptors returned will 68 sufficient memory has been allocated in I<*fd> to receive all the file 69 descriptors. Calling ASYNC_WAIT_CTX_get_all_fds() with a NULL I<fd> value will [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/net/can/ |
| H A D | rcar_canfd.txt | 1 Renesas R-Car CAN FD controller Device Tree Bindings 2 ---------------------------------------------------- 5 - compatible: Must contain one or more of the following: 6 - "renesas,rcar-gen3-canfd" for R-Car Gen3 and RZ/G2 compatible controllers. 7 - "renesas,r8a774a1-canfd" for R8A774A1 (RZ/G2M) compatible controller. 8 - "renesas,r8a774b1-canfd" for R8A774B1 (RZ/G2N) compatible controller. 9 - "renesas,r8a774c0-canfd" for R8A774C0 (RZ/G2E) compatible controller. 10 - "renesas,r8a774e1-canfd" for R8A774E1 (RZ/G2H) compatible controller. 11 - "renesas,r8a7795-canfd" for R8A7795 (R-Car H3) compatible controller. 12 - "renesas,r8a7796-canfd" for R8A7796 (R-Car M3-W) compatible controller. [all …]
|
| /freebsd/share/man/man4/ |
| H A D | fdc.4 | 20 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 44 .Cd hint.fd.0.at="fdc0" 45 .Cd hint.fd.0.drive="0" 46 .Cd hint.fd.0.flags="0x0" 47 .Cd hint.fd.1.at="fdc0" 48 .Cd hint.fd.1.drive="1" 49 .Cd hint.fd.1.flags="0x0" 54 either FM (single-density) or MFM (double or high-density) recording 57 Floppy disk controllers can connect up to four drives each. 60 driver can currently handle up to two drives per controller (or four [all …]
|
| /freebsd/share/doc/psd/05.sysman/ |
| H A D | 2.1.t | 19 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 35 may occur in a non-blocking or asynchronous fashion are 36 common to all system-defined abstractions and are described here. 40 The \fIread\fP and \fIwrite\fP system calls can be applied 44 cc = read(fd, buf, nbytes); 45 result int cc; int fd; result caddr_t buf; int nbytes; 47 cc = write(fd, buf, nbytes); 48 result int cc; int fd; caddr_t buf; int nbytes; 51 object defined by \fIfd\fP to the buffer at address \fIbuf\fP of 53 returned in \fIcc\fP, which is \-1 if a return occurred before [all …]
|
| /freebsd/sbin/nvmecontrol/ |
| H A D | ns.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 5 * Copyright (C) 2018-2019 Alexander Motin <mav@FreeBSD.org> 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 80 { arg_string, &active_opt.dev, "controller-id|namespace-id" }, 113 { arg_string, &controllers_opt.dev, "controller-id|namespace-id" }, 173 // OPT("block-size", 'b', arg_uint32, create_opt, block_size, 179 { arg_string, &create_opt.dev, "controller-id|namespace-id" }, 198 .nsid = NONE - 1, 203 OPT("namespace-id", 'n', arg_uint32, delete_opt, nsid, [all …]
|
| /freebsd/contrib/capsicum-test/ |
| H A D | fcntl.cc | 17 #include "capsicum-test.h" 21 // capability-wrapped ones. 35 sprintf(shm_name, "/capsicum-test-%d", getuid()); in FORK_TEST() 37 if ((files["SHM"] == -1) && errno == ENOSYS) { in FORK_TEST() 38 // shm_open() is not implemented in user-mode Linux. in FORK_TEST() 46 std::string key = ii->first + " cap"; in FORK_TEST() 47 caps[key] = dup(ii->second); in FORK_TEST() 49 EXPECT_OK(caps[key]) << " on " << ii->first; in FORK_TEST() 57 // Ensure that we can fcntl() all the files that we opened above. in FORK_TEST() 61 EXPECT_OK(fcntl(ii->second, F_GETFL, 0)) << " on " << ii->first; in FORK_TEST() [all …]
|
| /freebsd/tests/sys/audit/ |
| H A D | utils.c | 1 /*- 16 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 34 #include <atf-c.h> 66 ATF_REQUIRE((reclen = au_read_rec(pipestream, &buff)) != -1); in get_records() 73 if (au_fetch_tok(&token, buff + bytes, reclen - bytes) == -1) { in get_records() 90 * Override the system-wide audit mask settings in /etc/security/audit_control 107 /* Set local preselection flag for non-attributable audit_events */ in set_preselect_mode() 113 atf_tc_fail("Query max-limit: %s", strerror(errno)); in set_preselect_mode() 117 atf_tc_fail("Set max-qlimit: %s", strerror(errno)); in set_preselect_mode() 125 * Get the corresponding audit_mask for class-name "name" then set the [all …]
|
| /freebsd/contrib/sendmail/libsm/ |
| H A D | local.h | 2 * Copyright (c) 2000-2002, 2004-2006 Proofpoint, Inc. and its suppliers. 11 * forth in the LICENSE file which can be found at the top level of 14 * $Id: local.h,v 1.59 2013-11-22 20:51:43 ca Exp $ 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); \ 96 (fp)->f_ub.smb_base = NULL; \ 113 ** SM_CONVERT_TIME -- convert the API timeout flag for select() usage. 116 ** file descriptor (fd) if possible. The 'fd' is needed to possibly [all …]
|
| /freebsd/lib/libutil/ |
| H A D | flopen.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2007-2009 Dag-Erling Smørgrav 20 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 45 * code's apparent simplicity; there would be no need for this function if it 51 int fd, operation, serrno, trunc; in vflopenat() local 72 if ((fd = openat(dirfd, path, flags, mode)) == -1) in vflopenat() 73 /* non-existent or no access */ in vflopenat() 74 return (-1); in vflopenat() 75 if (flock(fd, operation) == -1) { in vflopenat() [all …]
|
| /freebsd/tools/tools/zfsboottest/ |
| H A D | zfsboottest.c | 1 /*- 19 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 59 int fd; in ldi_get_size() local 61 fd = *(int *)priv; in ldi_get_size() 62 if (fstat(fd, &sb) != 0) in ldi_get_size() 64 if (S_ISCHR(sb.st_mode) && ioctl(fd, DIOCGMEDIASIZE, &sb.st_size) != 0) in ldi_get_size() 78 int fd = *(int *)priv; in vdev_read() local 80 if (pread(fd, buf, bytes, off) != bytes) in vdev_read() 81 return (-1); in vdev_read() 88 const znode_phys_t *zp = (const znode_phys_t *) dn->dn_bonus; in zfs_read() [all …]
|
| /freebsd/sys/contrib/openzfs/lib/libspl/ |
| H A D | backtrace.c | 1 // SPDX-License-Identifier: CDDL-1.0 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or https://opensource.org/licenses/CDDL-1.0. 33 * Output helpers. libspl_backtrace() must not block, must be thread-safe and 35 * printf, so we end up having to call write() directly on the fd. That's 40 #define spl_bt_write_n(fd, s, n) \ argument 41 do { ssize_t r __maybe_unused = write(fd, s, n); } while (0) 42 #define spl_bt_write(fd, s) spl_bt_write_n(fd, s, sizeof (s)-1) argument 46 * libunwind-gcc and libunwind-llvm both list registers using an enum, 48 * a given architecture in different ways. We can check which one is defined [all …]
|
| /freebsd/tools/regression/audit/audit_pipe_ioctl/ |
| H A D | audit_pipe_ioctl.c | 1 /*- 19 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 31 * limit information basically work. No attempt is made to validate the 48 int fd; in main() local 50 fd = open("/dev/auditpipe", O_RDONLY); in main() 51 if (fd < 0) in main() 52 err(-1, "/dev/auditpipe"); in main() 55 * First, test that we can read the queue length, queue limit, and in main() 58 len = (u_int)(-1); in main() 59 if (ioctl(fd, AUDITPIPE_GET_QLEN, &len) < 0) in main() [all …]
|
| /freebsd/contrib/openbsm/compat/ |
| H A D | flopen.h | 1 /*- 2 * Copyright (c) 2007 Dag-Erling Smørgrav 18 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 40 int fd, operation, serrno, trunc; in flopen() local 65 if ((fd = open(path, flags, mode)) == -1) in flopen() 66 /* non-existent or no access */ in flopen() 67 return (-1); in flopen() 68 if (flock(fd, operation) == -1) { in flopen() 71 (void)close(fd); in flopen() 73 return (-1); in flopen() [all …]
|