Cleanup: enforce const-correctness in notification thread
[lttng-tools.git] / src / common / runas.h
index 9840eb056942ad7eb56fb83ee8a3aef4c29d49e4..46d4502e9c781a387f4723123f634167fe2a11ff 100644 (file)
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+#include <sys/types.h>
 #include <unistd.h>
 #include <pthread.h>
 
+LTTNG_HIDDEN
 int run_as_mkdir_recursive(const char *path, mode_t mode, uid_t uid, gid_t gid);
+LTTNG_HIDDEN
 int run_as_mkdir(const char *path, mode_t mode, uid_t uid, gid_t gid);
+LTTNG_HIDDEN
 int run_as_open(const char *path, int flags, mode_t mode, uid_t uid, gid_t gid);
+LTTNG_HIDDEN
+int run_as_unlink(const char *path, uid_t uid, gid_t gid);
+LTTNG_HIDDEN
+int run_as_rmdir_recursive(const char *path, uid_t uid, gid_t gid);
 
-/*
- * We need to lock pthread exit, which deadlocks __nptl_setxid in the
- * clone.
- */
-extern pthread_mutex_t lttng_libc_state_lock;
+LTTNG_HIDDEN
+int run_as_create_worker(char *procname);
+LTTNG_HIDDEN
+void run_as_destroy_worker(void);
 
 #endif /* _RUNAS_H */
This page took 0.025989 seconds and 5 git commands to generate.