2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
10 #ifndef _BOSPROTOTYPES_H_
11 #define _BOSPROTOTYPES_H_
16 int bnode_CoreName(struct bnode
*abnode
, char *acoreName
, char *abuffer
);
17 int bnode_GetString(struct bnode
*abnode
, char *abuffer
, afs_int32 alen
);
18 int bnode_GetParm(struct bnode
*abnode
, afs_int32 aindex
, char *abuffer
,
20 int bnode_GetStat(struct bnode
*abnode
, afs_int32
* astatus
);
21 int bnode_RestartP(struct bnode
*abnode
);
22 int bnode_HasCore(struct bnode
*abnode
);
23 int bnode_WaitAll(void);
24 int bnode_SetGoal(struct bnode
*abnode
, int agoal
);
25 int bnode_SetFileGoal(struct bnode
*abnode
, int agoal
);
26 int bnode_ApplyInstance(int (*aproc
)(struct bnode
*, void *), void *arock
);
27 int bnode_Register(char *, struct bnode_ops
*, int);
28 int bnode_DeleteName(char *);
29 int bnode_Hold(struct bnode
*);
30 int bnode_Release(struct bnode
*);
31 int bnode_Delete(struct bnode
*);
32 int bnode_PendingTimeout(struct bnode
*abnode
);
33 void bnode_Int(int asignal
);
35 int bnode_FreeTokens(struct bnode_token
*alist
);
36 int bnode_ParseLine(char *aline
, struct bnode_token
**alist
);
37 int bnode_NewProc(struct bnode
*abnode
, char *aexecString
, char *coreName
,
38 struct bnode_proc
**aproc
);
39 int bnode_StopProc(struct bnode_proc
*aproc
, int asignal
);
42 void bozo_Log(const char *format
, ... );
43 int bozo_ReBozo(void);
44 int WriteBozoFile(char *aname
);
45 int bozo_CreatePidFile(char *ainst
, char *aname
, pid_t apid
);
46 int bozo_DeletePidFile(char *ainst
, char *aname
);
49 int GetRequiredDirPerm(const char *path
);
50 void *bozo_ShutdownAndExit(void *arock
/* really int asignal */);
51 int initBosEntryStats(void);
52 int DirAccessOK(void);
54 /* inline functions */
55 static_inline
struct bozo_key
*
56 ktc_to_bozoptr(struct ktc_encryptionKey
*key
) {
57 return (struct bozo_key
*)key
;