Home
last modified time | relevance | path

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

1234567891011

/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/mm/
H A Dmaccess.c167 * strncpy_from_user_nofault: - Copy a NUL terminated string from unsafe user
172 * @count: Maximum number of bytes to copy, including the trailing NUL.
174 * Copies a NUL-terminated string from unsafe user address to kernel buffer.
176 * On success, returns the length of the string INCLUDING the trailing NUL.
179 * and the trailing NUL added). in strncpy_from_user_nofault()
182 * sets the last byte of @dst buffer to NUL and returns @count. in strncpy_from_user_nofault()
207 * strnlen_user_nofault: - Get the size of a user string INCLUDING final NUL.
209 * @count: Maximum count (including NUL)
211 * Get the size of a NUL-terminated string in user space without pagefault.
213 * Returns the size of the string INCLUDING the terminating NUL
[all...]
/linux/rust/kernel/
H A Dstr.rs133 /// Supplied bytes contain an interior `NUL`.
136 /// Supplied bytes are not terminated by `NUL`.
147 /// A string that is guaranteed to have exactly one `NUL` byte, which is at the
155 /// Returns the length of this string excluding `NUL`.
161 /// Returns the length of this string with `NUL`.
173 /// Returns `true` if the string only includes `NUL`.
183 /// `ptr` must be a valid pointer to a `NUL`-terminated C string, and it must
189 // to a `NUL`-terminated C string. in from_char_ptr()
193 // SAFETY: As `len` is returned by `strlen`, `bytes` does not contain interior `NUL`. in from_char_ptr()
194 // As we have added 1 to `len`, the last byte is known to be `NUL` in from_char_ptr()
[all...]
/linux/include/linux/
H A Dstring.h98 * 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.
400 * strtomem_pad - Copy NUL-terminated string to non-NUL-terminated buffer
403 * @src: Pointer to NUL-terminated string
407 * a NUL-terminated string, but with bounds checking on the source size, and
424 * strtomem - Copy NUL-terminated string to non-NUL-terminated buffer
427 * @src: Pointer to NUL-terminated string
430 * 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/lib/
H A Dstrncpy_from_user.c44 * 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 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.
/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/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.

1234567891011