| /freebsd/usr.bin/fmt/ |
| H A D | fmt.c | 13 * 1. Tabs are expanded, assuming 8-space tab stops. 14 * If the `-t <n>' option is given, we assume <n>-space 25 * If the `-p' option is given then the first line of a 28 * If the `-m' option is given then a line that looks 30 * preceded by a non-blank non-message-header line, is 32 * any subsequent lines with non-empty leading whitespace. 33 * Unless the `-n' option is given, lines beginning with 38 * space, or two spaces if it ends with a sentence-end 39 * character. (See the `-d' option for how to change that.) 40 * If the `-s' option has been given, then a word's trailing [all …]
|
| /freebsd/contrib/kyua/utils/text/ |
| H A D | table.cpp | 62 // Override the actual width of the columns based on user-specified widths. in override_column_widths() 68 "User-provided column widths must be larger than the " in override_column_widths() 84 /// \return The index of the refill column with a width_refill width if any, or 94 return i - 1; in find_refill_column() 98 /// Pads the widths of the table to fit within a maximum width. 100 /// On output, a column of the widths vector is truncated to a shorter length 101 /// than its current value, if the total width of the table would exceed the 102 /// maximum table width. 107 /// \param user_max_width The target width of the table; must not be zero. 109 /// width should be larger than the padding times the number of columns; if [all …]
|
| H A D | operations.cpp | 99 quoted << text.substr(start_pos, last_pos - start_pos) << '\\'; in quote() 110 /// Fills a paragraph to the specified length. 118 /// \param target_width The width to refill the paragraph to. 127 while (start < input.length()) { in refill() 128 std::string::size_type width; in refill() local 129 if (start + target_width >= input.length()) in refill() 130 width = input.length() - start; in refill() 133 width = target_width; in refill() 136 " ", start + target_width - 1); in refill() 138 width = input.find_first_of(" ", start + target_width); in refill() [all …]
|
| /freebsd/contrib/pnglite/ |
| H A D | pnglite.c | 2 * pnglite.c - pnglite library 24 #define abs(x) ((x) < 0? -(x):(x)) 44 result = lseek(png->fd, offset, SEEK_CUR); in file_read() 46 result = read(png->fd, out, size * numel); in file_read() 76 switch (png->color_type) { in png_get_bpp() 91 bpp *= png->depth / 8; in png_get_bpp() 99 unsigned length = 0; in png_read_ihdr() local 102 uint8_t ihdr[13+4]; /* length should be 13, make room for type (IHDR) */ in png_read_ihdr() 104 if (file_read_ul(png, &length) != PNG_NO_ERROR) in png_read_ihdr() 107 if (length != 13) in png_read_ihdr() [all …]
|
| /freebsd/sys/dev/bhnd/nvram/ |
| H A D | bhnd_nvram_value_prf.c | 1 /*- 2 * Copyright (c) 2015-2016 Landon Fuller <landonf@FreeBSD.org> 64 * Maximum size, in bytes, of a string-encoded NVRAM integer value, not 67 * We assume the largest possible encoding is the base-2 representation 68 * of a 64-bit integer. 91 * @retval ENOMEM If the @p outp is non-NULL, and the provided @p olen 133 * %[repeat][flags][width][.precision][length modifier][specifier] 138 * length modifiers and specifier, and then format the result as a string. 142 * BHND_NVRAM_TYPE_UINT8. String formatting will then be applied to the 8-bit 146 * - [digits] Repeatedly apply the format specifier to the input [all …]
|
| H A D | bhnd_nvram_value_subr.c | 1 /*- 2 * Copyright (c) 2015-2016 Landon Fuller <landonf@FreeBSD.org> 50 * @param ilen The value length, in bytes. 58 * @retval EFAULT if @p len is not aligned to the @p type width. 64 size_t align, width; in bhnd_nvram_value_check_aligned() local 67 * always have a length of zero */ in bhnd_nvram_value_check_aligned() 81 /* If type is not fixed width, nothing else to check */ in bhnd_nvram_value_check_aligned() 82 width = bhnd_nvram_type_width(itype); in bhnd_nvram_value_check_aligned() 83 if (width == 0) in bhnd_nvram_value_check_aligned() 86 /* Length must be aligned to the element width */ in bhnd_nvram_value_check_aligned() [all …]
|
| /freebsd/usr.sbin/memcontrol/ |
| H A D | memcontrol.8 | 38 .Fl l Ar length 47 .Fl l Ar length 59 These ranges are typically power-of-2 aligned and sized, however the specific 65 .Bl -tag -width ".Cm clear" 68 .Bl -tag -width indent 74 .Bl -tag -width indent 77 .It Fl l Ar length 78 Length of memory range in bytes, power of 2. 83 .Cm force , uncacheable , write-combine , write-through , write-back , 85 .Cm write-protect . [all …]
|
| /freebsd/contrib/dialog/ |
| H A D | fselect.c | 4 * fselect.c -- implements the file-selector box 6 * Copyright 2000-2020,2021 Thomas E. Dickey 32 # define NAMLEN(dirent) strlen((dirent)->d_name) 35 # define NAMLEN(dirent) (dirent)->d_namlen 59 #define BTN_HIGH (1 + 2 * MARGIN) /* Ok/Cancel, also input-box */ 60 #define MIN_HIGH (HDR_HIGH - MARGIN + (BTN_HIGH * 2) + 4 * MARGIN) 68 sDIRS = -3 69 ,sFILES = -2 70 ,sTEXT = -1 76 int length; /* length of the data[] array */ member [all …]
|
| /freebsd/sys/dev/acpica/Osd/ |
| H A D | OsdMemory.c | 1 /*- 56 AcpiOsMapMemory(ACPI_PHYSICAL_ADDRESS PhysicalAddress, ACPI_SIZE Length) in AcpiOsMapMemory() argument 58 return (pmap_mapbios((vm_offset_t)PhysicalAddress, Length)); in AcpiOsMapMemory() 62 AcpiOsUnmapMemory(void *LogicalAddress, ACPI_SIZE Length) in AcpiOsUnmapMemory() argument 64 pmap_unmapbios(LogicalAddress, Length); in AcpiOsUnmapMemory() 76 AcpiOsReadable (void *Pointer, ACPI_SIZE Length) in AcpiOsReadable() argument 82 AcpiOsWritable (void *Pointer, ACPI_SIZE Length) in AcpiOsWritable() argument 88 AcpiOsReadMemory(ACPI_PHYSICAL_ADDRESS Address, UINT64 *Value, UINT32 Width) in AcpiOsReadMemory() argument 92 LogicalAddress = pmap_mapdev(Address, Width / 8); in AcpiOsReadMemory() 96 switch (Width) { in AcpiOsReadMemory() [all …]
|
| /freebsd/contrib/ncurses/ncurses/base/ |
| H A D | safe_sprintf.c | 2 * Copyright 2018-2021,2023 Thomas E. Dickey * 3 * Copyright 1998-2012,2013 Free Software Foundation, Inc. * 31 * Author: Thomas E. Dickey 1997-on * 42 Flags, Width, Prec, Type, Format enumerator 50 * Scan a variable-argument list for printf to determine the number of 56 size_t length = BUFSIZ; in _nc_printf_length() local 67 return -1; in _nc_printf_length() 68 if ((buffer = typeMalloc(char, length)) == 0) { in _nc_printf_length() 70 return -1; in _nc_printf_length() 77 char *pval = dummy; /* avoid const-cast */ in _nc_printf_length() [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_printf.cpp | 1 //===-- sanitizer_printf.cpp ----------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 // Internal printf function, used inside run-time libraries. 14 //===----------------------------------------------------------------------===// 38 // Appends number in a given base to buffer. If its length is less than 51 --minimal_num_length; in AppendNumber() 53 result += AppendChar(buff, buff_end, '-'); in AppendNumber() 64 sizeof(num_buffer[0]) * (minimal_num_length - pos)); in AppendNumber() 68 pos--; in AppendNumber() [all …]
|
| /freebsd/lib/libgssapi/ |
| H A D | gss_init_sec_context.3 | 1 .\" -*- nroff -*- 59 gss_buffer_desc object whose length field contains the value zero. 65 .Dv length field 80 Portable applications should be constructed to use the token length 85 .Bd -literal 89 input_token->length = 0; 109 if (output_token->length != 0) { 133 .Bl -bullet 141 .Dv GSS_C_PROT_READY_FLAG, indicating that per-message services may be 186 GSS-API implementations that support per-message protection are [all …]
|
| H A D | gss_accept_sec_context.3 | 1 .\" -*- nroff -*- 63 by setting the length field of the 78 Portable applications should be constructed to use the token length 84 .Bd -literal 103 if (output_token->length != 0) { 128 .Dv GSS_C_PROT_READY_FLAG , indicating that per-message services may be 161 Although this requires that GSS-API implementations set the 169 should not rely on this behavior as the flag was not defined in Version 1 of the GSS-API. 170 Instead, applications should be prepared to use per-message services after a 194 permitted to delete the "half-built" security context (in which case it [all …]
|
| /freebsd/usr.sbin/lpr/lpr/ |
| H A D | printcap.5 | 71 .Bl -column Namexxx Typexx "/var/spool/lpdxxxxx" 97 .It "ms str" Ta Dv NULL Ta No "if lp is a tty, a comma-separated," 98 .Xr stty 1 Ns -like 107 .It "pl num 66 page length (in lines)" 108 .It "pw num 132 page width (in characters)" 109 .It "px num 0 page width in pixels (horizontal)" 110 .It "py num 0 page length in pixels (vertical)" 133 Each two-letter capability has a human-readable alternate name. 134 .Bl -column "Short form" "Long form" 156 .It "pl page.length" [all …]
|
| /freebsd/share/doc/usd/21.troff/ |
| H A D | m0a | 1 .\" Copyright (C) Caldera International Inc. 2001-2002. All rights reserved. 54 .h1 \s-1#\s+1 * 59 \s-1#\s+1Notes are explained at the end of this Summary and Index 66 \fB&ps\fI\|\(+-N\fR 10\|point previous E Point size; also \fB\es\fI\(+-N\fR.\(dg 68 \fB&fz\fI|F|\(+-N\fR off - E font \fIF\fR to point size \fI\(+-N\fR. 70 \fB&fz|S|\fIF|\(+-N\fR off - E Special Font characters to point size \fI\(+-N\fR. 72 \fB&ss\fI|N\fR 12\(sl36\|em ignored E Space-character size 75 \fB&cs\fI|F\|N\|M\fR off - P Constant character 76 space (width) 79 \fB&bd\fI|F|N\fR off - P Embolden font \fIF\fR by \fIN\fR\(mi1 units.\(dg [all …]
|
| /freebsd/contrib/tcpdump/ |
| H A D | print-dvmrp.c | 26 #include "netdissect-stdinc.h" 33 * See: RFC 1075 and draft-ietf-idmr-dvmrp-v3 51 { DVMRP_ASK_NEIGHBORS, "Ask-neighbors(old)" }, 53 { DVMRP_ASK_NEIGHBORS2, "Ask-neighbors2" }, 57 { DVMRP_GRAFT_ACK, "Graft-ACK" }, 82 ndo->ndo_protocol = "dvmrp"; in dvmrp_print() 84 ND_PRINT(" [length %u < 8]", len); in dvmrp_print() 92 len -= 8; in dvmrp_print() 98 if (ndo->ndo_vflag) { in dvmrp_print() 104 if (ndo->ndo_vflag > 1) { in dvmrp_print() [all …]
|
| /freebsd/contrib/libyaml/src/ |
| H A D | reader.c | 19 yaml_parser_update_buffer(yaml_parser_t *parser, size_t length); 29 parser->error = YAML_READER_ERROR; in yaml_parser_set_reader_error() 30 parser->problem = problem; in yaml_parser_set_reader_error() 31 parser->problem_offset = offset; in yaml_parser_set_reader_error() 32 parser->problem_value = value; in yaml_parser_set_reader_error() 47 * found, the UTF-8 encoding is assumed. Return 1 on success, 0 on failure. 55 while (!parser->eof in yaml_parser_determine_encoding() 56 && parser->raw_buffer.last - parser->raw_buffer.pointer < 3) { in yaml_parser_determine_encoding() 64 if (parser->raw_buffer.last - parser->raw_buffer.pointer >= 2 in yaml_parser_determine_encoding() 65 && !memcmp(parser->raw_buffer.pointer, BOM_UTF16LE, 2)) { in yaml_parser_determine_encoding() [all …]
|
| /freebsd/sys/dev/drm2/ |
| H A D | drm_fb_helper.c | 2 * Copyright (c) 2006-2009 Red Hat Inc. 3 * Copyright (c) 2006-2008 Intel Corporation 62 fb_helper = sc->fb_helper; in vt_restore_fbdev_mode() 63 sx_xlock(&fb_helper->dev->mode_config.mutex); in vt_restore_fbdev_mode() 65 sx_xunlock(&fb_helper->dev->mode_config.mutex); in vt_restore_fbdev_mode() 76 taskqueue_enqueue(taskqueue_thread, &sc->fb_mode_task); in vt_kms_postswitch() 78 drm_fb_helper_restore_fbdev_mode(sc->fb_helper); in vt_kms_postswitch() 92 TASK_INIT(&sc->fb_mode_task, 0, vt_restore_fbdev_mode, sc); in framebuffer_alloc() 94 info->fb_priv = sc; in framebuffer_alloc() 95 info->enter = &vt_kms_postswitch; in framebuffer_alloc() [all …]
|
| /freebsd/contrib/kyua/utils/cmdline/ |
| H A D | ui.cpp | 72 /// screen width. If the caller wants to print more than one line, it shall 94 /// screen width. If the caller wants to print more than one line, it shall 113 /// Queries the width of the screen. 117 /// a terminal the width is deduced from the terminal itself. Ultimately, if 125 /// knowledge of the terminal width when the user resizes the window. 127 /// \return The width of the screen if it was possible to determine it, or none 133 static optional< std::size_t > width = none; in screen_width() local 138 if (columns.get().length() > 0) { in screen_width() 140 width = utils::make_optional( in screen_width() 148 if (!width) { in screen_width() [all …]
|
| /freebsd/contrib/mandoc/ |
| H A D | mandoc.db.5 | 44 .Bl -dash -compact -offset 2n -width 1n 46 32-bit signed integer numbers in big endian (network) byte ordering 48 NUL-terminated strings 50 lists of NUL-terminated strings, terminated by a second NUL character 53 Numbers are aligned to four-byte boundaries; where they follow 62 .Bl -dash -compact -offset 2n -width 1n 72 The pages table (variable length). 74 The macros table (variable length). 84 .Bl -dash -compact -offset 2n -width 1n 89 .Bl -dash -compact -offset 2n -width 1n [all …]
|
| /freebsd/usr.sbin/bsdconfig/share/ |
| H A D | dialog.subr | 3 # Copyright (c) 2006-2015 Devin Teske 43 # execution of dialog from within a sub-shell (so-long as its standard output 46 : ${DIALOG_TERMINAL_PASSTHRU_FD:=${TERMINAL_STDOUT_PASSTHRU:-3}} 52 # NOTE: This is changed to "Xdialog" by the optional `-X' argument 68 # Declare that we are fully-compliant with Xdialog(1) by unset'ing all 78 DIALOG_OK=${SUCCESS:-0} 79 DIALOG_CANCEL=${FAILURE:-1} 83 export DIALOG_ERROR=254 # sh(1) can't handle the default of `-1' 106 # Minimum width(s) for various dialog(1) implementations (sensible global 119 # height (but does for width) -- a height of 3 will display three lines and a [all …]
|
| /freebsd/share/man/man4/ |
| H A D | netlink.4 | 37 Netlink is a user-kernel message-based communication protocol primarily used 47 .Bd -literal -offset indent -compact 71 .Bd -literal 84 The protocol is message-based. 87 header, followed by the family-specific header and the list of 88 type-length-value pairs (TLVs). 90 All headers and TLVS are padded to 4-byte boundaries. 96 .Bd -literal 98 uint32_t nlmsg_len; /* Length of message including header */ 108 field stores the whole message length, in bytes, including the header. [all …]
|
| /freebsd/contrib/netbsd-tests/lib/libc/locale/ |
| H A D | t_mbrtowc.c | 3 /*- 32 /*- 71 #include <atf-c.h> 80 size_t length; member 89 "en_US.UTF-8", 97 "ja_JP.ISO2022-JP2", 134 ATF_REQUIRE(setlocale(LC_CTYPE, t->locale) != NULL); in h_ctype2() 136 if (setlocale(LC_CTYPE, t->locale) == NULL) { in h_ctype2() 137 fprintf(stderr, "Locale %s not found.\n", t->locale); in h_ctype2() 142 (void)strvis(buf, t->data, VIS_WHITE | VIS_OCTAL); in h_ctype2() [all …]
|
| /freebsd/share/man/man7/ |
| H A D | d.7 | 2 .\" SPDX-License-Identifier: BSD-2-Clause 55 .Sh USER-DEFINED VARIABLE TYPES 56 .Bl -column "thread-local" "Syntax" 60 .It thread-local Ta Sy self-> Ns Va variable_name 61 .It clause-local Ta Sy this-> Ns Va variable_name 65 .Bl -dash -compact 71 Aggregate variables are multi-CPU safe in contrast to global variables. 73 .Sh BUILT-IN VARIABLES 75 .Bl -tag -width "arg0, ..., arg9" 79 The untyped probe arguments represented as 64-bit unsigned integers. [all …]
|
| /freebsd/usr.bin/vtfontcvt/ |
| H A D | vtfontcvt.c | 1 /*- 49 static unsigned int width = 8, wbytes, height = 16; variable 180 "[-nv] [-f format] [-h height] [-w width]\n" in usage() 181 "\t-o output_file normal_font [bold_font]\n"); in usage() 204 mp->m_char = c; in add_mapping() 205 mp->m_glyph = gl; in add_mapping() 206 mp->m_length = 0; in add_mapping() 210 TAILQ_LAST(ml, mapping_list)->m_char < c) { in add_mapping() 216 if (mp_temp->m_char >= c) { in add_mapping() 233 unsigned normal_map_idx = map_idx - VFNT_MAP_BOLD; in dedup_mapping() [all …]
|