mirror of
https://git.openafs.org/openafs.git
synced 2025-02-01 14:07:39 +00:00
STABLE14-ptuser_h-20050102
add ptuser.h (cherry picked from commit 48ba9a0cd5869264790e3d0d539dd7798813009c)
This commit is contained in:
parent
5e90243279
commit
b6cd0c1acc
@ -14,7 +14,7 @@ INCLS=${TOP_INCDIR}/ubik.h \
|
||||
${TOP_INCDIR}/rx/xdr.h \
|
||||
${TOP_INCDIR}/afs/keys.h \
|
||||
${TOP_INCDIR}/afs/cellconfig.h \
|
||||
ptserver.h ptclient.h ptint.h pterror.h map.h
|
||||
ptserver.h ptclient.h ptuser.h ptint.h pterror.h map.h
|
||||
|
||||
LINCLS=${TOP_INCDIR}/ubik.h \
|
||||
${TOP_INCDIR}/lock.h \
|
||||
@ -23,7 +23,7 @@ LINCLS=${TOP_INCDIR}/ubik.h \
|
||||
${TOP_INCDIR}/rx/rxkad.h \
|
||||
${TOP_INCDIR}/afs/auth.h \
|
||||
${TOP_INCDIR}/afs/cellconfig.h \
|
||||
ptclient.h ptint.h pterror.h
|
||||
ptclient.h ptuser.h ptint.h pterror.h
|
||||
|
||||
LIBS=${TOP_LIBDIR}/libubik.a \
|
||||
${TOP_LIBDIR}/libauth.a \
|
||||
@ -49,6 +49,7 @@ depinstall: \
|
||||
${TOP_INCDIR}/afs/print.h \
|
||||
${TOP_INCDIR}/afs/prserver.h \
|
||||
${TOP_INCDIR}/afs/ptclient.h \
|
||||
${TOP_INCDIR}/afs/ptuser.h \
|
||||
${TOP_INCDIR}/afs/pterror.h \
|
||||
${TOP_INCDIR}/afs/ptint.h \
|
||||
${TOP_INCDIR}/afs/ptserver.h
|
||||
@ -170,6 +171,7 @@ install: \
|
||||
${DESTDIR}${includedir}/afs/print.h \
|
||||
${DESTDIR}${includedir}/afs/prserver.h \
|
||||
${DESTDIR}${includedir}/afs/ptclient.h \
|
||||
${DESTDIR}${includedir}/afs/ptuser.h \
|
||||
${DESTDIR}${includedir}/afs/pterror.h \
|
||||
${DESTDIR}${includedir}/afs/ptint.h \
|
||||
${DESTDIR}${includedir}/afs/ptserver.h
|
||||
@ -213,6 +215,9 @@ ${DEST}/include/afs/pterror.h: pterror.h
|
||||
${DEST}/include/afs/ptclient.h: ptclient.h
|
||||
${INSTALL} $? $@
|
||||
|
||||
${DEST}/include/afs/ptuser.h: ptuser.h
|
||||
${INSTALL} $? $@
|
||||
|
||||
#
|
||||
# Misc. targets
|
||||
#
|
||||
@ -270,9 +275,15 @@ ${TOP_INCDIR}/afs/prserver.h: ptserver.h
|
||||
${DESTDIR}${includedir}/afs/ptclient.h: ptclient.h
|
||||
${INSTALL} $? $@
|
||||
|
||||
${DESTDIR}${includedir}/afs/ptuser.h: ptuser.h
|
||||
${INSTALL} $? $@
|
||||
|
||||
${TOP_INCDIR}/afs/ptclient.h: ptclient.h
|
||||
${INSTALL} $? $@
|
||||
|
||||
${TOP_INCDIR}/afs/ptuser.h: ptuser.h
|
||||
${INSTALL} $? $@
|
||||
|
||||
${DESTDIR}${includedir}/afs/pterror.h: pterror.h
|
||||
${INSTALL} $? $@
|
||||
|
||||
@ -303,6 +314,7 @@ dest: \
|
||||
${DEST}/include/afs/print.h \
|
||||
${DEST}/include/afs/prserver.h \
|
||||
${DEST}/include/afs/ptclient.h \
|
||||
${DEST}/include/afs/ptuser.h \
|
||||
${DEST}/include/afs/pterror.h \
|
||||
${DEST}/include/afs/ptint.h \
|
||||
${DEST}/include/afs/ptserver.h
|
||||
|
@ -21,7 +21,8 @@ INCFILES =\
|
||||
$(INCFILEDIR)\afs\ptint.h \
|
||||
$(INCFILEDIR)\afs\pterror.h \
|
||||
ptopcodes.h \
|
||||
$(INCFILEDIR)\afs\ptclient.h
|
||||
$(INCFILEDIR)\afs\ptclient.h \
|
||||
$(INCFILEDIR)\afs\ptuser.h
|
||||
|
||||
############################################################################
|
||||
# build afsprot.lib
|
||||
|
@ -29,6 +29,7 @@ RCSID
|
||||
#include "afs/cellconfig.h"
|
||||
#include "afs/afsutil.h"
|
||||
#include "afs/ptclient.h"
|
||||
#include "afs/ptuser.h"
|
||||
#include "afs/pterror.h"
|
||||
#else /* defined(UKERNEL) */
|
||||
#include <afs/stds.h>
|
||||
@ -54,6 +55,7 @@ RCSID
|
||||
#include <afs/cellconfig.h>
|
||||
#include <afs/afsutil.h>
|
||||
#include "ptclient.h"
|
||||
#include "ptuser.h"
|
||||
#include "pterror.h"
|
||||
#endif /* defined(UKERNEL) */
|
||||
|
||||
|
44
src/ptserver/ptuser.h
Normal file
44
src/ptserver/ptuser.h
Normal file
@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2000, International Business Machines Corporation and others.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* This software has been released under the terms of the IBM Public
|
||||
* License. For details, see the LICENSE file in the top-level source
|
||||
* directory or online at http://www.openafs.org/dl/license10.html
|
||||
*/
|
||||
|
||||
#ifndef PTUSER_H
|
||||
#define PTUSER_H
|
||||
|
||||
#include "afs/ptint.h"
|
||||
|
||||
afs_int32 pr_Initialize(afs_int32 secLevel, char *confDir, char *cell);
|
||||
int pr_End(void);
|
||||
int pr_CreateUser(char name[PR_MAXNAMELEN], afs_int32 *id);
|
||||
int pr_CreateGroup(char name[PR_MAXNAMELEN], char owner[PR_MAXNAMELEN], afs_int32 *id);
|
||||
int pr_Delete(char *name);
|
||||
int pr_DeleteByID(afs_int32 id);
|
||||
int pr_AddToGroup(char *user, char *group);
|
||||
int pr_RemoveUserFromGroup(char *user, char *group);
|
||||
int pr_NameToId(namelist *names, idlist *ids);
|
||||
int pr_SNameToId(char name[PR_MAXNAMELEN], afs_int32 *id);
|
||||
int pr_IdToName(idlist *ids, namelist *names);
|
||||
int pr_SIdToName(afs_int32 id, char name[PR_MAXNAMELEN]);
|
||||
int pr_GetCPS(afs_int32 id, prlist *CPS);
|
||||
int pr_GetCPS2(afs_int32 id, afs_int32 host, prlist *CPS);
|
||||
int pr_GetHostCPS(afs_int32 host, prlist *CPS);
|
||||
int pr_ListMembers(char *group, namelist *lnames);
|
||||
int pr_ListOwned(afs_int32 oid, namelist *lnames, afs_int32 *moreP);
|
||||
int pr_IDListMembers(afs_int32 gid, namelist *lnames);
|
||||
int pr_ListEntry(afs_int32 id, struct prcheckentry *aentry);
|
||||
afs_int32 pr_ListEntries(int flag, afs_int32 startindex, afs_int32 *nentries, struct prlistentries **entries, afs_int32 *nextstartindex);
|
||||
int pr_CheckEntryByName(char *name, afs_int32 *id, char *owner, char *creator);
|
||||
int pr_CheckEntryById(char *name, afs_int32 id, char *owner, char *creator);
|
||||
int pr_ChangeEntry(char *oldname, char *newname, afs_int32 *newid, char *newowner);
|
||||
int pr_IsAMemberOf(char *uname, char *gname, afs_int32 *flag);
|
||||
int pr_ListMaxUserId(afs_int32 *mid);
|
||||
int pr_SetMaxUserId(afs_int32 mid);
|
||||
int pr_ListMaxGroupId(afs_int32 *mid);
|
||||
int pr_SetMaxGroupId(afs_int32 mid);
|
||||
afs_int32 pr_SetFieldsEntry(afs_int32 id, afs_int32 mask, afs_int32 flags, afs_int32 ngroups, afs_int32 nusers);
|
||||
#endif /* PTUSER_H */
|
Loading…
x
Reference in New Issue
Block a user