mirror of
https://github.com/shadow-maint/shadow.git
synced 2024-11-24 10:35:01 +08:00
6b14a0d08c
* lib/tcbfuncs.h: Explicitly indicate functiontakinga void parameter.
20 lines
591 B
C
20 lines
591 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 (void);
|
|
extern shadowtcb_status shadowtcb_gain_priv (void);
|
|
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
|