/freebsd/sys/geom/bde/ |
H A D | g_bde_work.c |
|
H A D | g_bde_crypt.c |
|
/freebsd/contrib/tcsh/ |
H A D | tc.who.c | 4 /*- 23 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 37 * kfk 26 Jan 1984 - for login watch functions. 43 # define UTNAMLEN sizeof(((struct utmpx *) 0)->ut_name) 44 # define UTLINLEN sizeof(((struct utmpx *) 0)->ut_line) 46 # define UTHOSTLEN sizeof(((struct utmpx *) 0)->ut_host) 97 # define UTNAMLEN sizeof(((struct utmp *) 0)->ut_name) 98 # define UTLINLEN sizeof(((struct utmp *) 0)->ut_line) 103 # define UTHOSTLEN sizeof(((struct utmp *) 0)->ut_host) 170 * when doing pointer-chase searches. [all …]
|
H A D | sh.func.c | 4 /*- 23 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 41 static iconv_t catgets_iconv; /* Or (iconv_t)-1 */ 52 static int zlast = -1; 69 Char *cp = t->t_dcom[0]; in isbfunc() 88 if (t->t_dflg & F_AMPERSAND) { in isbfunc() 89 t->t_dflg &= ~F_AMPERSAND; in isbfunc() 101 * non-builtin command. -- JDK 2/4/88 in isbfunc() 114 bp = bp1 + ((bp2 - bp1) >> 1); in isbfunc() 115 if ((i = ((char) *cp) - *bp->bname) == 0 && in isbfunc() [all …]
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_acl.c | 1 /*- 2 * Copyright (c) 2003-2010 Tim Kientzle 18 * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, 68 static void next_field_w(const wchar_t **wp, const wchar_t **start, 70 static void append_entry_w(wchar_t **wp, const wchar_t *prefix, int type, 72 static void append_id_w(wchar_t **wp, int id); 134 while (acl->acl_head != NULL) { in archive_acl_clear() 135 ap = acl->acl_head->next; in archive_acl_clear() 136 archive_mstring_clean(&acl->acl_head->name); in archive_acl_clear() 137 free(acl->acl_head); in archive_acl_clear() [all …]
|
/freebsd/contrib/nvi/cl/ |
H A D | cl_term.c | 1 /*- 78 * cl_term_init -- 93 CHAR_T *wp; in cl_term_init() local 97 for (tkp = c_tklist; tkp->name != NULL; ++tkp) { in cl_term_init() 98 if ((t = tigetstr(tkp->ts)) == NULL || t == (char *)-1) in cl_term_init() 100 CHAR2INT(sp, tkp->name, strlen(tkp->name), wp, wlen); in cl_term_init() 101 MEMCPY(name, wp, wlen); in cl_term_init() 102 CHAR2INT(sp, t, strlen(t), wp, wlen); in cl_term_init() 103 MEMCPY(ts, wp, wlen); in cl_term_init() 104 CHAR2INT(sp, tkp->output, strlen(tkp->output), wp, wlen); in cl_term_init() [all …]
|
/freebsd/crypto/openssh/ |
H A D | utf8.c | 11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 19 * Utility functions for multibyte-character handling, 49 * For US-ASCII and UTF-8 encodings, we can safely recover from 50 * encoding errors and from non-printable characters. For any 52 * For state-dependent encodings, recovery is impossible. 53 * For arbitrary encodings, replacement of non-printable 54 * characters would be non-trivial and too fragile. 56 * returns for US-ASCII on various operating systems. 64 return strcmp(loc, "UTF-8") != 0 && in dangerous_locale() 65 strcmp(loc, "US-ASCII") != 0 && /* OpenBSD */ in dangerous_locale() [all …]
|
/freebsd/sys/geom/vinum/ |
H A D | geom_vinum_raid5.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 19 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 57 struct gv_raid5_packet *wp, *wp2; in gv_raid5_start() local 62 wp = g_malloc(sizeof(*wp), M_WAITOK | M_ZERO); in gv_raid5_start() 63 wp->bio = bp; in gv_raid5_start() 64 wp->waiting = NULL; in gv_raid5_start() 65 wp->parity = NULL; in gv_raid5_start() 66 TAILQ_INIT(&wp->bits); in gv_raid5_start() 68 if (bp->bio_pflags & GV_BIO_REBUILD) in gv_raid5_start() [all …]
|
H A D | geom_vinum_plex.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 20 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 58 struct gv_raid5_packet *wp; in gv_plex_start() local 62 bcount = bp->bio_length; in gv_plex_start() 63 addr = bp->bio_data; in gv_plex_start() 64 boff = bp->bio_offset; in gv_plex_start() 68 wp = NULL; in gv_plex_start() 72 * might involve several read/write sub-requests. in gv_plex_start() 74 if (p->org == GV_PLEX_RAID5) { in gv_plex_start() [all …]
|
/freebsd/contrib/ncurses/ncurses/base/ |
H A D | resizeterm.c | 2 * Copyright 2020-2021,2024 Thomas E. Dickey * 3 * Copyright 1998-2015,2016 Free Software Foundation, Inc. * 19 * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * 40 * the private data structures -- T.Dickey 1995/7/4. 77 WINDOWLIST *wp; in show_window_sizes() local 85 for (each_window(sp, wp)) { in show_window_sizes() 87 (void *) &(wp->win), in show_window_sizes() 88 (long) wp->win._maxy + 1, in show_window_sizes() 89 (long) wp->win._maxx + 1, in show_window_sizes() 90 (long) wp->win._begy, in show_window_sizes() [all …]
|
H A D | lib_window.c | 3 * Copyright 1998-2010,2016 Free Software Foundation, Inc. * 19 * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * 31 * Author: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995 * 49 if (win->_immed) in NCURSES_EXPORT() 51 if (win->_sync) in NCURSES_EXPORT() 65 && (orig = win->_parent) != 0 in mvderwin() 72 win->_parx = x; in mvderwin() 73 win->_pary = y; in mvderwin() 75 win->_line[i].text = &(orig->_line[y++].text[x]); in mvderwin() 88 win->_sync = bf; in syncok() [all …]
|
/freebsd/usr.sbin/ppp/ |
H A D | async.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> 21 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 61 memset(async->cfg.EscMap, '\0', sizeof async->cfg.EscMap); in async_Init() 67 async->mode = MODE_HUNT; in async_Setup() 68 async->length = 0; in async_Setup() 69 async->my_accmap = async->his_accmap = 0xffffffff; in async_Setup() 75 async->my_accmap = mymap; in async_SetLinkParams() [all …]
|
H A D | pred.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 6 * Carsten Bormann <cabo@cs.tu-berlin.de> 22 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 53 * It builds a sliding hash sum of the previous 3-and-a-bit characters 58 #define HASH(state, x) state->hash = (state->hash << 4) ^ (x) 77 if (state->dict[state->hash] == *source) { in compress() 78 flags |= bitmask; /* Guess was right - don't output */ in compress() 80 state->dict[state->hash] = *source; in compress() 84 len--; in compress() [all …]
|
H A D | deflate.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 19 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 53 #define DEFLATE_CHUNK_LEN (1536 - sizeof(struct mbuf)) 60 state->seqno = 0; in DeflateResetOutput() 61 state->uncomp_rec = 0; in DeflateResetOutput() 62 deflateReset(&state->cx); in DeflateResetOutput() 73 u_char *wp, *rp; in DeflateOutput() local 83 mi->m_next = mp; in DeflateOutput() 87 mi->m_len = 1; in DeflateOutput() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/mmc/ |
H A D | mmc-controller.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/mmc/mmc-controller.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Ulf Hansson <ulf.hansson@linaro.org> 25 "#address-cell [all...] |
/freebsd/contrib/llvm-project/lldb/source/Commands/ |
H A D | CommandObjectWatchpointCommand.cpp | 1 //===-- CommandObjectWatchpointCommand.cpp --------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 44 ------------------------------------------------------ in CommandObjectWatchpointCommandAdd() 55 do not appear to be executing, double-check the command syntax." in CommandObjectWatchpointCommandAdd() 60 prompt. There is no limit to the number of commands supplied, but do NOT enter \ in CommandObjectWatchpointCommandAdd() 65 ---------------------------------------------------- in CommandObjectWatchpointCommandAdd() 75 This auto-generated function is passed in three arguments: in CommandObjectWatchpointCommandAdd() 79 wp: the watchpoint that was hit. in CommandObjectWatchpointCommandAdd() 82 "When specifying a python function with the --python-function option, you need \ in CommandObjectWatchpointCommandAdd() [all …]
|
/freebsd/sbin/dump/ |
H A D | tape.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 22 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 63 static int64_t lastspclrec = -1; /* tape block number of last written header */ 78 * Concurrent dump mods (Caltech) - disk block reading and tape writing 104 static struct worker *wp; variable 119 int pgoff = getpagesize() - 1; in alloctape() 126 * CDC 92181's and 92185's make 0.8" gaps in 1600-bpi start/stop mode in alloctape() 127 * (see DEC TU80 User's Guide). The shorter gaps of 6250-bpi require in alloctape() 146 workers[i].req = (struct req *)workers[i].tblock - ntrec - 1; in alloctape() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/pinctrl/ |
H A D | marvell,dove-pinctrl.txt | 3 Please refer to marvell,mvebu-pinctrl.txt in this directory for common binding 7 - compatible: "marvell,dove-pinctrl" 8 - clocks: (optional) phandle of pdma clock 9 - reg: register specifiers of MPP, MPP4, and PMU MPP registers 19 mpp1 1 gpio, pmu, uart2(cts), sdio0(wp), lcd1(pwm), pmu* 23 uart1(cts), lcd-spi(cs1), pmu* 25 mpp5 5 gpio, pmu, uart3(cts), sdio1(wp), spi1(cs), pmu* 31 mpp11 11 gpio, pmu, sata(prsnt), sata-1(act), sdio0(ledctrl), 35 mpp13 13 gpio, pmu, uart2(cts), audio1(extclk), sdio1(wp), 39 mpp16 16 gpio, uart3(rts), sdio0(cd), ac97(sdi1), lcd-spi(cs1) [all …]
|
/freebsd/sys/contrib/openzfs/lib/libuutil/ |
H A D | uu_list.c | 9 * or https://opensource.org/licenses/CDDL-1.0. 36 ((uu_list_node_impl_t *)((uintptr_t)(e) + (lp)->ul_offset)) 39 ((void *)((uintptr_t)(n) - (lp)->ul_offset)) 44 * in the low-bits of the index, to help prevent mistakes. 49 #define INDEX_MAX (sizeof (uintptr_t) - 1) 53 #define NODE_TO_INDEX(p, n) (((uintptr_t)(n) & ~INDEX_MAX) | (p)->ul_index) 54 #define INDEX_VALID(p, i) (((i) & INDEX_MAX) == (p)->ul_index) 69 uu_check_name(name, UU_NAME_DOMAIN) == -1 || in uu_list_pool_create() 86 (void) strlcpy(pp->ulp_nam in uu_list_pool_create() 395 list_walk_init(uu_list_walk_t * wp,uu_list_t * lp,uint32_t flags) list_walk_init() argument 425 list_walk_advance(uu_list_walk_t * wp,uu_list_t * lp) list_walk_advance() argument 440 list_walk_fini(uu_list_walk_t * wp) list_walk_fini() argument 456 uu_list_walk_t *wp; uu_list_walk_start() local 474 uu_list_walk_next(uu_list_walk_t * wp) uu_list_walk_next() argument 486 uu_list_walk_end(uu_list_walk_t * wp) uu_list_walk_end() argument 541 uu_list_walk_t *wp; uu_list_remove() local [all...] |
/freebsd/usr.bin/mail/ |
H A D | head.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 22 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 36 * Mail -- a mail program 56 fail(linebuf, "No date field"); in ishead() 92 hl->l_from = NULL; in parse() 93 hl->l_tty = NULL; in parse() 94 hl->l_date = NULL; in parse() 102 * Check for missing return-path. in parse() 105 hl->l_date = copyin(cp, &sp); in parse() [all …]
|
/freebsd/contrib/nvi/ex/ |
H A D | ex_script.c | 1 /*- 54 * ex_script -- : sc[ript][!] [file] 70 if (cmdp->argc != 0 && ex_edit(sp, cmdp)) in ex_script() 81 * sscr_init -- 95 sp->script = sc; in sscr_init() 96 sc->sh_prompt = NULL; in sscr_init() 97 sc->sh_prompt_len = 0; in sscr_init() 103 sc->sh_master = sc->sh_slave = -1; in sscr_init() 105 if (tcgetattr(STDIN_FILENO, &sc->sh_term) == -1) { in sscr_init() 113 sc->sh_term.c_oflag &= ~OPOST; in sscr_init() [all …]
|
/freebsd/contrib/libarchive/libarchive/test/ |
H A D | test_archive_string_conversion.c | 1 /*- 2 * Copyright (c) 2011-2012 Michihiro NAKAJIMA 17 * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, 34 tail -n +36 test_archive_string_conversion.c | /bin/sh 39 if [ ! -f ${if} ]; then 44 awk -F ';' '$0 ~/^[0-9A-F]+/ {printf "%s;%s\n", $2, $3}' ${if} | compress | uuencode ${of} > ${of}… 69 return ((int)(p - _p)); in unicode_to_utf8() 89 uc -= 0x10000; in unicode_to_utf16be() 116 uc -= 0x10000; in unicode_to_utf16le() 133 unicode_to_wc(wchar_t *wp, uint32_t uc) in unicode_to_wc() argument [all …]
|
/freebsd/contrib/nvi/common/ |
H A D | msg.c | 1 /*- 32 * msgq -- 50 static int reenter; /* STATIC: Re-entrancy check. */ in msgq() 65 * It's possible to enter msg when there's no screen to hold the in msgq() 76 gp = sp->gp; in msgq() 104 * probably dead anyway, but there's no reason to drop core. in msgq() 129 #define REM (blen - mlen) in msgq() 146 sp != NULL && gp != NULL && gp->if_name != NULL) { in msgq() 147 CHAR_T *wp; in msgq() local 150 CHAR2INT(sp, gp->if_name, strlen(gp->if_name) + 1, wp, wlen); in msgq() [all …]
|
/freebsd/tools/build/cross-build/ |
H A D | fgetwln_fallback.c | 17 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 33 #include "local-link.h" 57 if (fb->fp != stream && fb->fp != NULL) { in fgetwln() 62 fb->fp = stream; in fgetwln() 65 if (!fb->len || wused >= fb->len) { in fgetwln() 66 wchar_t *wp; in fgetwln() local 68 if (fb->len) in fgetwln() 69 fb->len *= 2; in fgetwln() 71 fb->len = FILEWBUF_INIT_LEN; in fgetwln() 73 wp = reallocarray(fb->wbuf, fb->len, sizeof(wchar_t)); in fgetwln() [all …]
|
/freebsd/lib/libc/db/test/hash.tests/ |
H A D | tseq.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 25 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 44 char wp[8192]; variable 63 for ( stat = (dbp->seq) (dbp, &res, &item, 1 ); 65 stat = (dbp->seq) (dbp, &res, &item, 0 ) ) { 67 bcopy ( res.data, wp, res.size ); 68 wp[res.size] = 0; 72 printf ( "%s %s\n", wp, cp ); 74 (dbp->close)(dbp);
|