implement reallocarray on macOS
All checks were successful
Test and Deploy / test (push) Successful in 12s
Test and Deploy / docs (push) Successful in 18s

This commit is contained in:
2024-05-06 11:03:22 -07:00
parent 89a3585c7f
commit 7fae216ccf
4 changed files with 47 additions and 4 deletions

View File

@ -3,6 +3,8 @@
#if defined(__APPLE__) || defined(__MACH__)
#include <time.h>
typedef struct {
double total_user_time;
double total_kernel_time;
@ -18,6 +20,7 @@ typedef struct {
ProcessData *new_ProcessData();
int update_process(pid_t pid, ProcessData *proc);
void *reallocarray(void *optr, size_t nmemb, size_t size);
#endif /* defined(__APPLE__) || defined(__MACH__) */
#endif /* LIBFLINT_MACOS_H */