OpenAFS
OpenAFS distributed network file system
|
00001 /* 00002 * Copyright (C) 1989,2004 by the Massachusetts Institute of Technology 00003 * 00004 * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and 00005 * distribute this software and its documentation for any purpose and 00006 * without fee is hereby granted, provided that the above copyright 00007 * notice appear in all copies and that both that copyright notice and 00008 * this permission notice appear in supporting documentation, and that 00009 * the name of M.I.T. not be used in advertising or publicity pertaining 00010 * to distribution of the software without specific, written prior 00011 * permission. M.I.T. makes no representations about the suitability of 00012 * this software for any purpose. It is provided "as is" without express 00013 * or implied warranty. 00014 */ 00015 00016 #ifndef __AKLOG_H__ 00017 #define __AKLOG_H__ 00018 00019 #if !defined(lint) && !defined(SABER) 00020 static char *rcsid_aklog_h = "$Id$"; 00021 #endif /* lint || SABER */ 00022 00023 #ifndef WIN32 00024 #include <afs/param.h> 00025 #endif 00026 00027 #if !defined(vax) 00028 #ifndef WIN32 00029 #include <unistd.h> 00030 #endif 00031 #include <stdlib.h> 00032 #include <limits.h> 00033 #endif 00034 00035 #ifndef WIN32 00036 #include <sys/types.h> 00037 #endif 00038 #include <krb.h> 00039 #include "linked_list.h" 00040 00041 #ifdef __STDC__ 00042 #define ARGS(x) x 00043 #else 00044 #define ARGS(x) () 00045 #endif /* __STDC__ */ 00046 00047 #include <afscompat.h> 00048 00049 typedef struct { 00050 int (*readlink)ARGS((char *, char *, int)); 00051 int (*isdir)ARGS((char *, unsigned char *)); 00052 char *(*getcwd)ARGS((char *, size_t)); 00053 int (*get_cred)ARGS((char *, char *, char *, CREDENTIALS *)); 00054 int (*get_user_realm)ARGS((char *)); 00055 void (*pstderr)ARGS((char *)); 00056 void (*pstdout)ARGS((char *)); 00057 void (*exitprog)ARGS((char)); 00058 } aklog_params; 00059 00060 void aklog ARGS((int, char *[], aklog_params *)); 00061 void aklog_init_params ARGS((aklog_params *)); 00062 00063 #endif /* __AKLOG_H__ */