sys/resource: include-able from C++ files
Change-Id: I914ab40495a25da184d0b7f8f8b1fa0d376c66a4 Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
2395ab7f6e
commit
82f1263db9
@ -115,10 +115,24 @@ struct rusage
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
#define EXTERN extern "C"
|
||||
extern "C"
|
||||
{
|
||||
#else
|
||||
#define EXTERN extern
|
||||
#endif
|
||||
|
||||
int getpriority(int which, id_t who);
|
||||
int getrlimit(int resource, FAR struct rlimit *rlp);
|
||||
int getrusage(int who, FAR struct rusage *r_usage);
|
||||
int setpriority(int which, id_t who, int value);
|
||||
int setrlimit(int resource, FAR const struct rlimit *rlp);
|
||||
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __INCLUDE_SYS_RESOURCE_H */
|
||||
|
Loading…
Reference in New Issue
Block a user