linux-stable/tools/include/nolibc
Zhangjin Wu 4201cfce15 tools/nolibc: clean up sbrk() routine
Fix up the error reported by scripts/checkpatch.pl:

    ERROR: do not use assignment in if condition
    #95: FILE: tools/include/nolibc/sys.h:95:
    +	if ((ret = sys_brk(0)) && (sys_brk(ret + inc) == ret + inc))

Apply the new generic __sysret() to merge the SET_ERRNO() and return
lines.

Signed-off-by: Zhangjin Wu <falcon@tinylab.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
2023-08-23 04:38:02 +02:00
..
.gitignore tools/nolibc: Add gitignore to avoid git complaints about sysroot 2023-03-20 08:45:21 -07:00
arch-aarch64.h toolc/nolibc: arch-*.h: clean up whitespaces after __asm__ 2023-08-23 04:38:02 +02:00
arch-arm.h toolc/nolibc: arch-*.h: clean up whitespaces after __asm__ 2023-08-23 04:38:02 +02:00
arch-i386.h toolc/nolibc: arch-*.h: clean up whitespaces after __asm__ 2023-08-23 04:38:02 +02:00
arch-loongarch.h tools/nolibc: arch-loongarch.h: shrink with _NOLIBC_SYSCALL_CLOBBERLIST 2023-08-23 04:38:02 +02:00
arch-mips.h tools/nolibc: add missing my_syscall6() for mips 2023-08-23 04:38:02 +02:00
arch-riscv.h toolc/nolibc: arch-*.h: clean up whitespaces after __asm__ 2023-08-23 04:38:02 +02:00
arch-s390.h toolc/nolibc: arch-*.h: clean up whitespaces after __asm__ 2023-08-23 04:38:02 +02:00
arch-x86_64.h toolc/nolibc: arch-*.h: clean up whitespaces after __asm__ 2023-08-23 04:38:02 +02:00
arch.h tools/nolibc: fix typo pint -> point 2023-06-09 11:46:08 -07:00
compiler.h tools/nolibc: fix segfaults on compilers without attribute no_stack_protector 2023-06-09 11:46:08 -07:00
ctype.h tools/nolibc: fix missing includes causing build issues at -O0 2023-01-09 09:36:05 -08:00
errno.h tools/nolibc: make errno a weak symbol instead of a static one 2023-01-10 13:33:55 -08:00
Makefile tools/nolibc: add autodetection for stackprotector support 2023-06-09 11:46:08 -07:00
nolibc.h tools/nolibc: add missing my_syscall6() for mips 2023-08-23 04:38:02 +02:00
signal.h tools/nolibc: fix missing includes causing build issues at -O0 2023-01-09 09:36:05 -08:00
stackprotector.h tools/nolibc: fix segfaults on compilers without attribute no_stack_protector 2023-06-09 11:46:08 -07:00
std.h tools/nolibc: add stdint.h 2023-03-20 08:45:21 -07:00
stdint.h selftests/nolibc: not include limits.h for nolibc 2023-06-09 11:46:09 -07:00
stdio.h tools/nolibc: implement fd-based FILE streams 2023-06-09 11:33:05 -07:00
stdlib.h tools/nolibc: use __inline__ syntax 2023-06-09 11:46:07 -07:00
string.h tools/nolibc: use standard __asm__ statements 2023-06-09 11:46:07 -07:00
sys.h tools/nolibc: clean up sbrk() routine 2023-08-23 04:38:02 +02:00
time.h tools/nolibc: fix missing includes causing build issues at -O0 2023-01-09 09:36:05 -08:00
types.h tools/nolibc: clean up mmap() routine 2023-08-23 04:38:02 +02:00
unistd.h tools/nolibc: unistd.h: reorder the syscall macros 2023-08-06 12:27:53 +02:00