mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 17:48:54 +08:00
sys/resource: include-able from C++ files
Change-Id: I914ab40495a25da184d0b7f8f8b1fa0d376c66a4 Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
@@ -115,10 +115,24 @@ struct rusage
|
|||||||
* Public Function Prototypes
|
* 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 getpriority(int which, id_t who);
|
||||||
int getrlimit(int resource, FAR struct rlimit *rlp);
|
int getrlimit(int resource, FAR struct rlimit *rlp);
|
||||||
int getrusage(int who, FAR struct rusage *r_usage);
|
int getrusage(int who, FAR struct rusage *r_usage);
|
||||||
int setpriority(int which, id_t who, int value);
|
int setpriority(int which, id_t who, int value);
|
||||||
int setrlimit(int resource, FAR const struct rlimit *rlp);
|
int setrlimit(int resource, FAR const struct rlimit *rlp);
|
||||||
|
|
||||||
|
#undef EXTERN
|
||||||
|
#if defined(__cplusplus)
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* __INCLUDE_SYS_RESOURCE_H */
|
#endif /* __INCLUDE_SYS_RESOURCE_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user