Lines Matching +full:non +full:- +full:overlap +full:- +full:time
1 /* SPDX-License-Identifier: GPL-2.0 */
22 * memdup_array_user - duplicate array from user space
36 return ERR_PTR(-EOVERFLOW); in memdup_array_user()
42 * vmemdup_array_user - duplicate array from user space
56 return ERR_PTR(-EOVERFLOW); in vmemdup_array_user()
91 * strscpy - Copy a C-string into a sized buffer
98 * buffers overlap. The destination @dst buffer is always NUL terminated,
99 * unless it's zero-sized.
109 * trailing %NUL) or -E2BIG if @size is 0 or the copy from @src was
123 memset(__dst + __wrote + 1, 0, __count - __wrote - 1); \
128 * strscpy_pad() - Copy a C-string into a sized buffer
134 * behavior is undefined if the string buffers overlap. The destination
135 * buffer is always %NUL terminated, unless it's zero-sized.
145 * * -E2BIG if count is 0 or @src was truncated.
287 * mem_is_zero - Check if an area of memory is all 0's.
327 * sysfs_match_string - matches given string in an array
347 * strstarts - does @str start with @prefix?
359 * memzero_explicit - Fill a region of memory (e.g. sensitive
369 * memzero_explicit() doesn't need an arch-specific version as
379 * kbasename - return the last part of a pathname.
390 #include <linux/fortify-string.h>
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
419 _dest_len == (size_t)-1); \
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
442 _dest_len == (size_t)-1); \
447 * memtostr - Copy a possibly non-NUL-term string to a NUL-term string
448 * @dest: Pointer to destination NUL-terminates string
452 * a NUL-terminated string.
454 * Note that sizes of @dest and @src must be known at compile-time.
460 const size_t _copy_len = min(_dest_len - 1, _src_chars); \
464 _dest_len == 0 || _dest_len == (size_t)-1 || \
465 _src_len == 0 || _src_len == (size_t)-1); \
471 * memtostr_pad - Copy a possibly non-NUL-term string to a NUL-term string
473 * @dest: Pointer to destination NUL-terminates string
477 * a NUL-terminated string.
479 * Note that sizes of @dest and @src must be known at compile-time.
485 const size_t _copy_len = min(_dest_len - 1, _src_chars); \
489 _dest_len == 0 || _dest_len == (size_t)-1 || \
490 _src_len == 0 || _src_len == (size_t)-1); \
492 memset(&dest[_copy_len], 0, _dest_len - _copy_len); \
496 * memset_after - Set a value after a struct member to the end of a struct
509 sizeof(*(obj)) - offsetofend(typeof(*(obj)), member)); \
513 * memset_startat - Set a value starting at a member to the end of a struct
527 sizeof(*(obj)) - offsetof(typeof(*(obj)), member)); \
531 * str_has_prefix - Test if a string has a given prefix
536 * strncmp(str, prefix, sizeof(prefix) - 1)