#include <afs/param.h>
#include <stdio.h>
#include <string.h>
+#include "uss_procs.h"
+#include "uss_vol.h"
+#include "uss_kauth.h"
extern int line;
extern int uss_perr;
extern int yylex(void);
-extern int yyerror(char *);
+static int yyerror(char *);
%}
;
%%
-yyerror(s)
-char *s;
+static int
+yyerror(char *s)
{
fprintf(stderr,"%s. ",s);
return 0;
#include "y.tab.h"
#include "uss_common.h"
+#include "uss_procs.h"
int line=1;
#ifdef DEBUG
#define dprint(x) {fprintf(stderr, x); fflush(stderr);}
*/
void
-Replace(in, out)
- char *in, *out;
-
+Replace(char *in, char *out)
{ /*Replace*/
char *in_text, *in_var, *out_cp, VarNo;
} /*Replace*/
-yywrap()
+int yywrap(void)
{
return(1);
}
int
uss_fs_UnlogToken(char *celln)
{
- unsigned int count = 0, index, index2;
+ int count = 0, index, index2;
afs_int32 code = 0, cnt = 0;
struct ktc_principal serviceName;
struct tokenInfo *tokenInfoP, *tp;
* 1 if the user name is not legal.
*/
+extern afs_int32 uss_kauth_SetFields(char *username, char *expirestring,
+ char *reuse, char *failures,
+ char *lockout);
+
#endif /* _USS_KAUTH_H_ */
* Owner's uid.
*/
+extern afs_int32 uss_procs_PickADir(char *path, char *cp);
+ /*
+ * Summary:
+ * Tries to replace $AUTO by a subdir. Subdirs are given by means
+ * of "G" in the configuration file. Each of the directories is
+ * examined, and the one with the inimum number of entries is
+ * picked.
+ *
+ * Args:
+ * a_path : ???
+ * a_cp : ???
+ *
+ * Returns:
+ * 0 if everything went well,
+ * -1 if there was a problem.
+ */
+
#endif /* _USS_PROCS_H_ */