shadow/lib/tcbfuncs.h
nekral-guest 8acf9cd11d * lib/tcbfuncs.h: Added type shadowtcb_status.
* lib/tcbfuncs.h, lib/tcbfuncs.c: Return a shadowtcb_status
	instead of an int.
	* lib/tcbfuncs.c: Do not return in OUT_OF_MEMORY.
2010-03-17 23:59:55 +00:00

20 lines
576 B
C

#ifndef _TCBFUNCS_H
#define _TCBFUNCS_H
#include <sys/types.h>
typedef enum {
SHADOWTCB_FAILURE = 0,
SHADOWTCB_SUCCESS = 1
} shadowtcb_status;
extern shadowtcb_status shadowtcb_drop_priv();
extern shadowtcb_status shadowtcb_gain_priv();
extern shadowtcb_status shadowtcb_set_user(const char *name);
extern shadowtcb_status shadowtcb_remove(const char *name);
extern shadowtcb_status shadowtcb_move(/*@null@*/const char *user_newname,
uid_t user_newid);
extern shadowtcb_status shadowtcb_create(const char *name, uid_t uid);
#endif