]> git.sven.stormbind.net Git - sven/jattach.git/blobdiff - src/posix/psutil.h
New upstream version 2.2
[sven/jattach.git] / src / posix / psutil.h
index fa1c4169ad8925ec334da8dc08214eab18e9420c..5dc3040dc7722c8921e5c83aaba75a8bad0edaab 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Andrei Pangin
+ * Copyright jattach authors
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
 #include <sys/types.h>
 
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define MAX_PATH 1024
 extern char tmp_path[];
 
@@ -43,4 +47,8 @@ int get_process_info(int pid, uid_t* uid, gid_t* gid, int* nspid);
 //        -1, if the attempt failed.
 int enter_ns(int pid, const char* type);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif // _PSUTIL_H