1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-24 09:15:08 +00:00
serenity/LibC/sys/resource.h
Robin Burchell 0dc9af5f7e Add clang-format file
Also run it across the whole tree to get everything using the One True Style.
We don't yet run this in an automated fashion as it's a little slow, but
there is a snippet to do so in makeall.sh.
2019-05-28 17:31:20 +02:00

32 lines
540 B
C

#pragma once
#include <sys/cdefs.h>
#include <sys/time.h>
__BEGIN_DECLS
struct rusage {
struct timeval ru_utime;
struct timeval ru_stime;
long ru_maxrss;
long ru_ixrss;
long ru_idrss;
long ru_isrss;
long ru_minflt;
long ru_majflt;
long ru_nswap;
long ru_inblock;
long ru_oublock;
long ru_msgsnd;
long ru_msgrcv;
long ru_nsignals;
long ru_nvcsw;
long ru_nivcsw;
};
#define RUSAGE_SELF 1
#define RUSAGE_CHILDREN 2
int getrusage(int who, struct rusage* usage);
__END_DECLS