]> git.armaanb.net Git - opendoas.git/blobdiff - libopenbsd/openbsd.h
more precisely describe what happens to the environment without keepenv; OK tedu@
[opendoas.git] / libopenbsd / openbsd.h
index f0eec3df135b1ec03efe1621670bd2f72fe57fd2..793d9bf39363668845867b3cd35e827993e8eea4 100644 (file)
@@ -3,29 +3,9 @@
 
 #include <stdarg.h>
 #include <sys/types.h>
-#include <sys/cdefs.h>
-
-#include "readpassphrase.h"
 
 /* API definitions lifted from OpenBSD src/include */
 
-/* login_cap.h */
-#ifndef HAVE_LOGIN_CAP_H
-#define        LOGIN_SETGROUP          0x0001  /* Set group */
-#define        LOGIN_SETLOGIN          0x0002  /* Set login */
-#define        LOGIN_SETPATH           0x0004  /* Set path */
-#define        LOGIN_SETPRIORITY       0x0008  /* Set priority */
-#define        LOGIN_SETRESOURCES      0x0010  /* Set resource limits */
-#define        LOGIN_SETUMASK          0x0020  /* Set umask */
-#define        LOGIN_SETUSER           0x0040  /* Set user */
-#define        LOGIN_SETENV            0x0080  /* Set environment */
-#define        LOGIN_SETALL            0x00ff  /* Set all. */
-
-typedef struct login_cap login_cap_t;
-struct passwd;
-int setusercontext(login_cap_t *, struct passwd *, uid_t, unsigned int);
-#endif /* !HAVE_LOGIN_CAP_H */
-
 /* pwd.h */
 #define _PW_NAME_LEN 63
 
@@ -59,6 +39,9 @@ int setresuid(uid_t, uid_t, uid_t);
 #ifndef HAVE_PLEDGE
 int pledge(const char *promises, const char *paths[]);
 #endif /* !HAVE_PLEDGE */
+#ifndef HAVE_CLOSEFROM
+void closefrom(int);
+#endif /* !HAVE_CLOSEFROM */
 
 /* err.h */
 #ifndef HAVE_VERRC