Home
last modified time | relevance | path

Searched full:nul (Results 1 – 25 of 247) sorted by relevance

12345678910

/linux/drivers/s390/char/
H A Ddefkeymap.map5 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/include/linux/
H A Dstring.h99 * buffers overlap. The destination @dst buffer is always NUL terminated,
110 * trailing %NUL) or -E2BIG if @size is 0 or the copy from @src was
136 * buffer is always %NUL terminated, unless it's zero-sized.
139 * remaining bytes in the buffer will be filled with %NUL bytes.
403 * strtomem_pad - Copy NUL-terminated string to non-NUL-terminated buffer
406 * @src: Pointer to NUL-terminated string
410 * a NUL-terminated string, but with bounds checking on the source size, and
428 * strtomem - Copy NUL-terminated string to non-NUL-terminated buffer
431 * @src: Pointer to NUL-terminated string
434 * a NUL-terminated string, but with bounds checking on the source size, and
[all …]
H A Dfortify-string.h165 * 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 Dstrlen.S36 /* 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 Dstrcmp.S49 /* 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. */
H A Dstrncmp.S70 /* 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. */
/linux/net/netfilter/
H A Dnf_conntrack_h323_types.c18 {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 Dstrlen.S76 * 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/lib/
H A Ducs2_string.c46 * 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 Dfortify_kunit.c408 /* 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 Dstrnlen_user.c72 * 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.
H A Dhexdump.c104 * @linebuflen: total size of @linebuf, including space for terminating NUL
112 * The converted output is always NUL-terminated.
122 * The amount of bytes placed in the buffer without terminating NUL. If the
124 * (excluding the terminating NUL) which would have been written to the final
/linux/Documentation/process/
H A Ddeprecated.rst120 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 Dmedia-ioc-device-info.rst51 - 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/Documentation/translations/sp_SP/process/
H A Ddeprecated.rst127 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 Dbinfmt_script.c47 * 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 Drt5659.c2283 "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 Ddeprecated.rst129 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 Dstorage.c74 * 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 Dsysfs-firmware-dmi-entries63 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 Ddefkeymap.map20 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 Duaccess.h490 * 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.
/linux/tools/lib/
H A Dstring.c92 * NUL-terminated string that fits in the buffer (unless,
135 * Note that the first trailing whitespace is replaced with a %NUL-terminator
175 * Returns pointer to the nul byte at the end of @s.
/linux/Documentation/userspace-api/media/v4l/
H A Dvidioc-querycap.rst54 - Name of the driver, a unique NUL-terminated ASCII string. For
62 sure the strings are properly NUL-terminated.
65 - Name of the device, a NUL-terminated UTF-8 string. For example:
75 - Location of the device in the system, a NUL-terminated ASCII
/linux/mm/
H A Dutil.c49 * __kmemdup_nul - Create a NUL-terminated string from @s, which might be unterminated.
51 * @len: The size of the data, not including the NUL terminator
54 * Return: newly allocated copy of @s with NUL-termination or %NULL in
61 /* '+1' for the NUL terminator */ in __kmemdup_nul()
67 /* Ensure the buf is always NUL-terminated, regardless of @s. */ in __kmemdup_nul()
182 * kmemdup_nul - Create a NUL-terminated string from unterminated data
187 * Return: newly allocated copy of @s with NUL-termination or %NULL in
261 * @n: Maximum number of bytes to copy, including the trailing NUL.
290 * memdup_user_nul - duplicate memory region from user space and NUL-terminate
1121 * If the nul at the end of args has been overwritten, then in get_cmdline()

12345678910