Lines Matching +full:non +full:- +full:overlap +full:- +full:time
1 /* SPDX-License-Identifier: GPL-2.0 */
23 * memdup_array_user - duplicate array from user space
37 return ERR_PTR(-EOVERFLOW); in memdup_array_user()
43 * vmemdup_array_user - duplicate array from user space
57 return ERR_PTR(-EOVERFLOW); in vmemdup_array_user()
92 * strscpy - Copy a C-string into a sized buffer
99 * buffers overlap. The destination @dst buffer is always NUL terminated,
100 * unless it's zero-sized.
110 * trailing %NUL) or -E2BIG if @size is 0 or the copy from @src was
124 memset(__dst + __wrote + 1, 0, __count - __wrote - 1); \
129 * strscpy_pad() - Copy a C-string into a sized buffer
135 * behavior is undefined if the string buffers overlap. The destination
136 * buffer is always %NUL terminated, unless it's zero-sized.
146 * * -E2BIG if count is 0 or @src was truncated.
288 * mem_is_zero - Check if an area of memory is all 0's.
330 * sysfs_match_string - matches given string in an array
349 * strstarts - does @str start with @prefix?
361 * memzero_explicit - Fill a region of memory (e.g. sensitive
371 * memzero_explicit() doesn't need an arch-specific version as
381 * kbasename - return the last part of a pathname.
392 #include <linux/fortify-string.h>
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
424 _dest_len == (size_t)-1); \
430 * strtomem - Copy NUL-terminated string to non-NUL-terminated buffer
433 * @src: Pointer to NUL-terminated string
436 * a NUL-terminated string, but with bounds checking on the source size, and
450 _dest_len == (size_t)-1); \
455 * memtostr - Copy a possibly non-NUL-term string to a NUL-term string
456 * @dest: Pointer to destination NUL-terminates string
460 * a NUL-terminated string.
462 * Note that sizes of @dest and @src must be known at compile-time.
471 const size_t _copy_len = min(_dest_len - 1, _src_chars); \
475 _dest_len == 0 || _dest_len == (size_t)-1 || \
476 _src_len == 0 || _src_len == (size_t)-1); \
482 * memtostr_pad - Copy a possibly non-NUL-term string to a NUL-term string
484 * @dest: Pointer to destination NUL-terminates string
488 * a NUL-terminated string.
490 * Note that sizes of @dest and @src must be known at compile-time.
499 const size_t _copy_len = min(_dest_len - 1, _src_chars); \
503 _dest_len == 0 || _dest_len == (size_t)-1 || \
504 _src_len == 0 || _src_len == (size_t)-1); \
506 memset(&dest[_copy_len], 0, _dest_len - _copy_len); \
510 * memset_after - Set a value after a struct member to the end of a struct
523 sizeof(*(obj)) - offsetofend(typeof(*(obj)), member)); \
527 * memset_startat - Set a value starting at a member to the end of a struct
541 sizeof(*(obj)) - offsetof(typeof(*(obj)), member)); \
545 * str_has_prefix - Test if a string has a given prefix
550 * strncmp(str, prefix, sizeof(prefix) - 1)