/linux/drivers/s390/char/ |
H A D | defkeymap.map | 5 keycode 0 = nul Oslash 6 keycode 1 = nul a 7 keycode 2 = nul b 8 keycode 3 = nul c 9 keycode 4 = nul d 10 keycode 5 = nul e 11 keycode 6 = nul f 12 keycode 7 = nul g 13 keycode 8 = nul h 14 keycode 9 = nul i [all …]
|
/linux/rust/kernel/ |
H A D | str.rs | 134 /// Supplied bytes contain an interior `NUL`. 137 /// Supplied bytes are not terminated by `NUL`. 148 /// A string that is guaranteed to have exactly one `NUL` byte, which is at the 156 /// Returns the length of this string excluding `NUL`. 162 /// Returns the length of this string with `NUL`. 174 /// Returns `true` if the string only includes `NUL`. 184 /// `ptr` must be a valid pointer to a `NUL`-terminated C string, and it must 190 // to a `NUL`-terminated C string. in from_char_ptr() 194 // SAFETY: As `len` is returned by `strlen`, `bytes` does not contain interior `NUL`. in from_char_ptr() 195 // As we have added 1 to `len`, the last byte is known to be `NUL`. in from_char_ptr() [all …]
|
/linux/mm/ |
H A D | maccess.c | 160 * strncpy_from_user_nofault: - Copy a NUL terminated string from unsafe user 165 * @count: Maximum number of bytes to copy, including the trailing NUL. 167 * Copies a NUL-terminated string from unsafe user address to kernel buffer. 169 * On success, returns the length of the string INCLUDING the trailing NUL. 172 * and the trailing NUL added). 175 * sets the last byte of @dst buffer to NUL and returns @count. 200 * strnlen_user_nofault: - Get the size of a user string INCLUDING final NUL. 202 * @count: Maximum count (including NUL) 204 * Get the size of a NUL-terminated string in user space without pagefault. 206 * Returns the size of the string INCLUDING the terminating NUL.
|
/linux/include/linux/ |
H A D | string.h | 98 * buffers overlap. The destination @dst buffer is always NUL terminated, 109 * trailing %NUL) or -E2BIG if @size is 0 or the copy from @src was 135 * buffer is always %NUL terminated, unless it's zero-sized. 138 * remaining bytes in the buffer will be filled with %NUL bytes. 401 * strtomem_pad - Copy NUL-terminated string to non-NUL-terminated buffer 404 * @src: Pointer to NUL-terminated string 408 * a NUL-terminated string, but with bounds checking on the source size, and 425 * strtomem - Copy NUL-terminated string to non-NUL-terminated buffer 428 * @src: Pointer to NUL-terminated string 431 * a NUL-terminated string, but with bounds checking on the source size, and [all …]
|
H A D | fortify-string.h | 165 * strncpy - Copy a string to memory with non-guaranteed NUL padding 168 * @q: pointer to NUL-terminated source string to copy 172 * and @p will NOT be NUL-terminated 174 * If strlen(@q) < @size, following the copy of @q, trailing NUL bytes 186 * | NUL-terminated | strscpy_pad() | strscpy() | 188 * | not NUL-terminated | strtomem_pad() | strtomem() | 210 * strnlen - Return bounded count of characters in a NUL-terminated string 212 * @p: pointer to NUL-terminated string to count. 215 * Returns number of characters in @p (NOT including the final NUL), or 216 * @maxlen, if no NUL has been found up to there. [all …]
|
/linux/arch/arm64/lib/ |
H A D | strlen.S | 36 /* NUL detection works on the principle that (X - 1) & (~X) & 0x80 39 (X - 1) & 0x80 is zero for non-NUL ASCII characters, but gives 58 of the string for a NUL character. In order to do an unaligned ldp 59 safely we have to do a page cross check first. If there is a NUL 66 using the fast NUL check. If we encounter non-ASCII characters, 67 fallback to a second loop using the full NUL check. 115 NUL check. If we encounter non-ASCII characters, use a second 116 loop with the accurate NUL check. */ 137 /* The fast check failed, so do the slower, accurate NUL check. */ 190 srcin to 0x7f, so we ignore any NUL bytes before the string.
|
H A D | strncmp.S | 70 /* NUL detection works on the principle that (X - 1) & (~X) & 0x80 83 bics has_nul, tmp1, tmp2 /* Non-zero if NUL terminator. */ 93 /* Limit was reached. Check if the NUL byte or the difference 120 /* Make sure that the NUL byte is marked in the syndrome. */ 127 /* However, if there is no NUL byte in the dword, we can generate 136 /* Re-compute the NUL-byte detection, using a byte-reversed value. */ 254 bic has_nul, has_nul, tmp3 /* Non-zero if NUL byte found in SRC1. */ 274 bic has_nul, has_nul, tmp3 /* Non-zero if NUL terminator. */
|
H A D | strcmp.S | 49 /* NUL detection works on the principle that (X - 1) & (~X) & 0x80 52 Since carry propagation makes 0x1 bytes before a NUL byte appear 53 NUL too in big-endian, byte-reverse the data before the NUL check. */ 78 bics has_nul, has_nul, tmp /* Non-zero if NUL terminator. */
|
/linux/lib/ |
H A D | strncpy_from_user.c | 44 * Note that we mask out the bytes following the NUL. This is in do_strncpy_from_user() 46 * the NUL. For those routines, we don't want to give them in do_strncpy_from_user() 47 * potentially random bytes after the NUL in `src`. in do_strncpy_from_user() 50 * as an opaque set of bytes. Without the post-NUL mask, any BPF in do_strncpy_from_user() 96 * strncpy_from_user: - Copy a NUL terminated string from userspace. 100 * @count: Maximum number of bytes to copy, including the trailing NUL. 102 * Copies a NUL-terminated string from userspace to kernel space. 105 * NUL).
|
H A D | ucs2_string.c | 46 * destination buffer @dst is always NUL-terminated, unless it's zero-sized. 49 * %NUL terminator) or -E2BIG if @count is 0 or @src was truncated due to the 58 * least one NUL-character. in ucs2_strscpy() 65 * NUL-terminator. in ucs2_strscpy() 78 * The loop above terminated without finding a NUL-terminator, in ucs2_strscpy() 79 * exceeding the 'count': Enforce proper NUL-termination and return in ucs2_strscpy() 132 * final NUL character.
|
H A D | fortify_kunit.c | 408 /* Trailing bytes are still %NUL. */ in fortify_test_strlen() 431 /* Trailing bytes are still %NUL. */ in fortify_test_strnlen() 471 /* Destination is %NUL-filled to start with. */ in fortify_test_strcpy() 483 /* Only last byte should be %NUL */ in fortify_test_strcpy() 494 /* Trailing %NUL -- thanks to FORTIFY. */ in fortify_test_strcpy() 511 /* Trailing %NUL -- thanks to FORTIFY. */ in fortify_test_strcpy() 524 /* Destination is %NUL-filled to start with. */ in fortify_test_strncpy() 536 /* Only last byte should be %NUL */ in fortify_test_strncpy() 546 /* No trailing %NUL -- thanks strncpy API. */ in fortify_test_strncpy() 583 /* Destination is %NUL-filled to start with. */ in fortify_test_strscpy() [all …]
|
H A D | strnlen_user.c | 72 * strnlen_user: - Get the size of a user string INCLUDING final NUL. 74 * @count: Maximum count (including NUL character) 79 * Get the size of a NUL-terminated string in user space. 81 * Returns the size of the string INCLUDING the terminating NUL.
|
/linux/net/netfilter/ |
H A D | nf_conntrack_h323_types.c | 18 {FNAME("strict") NUL, FIXD, 0, 0, SKIP, 0, NULL}, 19 {FNAME("loose") NUL, FIXD, 0, 0, SKIP, 0, NULL}, 225 {FNAME("create") NUL, FIXD, 0, 0, SKIP, 0, NULL}, 226 {FNAME("join") NUL, FIXD, 0, 0, SKIP, 0, NULL}, 227 {FNAME("invite") NUL, FIXD, 0, 0, SKIP, 0, NULL}, 228 {FNAME("capability-negotiation") NUL, FIXD, 0, 0, SKIP, 0, NULL}, 229 {FNAME("callIndependentSupplementaryService") NUL, FIXD, 0, 0, SKIP, 250 {FNAME("pointToPoint") NUL, FIXD, 0, 0, SKIP, 0, NULL}, 251 {FNAME("oneToN") NUL, FIXD, 0, 0, SKIP, 0, NULL}, 252 {FNAME("nToOne") NUL, FIXD, 0, 0, SKIP, 0, NULL}, [all …]
|
/linux/arch/riscv/lib/ |
H A D | strlen.S | 76 * preceding the string with the effect of adding NUL bytes at the 81 /* Convert non-NUL into 0xff and NUL into 0x00. */ 84 /* Convert non-NUL into 0x00 and NUL into 0xff. */ 88 * Search for the first set bit (corresponding to a NUL byte in the
|
/linux/Documentation/process/ |
H A D | deprecated.rst | 120 NUL or newline terminated. 131 the destination, but rather a count of non-NUL bytes copied (or negative 134 strncpy() on NUL-terminated strings 137 be NUL terminated. This can lead to various linear read overflows and 138 other misbehavior due to the missing termination. It also NUL-pads 141 for callers using only NUL-terminated strings. 143 When the destination is required to be NUL-terminated, the replacement is 146 destination, but rather a count of non-NUL bytes copied (or negative 147 errno when it truncates). Any cases still needing NUL-padding should 150 If a caller is using non-NUL-terminated strings, strtomem() should be [all …]
|
/linux/Documentation/userspace-api/media/mediactl/ |
H A D | media-ioc-device-info.rst | 51 - Name of the driver implementing the media API as a NUL-terminated 61 - Device model name as a NUL-terminated UTF-8 string. The device 67 - Serial number as a NUL-terminated ASCII string. 71 - Location of the device in the system as a NUL-terminated ASCII
|
/linux/arch/s390/lib/ |
H A D | string.c | 80 * strcpy - Copy a %NUL terminated string 104 * strncpy - Copy a length-limited, %NUL-terminated string 109 * The result is not %NUL-terminated if the source exceeds 124 * strcat - Append one %NUL-terminated string to another 151 * strlcat - Append a length-limited, %NUL-terminated string to another 177 * strncat - Append a length-limited, %NUL-terminated string to another 250 * strstr - Find the first substring in a %NUL terminated string
|
/linux/Documentation/translations/sp_SP/process/ |
H A D | deprecated.rst | 127 cadena de caracteres termine en NUL o en el carácter de línea nueva. 143 strncpy() en cadenas de caracteres terminadas en NUL 146 NUL. Esto puede causar varios errores de desbordamiento en lectura y otros 147 tipos de funcionamiento erróneo debido a que falta la terminación en NUL. 148 Esta función también termina la cadena de caracteres en NUL en el buffer de 151 función con cadenas de caracteres que sí están terminadas en NUL. 153 Cuando se necesita que la cadena de destino sea terminada en NUL, 161 Si una función usa cadenas de caracteres que no necesitan terminar en NUL, 167 caracter NUL, usar strtomem_pad(). 175 carácter NUL. El reemplazo seguro de esta función es strscpy(), pero se ha
|
/linux/fs/ |
H A D | binfmt_script.c | 47 * because bprm->buf is not yet guaranteed to be NUL-terminated in load_script() 48 * (though the buffer will have trailing NUL padding when the in load_script() 53 * we find a space/tab/NUL after the interpreter path (which in load_script() 65 * If there is no later space/tab/NUL we must assume the in load_script()
|
/linux/sound/soc/codecs/ |
H A D | rt5659.c | 2283 "AD1:AD2:DAC:NUL", "AD1:AD2:NUL:DAC", "AD1:DAC:AD2:NUL", 2284 "AD1:DAC:NUL:AD2", "AD1:NUL:DAC:AD2", "AD1:NUL:AD2:DAC", 2285 "AD2:AD1:DAC:NUL", "AD2:AD1:NUL:DAC", "AD2:DAC:AD1:NUL", 2286 "AD2:DAC:NUL:AD1", "AD2:NUL:DAC:AD1", "AD1:NUL:AD1:DAC", 2287 "DAC:AD1:AD2:NUL", "DAC:AD1:NUL:AD2", "DAC:AD2:AD1:NUL", 2288 "DAC:AD2:NUL:AD1", "DAC:NUL:DAC:AD2", "DAC:NUL:AD2:DAC", 2289 "NUL:AD1:AD2:DAC", "NUL:AD1:DAC:AD2", "NUL:AD2:AD1:DAC", 2290 "NUL:AD2:DAC:AD1", "NUL:DAC:DAC:AD2", "NUL:DAC:AD2:DAC" 3012 { "TDM Data Mux", "AD1:AD2:DAC:NUL", "TDM AD1:AD2:DAC" }, 3013 { "TDM Data Mux", "AD1:AD2:NUL:DAC", "TDM AD1:AD2:DAC" }, [all …]
|
/linux/Documentation/translations/it_IT/process/ |
H A D | deprecated.rst | 129 terminata con il carattere NUL o quello di nuova riga. 141 alla destinazione, ma un contatore dei byte non NUL copiati (oppure 144 strncpy() su stringe terminate con NUL 147 il buffer di destinazione verrà terminato con il carattere NUL. Questo 156 non NUL copiati (oppure un errno negativo se la stringa è stata 158 terminazione con NUL dovrebbero usare strscpy_pad(). 160 Se il chiamate no usa stringhe terminate con NUL, allore strncpy() 170 terminata con NUL. La versione sicura da usare è strscpy(), tuttavia
|
/linux/fs/romfs/ |
H A D | storage.c | 74 * trailing NUL whilst we're at it */ in romfs_mtd_strcmp() 91 /* check the trailing NUL was */ in romfs_mtd_strcmp() 195 /* the terminating NUL must be on the first byte of the next in romfs_blk_strcmp() 261 * - the string to be compared to, str, may not be NUL-terminated; instead the
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-firmware-dmi-entries | 63 the "unformatted" region composed of nul 65 by a two nul characters in series. 69 and the two terminating nul characters.
|
/linux/drivers/tty/vt/ |
H A D | defkeymap.map | 20 control keycode 3 = nul 21 shift control keycode 3 = nul 94 control keycode 41 = nul 121 control keycode 57 = nul
|
/linux/arch/mips/include/asm/ |
H A D | uaccess.h | 490 * strncpy_from_user: - Copy a NUL terminated string from userspace. 494 * @count: Maximum number of bytes to copy, including the trailing NUL. 496 * Copies a NUL-terminated string from userspace to kernel space. 499 * NUL). 538 * Get the size of a NUL-terminated string in user space. 540 * Returns the size of the string INCLUDING the terminating NUL.
|