Since we adopted libroken, we get a lot of header includes automatically
from roken.h. Use these, instead of including lots of things multiple
times.
Also add pwd.h to the list of headers that we check for in configure,
and that roken will include if they are available
Change-Id: I61ab95eeca11127a33bb668dddfc24ec6ce7f8f1
Reviewed-on: http://gerrit.openafs.org/4303
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
ncurses.h \
netdb.h \
netinet/in.h \
+ pwd.h \
regex.h \
security/pam_modules.h \
signal.h \
*/
#include <afsconfig.h>
+#include <afs/param.h>
+#include <afs/stds.h>
-#include <stdio.h>
-#include <string.h>
-#include <ctype.h>
-#include <sys/types.h>
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-#ifdef HAVE_MEMORY_H
-#include <memory.h>
-#endif
-#include <errno.h>
-
-#include <sys/stat.h>
-#include <fcntl.h>
+#include <roken.h>
-#include <sys/param.h>
-#include <sys/errno.h>
-#include <netdb.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <pwd.h>
+#include <ctype.h>
#include <afs/stds.h>
#include <afs/ktc.h>
#include <afs/com_err.h>
#endif
-#include <afs/param.h>
#ifdef AFS_SUN5_ENV
#include <sys/ioccom.h>
#endif
#define AKLOG_BADPATH 6
#define AKLOG_MISC 7
-#ifndef NULL
-#define NULL 0
-#endif
-
#ifndef TRUE
#define TRUE 1
#endif
*/
#include <afsconfig.h>
-#include <sys/types.h>
-#include <netinet/in.h>
-#include <netdb.h>
-#include <stdio.h>
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-#include <stdlib.h>
-#ifdef HAVE_MEMORY_H
-#include <memory.h>
-#endif /* HAVE_MEMORY_H */
-#include <string.h>
-
+#include <afs/param.h>
#include <afs/stds.h>
+
+#include <roken.h>
+
#include <krb5.h>
#ifndef HAVE_KERBEROSV_HEIM_ERR_H
#include <afsconfig.h>
#include <afs/param.h>
-
#include <afs/stds.h>
-#include <sys/types.h>
-#include <rx/xdr.h>
-#ifdef AFS_AIX32_ENV
-#include <signal.h>
-#endif
-#include <string.h>
-#include <errno.h>
+#include <roken.h>
+
+#include <rx/xdr.h>
#include <lock.h>
#include <ubik.h>
-
-#include <stdio.h>
-#include <pwd.h>
#include <afs/com_err.h>
#include <afs/auth.h>
#include <afs/afsutil.h>
#include <afs/cellconfig.h>
-#ifdef AFS_RXK5
-#include "rxk5_utilafs.h"
-#endif
#include <afs/ptclient.h>
#include <afs/cmd.h>
+
#include <krb5.h>
#ifdef HAVE_KRB5_CREDS_KEYBLOCK
*/
#include <afsconfig.h>
-
-#if 0
-#include <kerberosIV/mit-copyright.h>
-#endif
#include <afs/stds.h>
+
+#include <roken.h>
+
#include "aklog.h"
#include <krb5.h>
#include <afs/cellconfig.h>
-#include <string.h>
#include <ctype.h>
#define S_AD_SZ sizeof(struct sockaddr_in)
*/
#include <afsconfig.h>
+#include <afs/param.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include "linked_list.h"
+#include <roken.h>
-#ifndef NULL
-#define NULL 0
-#endif
+#include "linked_list.h"
#ifndef TRUE
#define TRUE 1
#include <afsconfig.h>
#include <afs/param.h>
-#include <stdio.h>
+
+#include <roken.h>
+
#include "aklog.h"
#include <krb5.h>
#include "skipwrap.h"