Home
last modified time | relevance | path

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

12345678910>>...17

/openbmc/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 …]
/openbmc/linux/rust/kernel/
H A Dstr.rs44 /// Supplied bytes contain an interior `NUL`.
47 /// Supplied bytes are not terminated by `NUL`.
58 /// A string that is guaranteed to have exactly one `NUL` byte, which is at the
66 /// Returns the length of this string excluding `NUL`.
72 /// Returns the length of this string with `NUL`.
84 /// Returns `true` if the string only includes `NUL`.
94 /// `ptr` must be a valid pointer to a `NUL`-terminated C string, and it must
100 // to a `NUL`-terminated C string. in from_char_ptr()
104 // SAFETY: As `len` is returned by `strlen`, `bytes` does not contain interior `NUL`. in from_char_ptr()
105 // As we have added 1 to `len`, the last byte is known to be `NUL`. in from_char_ptr()
[all …]
/openbmc/linux/mm/
H A Dmaccess.c160 * 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.
/openbmc/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. */
/openbmc/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 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.
/openbmc/u-boot/lib/libavb/
H A Davb_util.h184 * bytes. The result is also guaranteed to be NUL terminated. Fail if
186 * terminating NUL byte.
205 /* Duplicates a NUL-terminated string. Returns NULL on OOM. */
208 /* Duplicates a NULL-terminated array of NUL-terminated strings by
210 * NUL-terminated. Returns NULL on OOM.
216 * where both strings are NUL-terminated strings. The terminating NUL
227 * NUL-terminated. The string given by |str| need not be
228 * NUL-terminated but its size must be given in |str_size|.
255 * |str| must be NUL-terminated and valid UTF-8.
H A Davb_property_descriptor.h22 * followed by a NUL byte, then |value_num_bytes| bytes of value data,
23 * followed by a NUL byte and then enough padding to make the combined
43 * NUL-terminated.
50 * guaranteed to be followed by a NUL byte.
H A Davb_sysdeps.h62 /* Prints out a message. The string passed must be a NUL-terminated
68 * NUL-terminated UTF-8 string and NULL should be the last argument.
89 /* Returns the lenght of |str|, excluding the terminating NUL-byte. */
/openbmc/linux/include/linux/
H A Dfortify-string.h125 * strncpy - Copy a string to memory with non-guaranteed NUL padding
128 * @q: pointer to NUL-terminated source string to copy
132 * and @p will NOT be NUL-terminated
134 * If strlen(@q) < @size, following the copy of @q, trailing NUL bytes
146 * | NUL-terminated | strscpy_pad() | strscpy() |
148 * | not NUL-terminated | strtomem_pad() | strtomem() |
170 * strnlen - Return bounded count of characters in a NUL-terminated string
172 * @p: pointer to NUL-terminated string to count.
175 * Returns number of characters in @p (NOT including the final NUL), or
176 * @maxlen, if no NUL has been found up to there.
[all …]
H A Dstring.h305 * strtomem_pad - Copy NUL-terminated string to non-NUL-terminated buffer
308 * @src: Pointer to NUL-terminated string
312 * a NUL-terminated string, but with bounds checking on the source size, and
329 * strtomem - Copy NUL-terminated string to non-NUL-terminated buffer
332 * @src: Pointer to NUL-terminated string
335 * a NUL-terminated string, but with bounds checking on the source size, and
/openbmc/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
/openbmc/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 …]
/openbmc/qemu/include/qemu/
H A Dbase64.h29 * @in_len: length of @input or -1 if NUL terminated
35 * contain embedded NUL characters, or may not be
36 * NUL terminated, then @in_len must be set to the
39 * Note that embedded NULs, or lack of a NUL terminator
H A Dcutils.h28 * Copy @str into @buf, including the trailing NUL, but do not
30 * always NUL terminated (even if the source string was too long).
38 * bytes and then add a NUL
48 * Copy @str into @buf (but *not* its trailing NUL!), and then pad the
63 * as much of @str as will fit followed by a NUL terminator.
65 * @buf must already contain a NUL-terminated string, or the
111 * If no NUL terminator is found within @max_len bytes, then return
126 * the string referenced by @input, and replace it with a NUL.
133 * so now points to a NUL-terminated string corresponding to the
/openbmc/qemu/util/
H A Dbase64.c36 /* Lack of NUL terminator is an error */ in qbase64_decode()
38 error_setg(errp, "Base64 data is not NUL terminated"); in qbase64_decode()
44 error_setg(errp, "Base64 data contains embedded NUL characters"); in qbase64_decode()
48 /* Now we know its a valid nul terminated string in qbase64_decode()
/openbmc/qemu/tests/unit/
H A Dtest-base64.c65 /* We put a NUL character in the middle of the base64 in test_base64_embedded_nul()
81 /* Using '-2' to make us drop the trailing NUL, thus in test_base64_not_nul_terminated()
103 g_test_add_func("/util/base64/embedded-nul", test_base64_embedded_nul); in main()
104 g_test_add_func("/util/base64/not-nul-terminated", in main()
H A Dtest-crypto-block.c398 /* Replace NUL termination with spaces */ in luks_bad_null_term_cipher_name()
402 return "LUKS header cipher name is not NUL terminated"; in luks_bad_null_term_cipher_name()
407 /* Replace NUL termination with spaces */ in luks_bad_null_term_cipher_mode()
411 return "LUKS header cipher mode is not NUL terminated"; in luks_bad_null_term_cipher_mode()
416 /* Replace NUL termination with spaces */ in luks_bad_null_term_hash_spec()
420 return "LUKS header hash spec is not NUL terminated"; in luks_bad_null_term_hash_spec()
587 g_test_add_data_func("/crypto/block/luks/bad/cipher-name-nul-term", in main()
590 g_test_add_data_func("/crypto/block/luks/bad/cipher-mode-nul-term", in main()
593 g_test_add_data_func("/crypto/block/luks/bad/hash-spec-nul-term", in main()
/openbmc/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 …]
/openbmc/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
/openbmc/linux/arch/s390/lib/
H A Dstring.c80 * 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
/openbmc/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
/openbmc/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()

12345678910>>...17