/freebsd/crypto/openssl/test/recipes/10-test_bn_data/ |
H A D | bnmod.txt | 1 # Copyright 2016-2022 The OpenSSL Project Authors. All Rights Reserved. 8 # These test vectors satisfy A * B = ModMul (mod M) and 0 <= ModMul < M. 16 M = c462c7cdd79b7604246a0cd97c017700feb25908656b4733353af8119ecfa0212e4bd24304edd566adb5c1e9daa4089… 20 B = -8734c4a2361fc530f60b28a5f1c7e93136c5ff6bfc7553965eaca54c61e6befb3c0f8cef4280e780cc5940d21a740d… 21 M = c462c7cdd79b7604246a0cd97c017700feb25908656b4733353af8119ecfa0212e4bd24304edd566adb5c1e9daa4089… 24 A = -6715098ab2ba3ea1e6341e89936e3ae913cdd450dc831c8534071f3c362841e47d88f2cd29c0d1239aa0949f3685f1… 26 M = c462c7cdd79b7604246a0cd97c017700feb25908656b4733353af8119ecfa0212e4bd24304edd566adb5c1e9daa4089… 29 A = -11fec955948e007b59fc50e729941ee9d43d552b9411510b73f6b4faafc0465f261f8381d96f647267f72175883172… 30 B = -2b3792f39499767e0a8b7a6a406e470a78f97ebb36765beab5fe52e95abf7582736db72a2ebfdb2405e3954c968b35… 31 M = c462c7cdd79b7604246a0cd97c017700feb25908656b4733353af8119ecfa0212e4bd24304edd566adb5c1e9daa4089… [all …]
|
/freebsd/contrib/bsddialog/lib/ |
H A D | menubox.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2021-2024 Alfonso Sabato Siciliano 69 int sel; /* current focus item, can be -1 */ 89 build_privatemenu(struct bsddialog_conf *conf, struct privatemenu *m, in build_privatemenu() argument 102 m->nitem in build_privatemenu() 181 set_return_on(struct privatemenu * m,struct bsddialog_menugroup * groups) set_return_on() argument 299 drawseparators(struct bsddialog_conf * conf,struct privatemenu * m) drawseparators() argument 330 drawitem(struct bsddialog_conf * conf,struct privatemenu * m,int y,bool focus) drawitem() argument 397 update_menubox(struct bsddialog_conf * conf,struct privatemenu * m) update_menubox() argument 420 menu_size_position(struct dialog * d,struct privatemenu * m) menu_size_position() argument 457 mixedlist_redraw(struct dialog * d,struct privatemenu * m) mixedlist_redraw() argument 509 struct privatemenu m; do_mixedlist() local [all...] |
/freebsd/sys/dev/sound/midi/ |
H A D | midi.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 109 int hiwat; /* QLEN(outq)>High-water -> disable 125 struct snd_midi *m; member 281 * auto-assign new unit number unit != 0 already assigned a unit number, eg. 282 * not the first channel provided by this device. channel, sub-unit 295 struct snd_midi *m; in midi_init() local 303 * Protect against call with existing unit/channel or auto-allocate a in midi_init() 306 i = -1; in midi_init() 307 TAILQ_FOREACH(m, &midi_devs, link) { in midi_init() [all …]
|
H A D | mpu401.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 68 #define CMD(m,d) MPUFOI_WRITE(m, m->cookie, MPU_CMDPORT,d) argument 69 #define STATUS(m) MPUFOI_REA argument 70 READ(m) global() argument 71 WRITE(m,d) global() argument 111 struct mpu401 *m = (struct mpu401 *)a; mpu401_timeout() local 118 mpu401_intr(struct mpu401 * m) mpu401_intr() argument 128 RXRDY(m) mpu401_intr() argument 129 TXRDY(m) mpu401_intr() argument 177 struct mpu401 *m; mpu401_init() local 205 mpu401_uninit(struct mpu401 * m) mpu401_uninit() argument 220 struct mpu401 *m = arg; mpu401_minit() local 244 struct mpu401 *m = arg; mpu401_muninit() local 264 struct mpu401 *m = arg; mpu401_mcallback() local 293 mpu401_mprovider(struct snd_midi * m,void * arg) mpu401_mprovider() argument [all...] |
/freebsd/lib/libthr/thread/ |
H A D | thr_mutex.c | 1 /*- 2 * SPDX-License-Identifier: BSD-4-Clause 24 * 4. Neither the name of the author nor the names of any co-contributors 49 #include "un-namespace.h" 54 "pthread_mutex is too large for off-page"); 81 static int mutex_qidx(struct pthread_mutex *m); 82 static bool is_robust_mutex(struct pthread_mutex *m); 83 static bool is_pshared_mutex(struct pthread_mutex *m); 120 mutex_init_link(struct pthread_mutex *m __unused) in mutex_init_link() 124 m->m_qe.tqe_prev = NULL; in mutex_init_link() [all …]
|
/freebsd/sys/crypto/ |
H A D | sha1.c | 2 /*- 3 * SPDX-License-Identifier: BSD-3-Clause 34 * FIPS pub 180-1: Secure Hash Algorithm (SHA-1) 35 * based on: http://csrc.nist.gov/fips/fip180-1.txt 36 * implemented by Jun-ichiro itojun Itoh <itojun@itojun.org> 64 #define S(n, x) (((x) << (n)) | ((x) >> (32 - n))) 66 #define H(n) (ctxt->h.b32[(n)]) 67 #define COUNT (ctxt->count) 68 #define BCOUNT (ctxt->c.b64[0] / 8) 69 #define W(n) (ctxt->m.b32[(n)]) [all …]
|
/freebsd/contrib/googletest/googletest/test/ |
H A D | googletest-output-test-golden-lin.txt | 1 The non-test part of the code is expected to have 2 failures. 3 googletest-output-test_.cc:#: Failure 9 googletest-output-test_.cc:#: Failure 15 [0;32m[==========] [mRunning 90 tests from 43 test suites. 16 [0;32m[----------] [mGlobal test environment set-up. 19 [0;32m[----------] [m1 test from ADeathTest 20 [0;32m[ RUN ] [mADeathTest.ShouldRunFirst 21 [0;32m[ OK ] [mADeathTest.ShouldRunFirst 22 [0;32m[----------] [m1 test from ATypedDeathTest/0, where TypeParam = int 23 [0;32m[ RUN ] [mATypedDeathTest/0.ShouldRunFirst [all …]
|
/freebsd/sys/kern/ |
H A D | uipc_sockbuf.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 74 static void sbcompress_ktls_rx(struct sockbuf *sb, struct mbuf *m, 84 sbm_clrprotoflags(struct mbuf *m, int flags) in sbm_clrprotoflags() argument 91 while (m) { in sbm_clrprotoflags() 92 m->m_flags &= mask; in sbm_clrprotoflags() 93 m = m->m_next; in sbm_clrprotoflags() 109 struct mbuf *m, *n; in sbready_compress() local 114 if ((sb->sb_flags & SB_NOCOALESCE) != 0) in sbready_compress() 117 for (m = m0; m != end; m = m->m_next) { in sbready_compress() [all …]
|
H A D | uipc_mbuf.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 183 * to compiler-induced padding and alignment artifacts. 185 CTASSERT(MSIZE - offsetof(struct mbuf, m_dat) == MLEN); 186 CTASSERT(MSIZE - offsetof(struct mbuf, m_pktdat) == MHLEN); 189 * mbuf data storage should be 64-bit aligned regardless of architectural 196 * While the specific values here don't matter too much (i.e., +/- a few 199 * network-protocol and device-driver modules encode these layouts, and must 214 /* PowerPC booke has 64-bit physical pointers. */ 234 * Attach the cluster from *m to *n, set up m_ext in *n [all …]
|
H A D | kern_mutex.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 93 #define mtx_unowned(m) ((m)->mtx_lock == MTX_UNOWNED) argument 95 #define mtx_destroyed(m) ((m)->mtx_lock == MTX_DESTROYED) argument 180 * System-wide mutexes 240 struct mtx *m; in unlock_mtx() local 242 m = (struct mtx *)lock; in unlock_mtx() 243 mtx_assert(m, MA_OWNED | MA_NOTRECURSED); in unlock_mtx() 244 mtx_unlock(m); in unlock_mtx() 251 struct mtx *m; in unlock_spin() local [all …]
|
H A D | kern_mbuf.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 82 * Thus common-case allocations and locking are simplified: 86 * | .------------>[(Packet Cache)] m_get(), m_gethdr() 103 * Caches are per-CPU and are filled from the Primary Zone. 106 * memory pool it gets pre-initialized with the _zinit_ functions. 127 if (error == 0 && req->newptr != NULL) { in sysctl_mb_use_ext_pgs() 213 if (error == 0 && req->newptr && newnmbclusters != nmbclusters) { in sysctl_nmbclusters() 236 if (error == 0 && req->newptr && newnmbjumbop != nmbjumbop) { in sysctl_nmbjumbop() 258 if (error == 0 && req->newptr && newnmbjumbo9 != nmbjumbo9) { in sysctl_nmbjumbo9() [all …]
|
/freebsd/contrib/tcsh/ |
H A D | ed.defns.c | 4 /*- 39 /* no #define here -- this is a dummy to detect initing of the key map */ 312 F_NEWLINE, /* ^M */ 344 F_INSERT, /* - */ 376 F_INSERT, /* M */ 408 F_INSERT, /* m */ 427 F_UNASSIGNED, /* M-^@ */ 428 F_UNASSIGNED, /* M-^A */ 429 F_UNASSIGNED, /* M-^B */ 430 F_UNASSIGNED, /* M-^C */ [all …]
|
/freebsd/sys/dev/sound/pcm/ |
H A D | mixer.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2005-2009 Ariff Abdullah <ariff@FreeBSD.org> 5 * Portions Copyright (c) Ryan Beasley <ryan.beasley@gmail.com> - GSoC 2006 117 return snddev->mixer_dev; in mixer_get_devt() 129 return -1; in mixer_lookup() 134 snd_mtxunlock((x)->lock); \ 139 snd_mtxlock((x)->lock); \ 143 mixer_set_softpcmvol(struct snd_mixer *m, struct snddev_info *d, in mixer_set_softpcmvol() argument 152 if (mtx_owned(m->lock)) in mixer_set_softpcmvol() [all …]
|
/freebsd/contrib/libedit/ |
H A D | map.c | 3 /*- 83 /* 13 */ ED_NEWLINE, /* ^M */ 115 /* 45 */ ED_INSERT, /* - */ 147 /* 77 */ ED_INSERT, /* M */ 179 /* 109 */ ED_INSERT, /* m */ 198 /* 128 */ ED_UNASSIGNED, /* M-^@ */ 199 /* 129 */ ED_UNASSIGNED, /* M-^A */ 200 /* 130 */ ED_UNASSIGNED, /* M-^B */ 201 /* 131 */ ED_UNASSIGNED, /* M-^C */ 202 /* 132 */ ED_UNASSIGNED, /* M-^D */ [all …]
|
/freebsd/sys/vm/ |
H A D | vm_page.c | 1 /*- 2 * SPDX-License-Identifier: (BSD-3-Clause AND MIT-CMU) 9 * The Mach Operating System project at Carnegie-Mellon University. 36 /*- 37 * Copyright (c) 1987, 1990 Carnegie-Mellon University. 57 * Pittsburgh PA 15213-3890 133 "Number of failed per-page atomic queue state updates"); 146 * bogus page -- for I/O to/from partially complete buffers, 165 static void vm_page_alloc_check(vm_page_t m); 167 static bool _vm_page_busy_sleep(vm_object_t obj, vm_page_t m, [all …]
|
/freebsd/contrib/wpa/src/eap_peer/ |
H A D | eap_methods.c | 3 * Copyright (c) 2004-2007, Jouni Malinen <j@w1.fi> 25 * eap_peer_get_eap_method - Get EAP method based on type number 26 * @vendor: EAP Vendor-Id (0 = IETF) 33 struct eap_method *m; in eap_peer_get_eap_method() local 34 for (m = eap_methods; m; m = m->next) { in eap_peer_get_eap_method() 35 if (m->vendor == vendor && m->method == method) in eap_peer_get_eap_method() 36 return m; in eap_peer_get_eap_method() 43 * eap_peer_get_type - Get EAP type for the given EAP method name 45 * @vendor: Buffer for returning EAP Vendor-Id 53 struct eap_method *m; in eap_peer_get_type() local [all …]
|
/freebsd/lib/libmixer/ |
H A D | mixer.c | 1 /*- 48 if (ioctl(dev->parent_mixer->fd, MIXER_READ(dev->devno), &v) < 0) in _mixer_readvol() 49 return (-1); in _mixer_readvol() 50 dev->vol.left = MIX_VOLNORM(v & 0x00ff); in _mixer_readvol() 51 dev->vol.right = MIX_VOLNORM((v >> 8) & 0x00ff); in _mixer_readvol() 67 struct mixer *m = NULL; in mixer_open() local 72 if ((m = calloc(1, sizeof(struct mixer))) == NULL) in mixer_open() 78 m->unit = -1; in mixer_open() 83 m->unit = strtol(name + strlen(BASEPATH), NULL, 10); in mixer_open() 85 (void)strlcpy(m->name, name, sizeof(m->name)); in mixer_open() [all …]
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | mcache.c | 2 * Copyright (c) 1997-2004 Kungliga Tekniska Högskolan 55 #define MCACHE(X) ((krb5_mcache *)(X)->data.data) 57 #define MISDEAD(X) ((X)->dead) 63 return MCACHE(id)->name; in mcc_get_name() 69 krb5_mcache *m, *m_c; in mcc_alloc() local 72 ALLOC(m, 1); in mcc_alloc() 73 if(m == NULL) in mcc_alloc() 76 ret = asprintf(&m->name, "%p", m); in mcc_alloc() 78 m->name = strdup(name); in mcc_alloc() 79 if(ret < 0 || m->name == NULL) { in mcc_alloc() [all …]
|
/freebsd/crypto/openssh/ |
H A D | monitor_wrap.c | 48 #include "openbsd-compat/sys-queue.h" 60 #include "auth-options.h" 64 #include "auth-pam.h" 67 #include "ssh-gss.h" 94 if (mon->m_log_sendfd == -1) in mm_log_handler() 107 POKE_U32(sshbuf_mutable_ptr(log_msg), len - 4); in mm_log_handler() 108 if (atomicio(vwrite, mon->m_log_sendfd, in mm_log_handler() 121 return (pmonitor && pmonitor->m_pid > 0); in mm_is_monitor() 127 int status = -1; in mm_reap() 131 while (waitpid(pmonitor->m_pid, &status, 0) == -1) { in mm_reap() [all …]
|
/freebsd/contrib/nvi/regex/ |
H A D | engine.c | 3 /*- 74 const RCHAR_T *beginp; /* start of string -- virtual NUL precedes */ 75 const RCHAR_T *endp; /* end of string -- virtual NUL here */ 92 static const RCHAR_T *dissect(struct match *m, const RCHAR_T *start, const RCHAR_T *stop, sopno sta… 93 static const RCHAR_T *backref(struct match *m, const RCHAR_T *start, const RCHAR_T *stop, sopno sta… 94 static const RCHAR_T *fast(struct match *m, const RCHAR_T *start, const RCHAR_T *stop, sopno starts… 95 static const RCHAR_T *slow(struct match *m, const RCHAR_T *start, const RCHAR_T *stop, sopno starts… 104 static void print(struct match *m, char *caption, states st, int ch, FILE *d); 107 static void at(struct match *m, char *title, char *start, char *stop, sopno startst, sopno stopst); 119 #define SP(t, s, c) print(m, t, s, c, stdout) [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/dd/ |
H A D | dd_interceptors.cpp | 1 //===-- dd_interceptors.cpp -----------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 18 __attribute__((tls_model("initial-exec"))) 20 __attribute__((tls_model("initial-exec"))) 43 INTERCEPTOR(int, pthread_mutex_destroy, pthread_mutex_t *m) { in INTERCEPTOR() argument 45 MutexDestroy(thr, (uptr)m); in INTERCEPTOR() 46 return REAL(pthread_mutex_destroy)(m); in INTERCEPTOR() 49 INTERCEPTOR(int, pthread_mutex_lock, pthread_mutex_t *m) { in INTERCEPTOR() argument 51 MutexBeforeLock(thr, (uptr)m, true); in INTERCEPTOR() [all …]
|
/freebsd/lib/libc/regex/ |
H A D | engine.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 85 const char *beginp; /* start of string -- virtual NUL precedes */ 86 const char *endp; /* end of string -- virtual NUL here */ 104 static const char *dissect(struct match *m, const char *start, const char *stop, sopno startst, sop… 105 static const char *backref(struct match *m, const char *start, const char *stop, sopno startst, sop… 106 static const char *walk(struct match *m, const char *start, const char *stop, sopno startst, sopno … 109 #define BOL (OUT-1) 110 #define EOL (BOL-1) 111 #define BOLEOL (BOL-2) [all …]
|
/freebsd/sys/dev/mlx5/mlx5_en/ |
H A D | en.h | 1 /*- 2 * Copyright (c) 2015-2021 Mellanox Technologies. All rights reserved. 110 ((hwmtu) - (ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN + ETHER_CRC_LEN)) 129 ((MLX5_SEND_WQE_MAX_WQEBBS * MLX5_SEND_WQEBB_NUM_DS) - \ 130 (MLX5E_MAX_TX_HEADER / MLX5_SEND_WQE_DS) - \ 133 (MLX5E_MAX_TX_HEADER - sizeof(struct mlx5e_tx_wqe) + \ 134 sizeof(((struct mlx5e_tx_wqe *)0)->eth.inline_hdr_start)) /* bytes */ 140 memset(&(ptr)->field, 0, \ 141 sizeof(*(ptr)) - __offsetof(__typeof(*(ptr)), field)) 152 __func__, __LINE__, curthread->td_proc->p_pid, \ [all …]
|
/freebsd/tools/test/stress2/misc/ |
H A D | backingstore.sh | 31 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1 38 m=$mdstart 40 mount | grep "$mntpoint" | grep -q md$m && umount $mntpoint$m 41 mdconfig -l | grep -q md$m && mdconfig -d -u $m 43 dd if=/dev/zero of=$D$m bs=100m count=1 status=none || exit 1 45 mdconfig -a -t vnode -f $D$m -u $m 47 newfs md${m} > /dev/null 2>&1 48 [ -d $mntpoint$m ] || mkdir -p $mntpoint$m 49 mount $opt /dev/md$m $mntpoint$m 51 n=$m [all …]
|
/freebsd/sys/xdr/ |
H A D | xdr_mbuf.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 44 /* XXX: w/64-bit pointers, u_int not enough! */ 66 xdrmbuf_create(XDR *xdrs, struct mbuf *m, enum xdr_op op) in xdrmbuf_create() argument 69 KASSERT(m != NULL, ("xdrmbuf_create with NULL mbuf chain")); in xdrmbuf_create() 70 xdrs->x_op = op; in xdrmbuf_create() 71 xdrs->x_ops = &xdrmbuf_ops; in xdrmbuf_create() 72 xdrs->x_base = (char *) m; in xdrmbuf_create() 74 m = m_last(m); in xdrmbuf_create() 75 xdrs->x_private = m; in xdrmbuf_create() [all …]
|