diff --git a/payloads/libpayload/include/libpayload.h b/payloads/libpayload/include/libpayload.h index a33d8bb382..7701a052c2 100644 --- a/payloads/libpayload/include/libpayload.h +++ b/payloads/libpayload/include/libpayload.h @@ -441,9 +441,6 @@ int exec(long addr, int argc, char **argv); */ int bcd2dec(int b); int dec2bcd(int d); -int abs(int j); -long int labs(long int j); -long long int llabs(long long int j); u8 bin2hex(u8 b); u8 hex2bin(u8 h); void hexdump(const void *memory, size_t length); diff --git a/payloads/libpayload/include/stdlib.h b/payloads/libpayload/include/stdlib.h index a6bc8e8b02..eb014f4533 100644 --- a/payloads/libpayload/include/stdlib.h +++ b/payloads/libpayload/include/stdlib.h @@ -201,6 +201,15 @@ int rand(void); void srand(unsigned int seed); /** @} */ +/** + * @defgroup misc Misc functions + * @{ + */ +int abs(int j); +long int labs(long int j); +long long int llabs(long long int j); +/** @} */ + /* Enter remote GDB mode. Will initialize connection if not already up. */ void gdb_enter(void); /* Disconnect existing GDB connection if one exists. */