afsconfig.h can define various preprocessor symbols that can affect
how system headers behave. For example, the presence of the
_POSIX_PTHREAD_SEMANTICS symbol changes the number of arguments to
getpwnam_r on at least Solaris 8. So, we must include afsconfig.h
before including anything else, to ensure consistency.
Change-Id: I84bc73b3fada5dbc68cd355c24f2f746f2e982b3
Reviewed-on: http://gerrit.openafs.org/6387
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
17 files changed:
*
*/
+#include <afsconfig.h>
+#include "afs/param.h"
+
#include <unistd.h>
#ifdef AFS_SUN510_ENV
#include <sys/cred.h>
#endif
-#include <afsconfig.h>
-#include "afs/param.h"
-
#include "afs/sysincludes.h"
#include "afsincludes.h"
#ifndef AFS_INCLUDES_H
#define AFS_INCLUDES_H 1
+#include <afsconfig.h>
#ifdef UKERNEL
#include <UKERNEL/afsincludes.h>
#else
-#include <afsconfig.h>
/* AFS based headers */
#include "afs/stds.h"
*
*-------------------------------------------------------------------------*/
-#include <stdio.h>
-#include <time.h>
#include <afsconfig.h>
#include <afs/param.h>
+
+#include <stdio.h>
+#include <time.h>
#include <string.h>
*
*-------------------------------------------------------------------------*/
-#include <stdio.h>
#include <afsconfig.h>
#include <afs/param.h>
+#include <stdio.h>
+
#include <afs/xstat_fs.h>
#include <afs/xstat_cm.h>
#ifndef __AKLOG_H__
#define __AKLOG_H__
+#include <afsconfig.h>
+
#include <krb5.h>
#include "linked_list.h"
-#include <afsconfig.h>
#ifdef __STDC__
#define ARGS(x) x
* directory or online at http://www.openafs.org/dl/license10.html
*/
+#include "afsconfig.h"
+
#define MAXLINELEN 1024
#define MAXTOKLEN 100
#include <sys/param.h>
#include <stdio.h>
#include <stdlib.h>
-#include "afsconfig.h"
#include <string.h>
#define TOK_DONTUSE 1 /* Don't copy if match and this flag is set. */
* specifies the terms and conditions for redistribution.
*/
-#include <sys/param.h>
#include <afsconfig.h>
+#include <sys/param.h>
#include <stdio.h>
/* Test ktc related calls as well as some file access stuff. */
+#include <afsconfig.h>
+#include <afs/param.h>
+
#include <sys/types.h>
#include <errno.h>
#include <stdio.h>
#include <sys/file.h>
#include <arpa/inet.h>
#include <afs/prs_fs.h>
-#include <afsconfig.h>
-#include <afs/param.h>
-
#include <afs/stds.h>
#include <afs/com_err.h>
* on IRIX 6.2 and 6.4.
*/
+#include <afsconfig.h>
+#include <afs/param.h>
+
+
#include <unistd.h>
#include <stdio.h>
#include <stdarg.h>
#include <assert.h>
#include <time.h>
-#include <afsconfig.h>
-#include <afs/param.h>
-
-
#include "lwp.h"
#include "seltest.h"
* on IRIX 6.2 and 6.4.
*/
+#include <afsconfig.h>
+#include <afs/param.h>
+
+
#include <unistd.h>
#include <stdarg.h>
#include <stdio.h>
#include <assert.h>
#include <sys/stat.h>
-#include <afsconfig.h>
-#include <afs/param.h>
-
-
#include "lwp.h"
#include "seltest.h"
*/
/* selsubs.c - common code for client and server. */
+#include <afsconfig.h>
+#include <afs/param.h>
+
+
#include <unistd.h>
#include <stdarg.h>
#include <stdio.h>
#include <assert.h>
#include <sys/stat.h>
-#include <afsconfig.h>
-#include <afs/param.h>
-
-
#include "lwp.h"
#include "seltest.h"
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <afsconfig.h>
+#include <afs/param.h>
+
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include "portable_defns.h"
#include "gc.h"
-#include <afsconfig.h>
-#include <afs/param.h>
#include <afs/afsutil.h>
/*#define MINIMAL_GC*/
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#include "afs/param.h"
#include <afsconfig.h>
+#include "afs/param.h"
#include <sys/types.h>
* directory or online at http://www.openafs.org/dl/license10.html
*/
-#include "afs/param.h"
#include <afsconfig.h>
+#include "afs/param.h"
#include <sys/types.h>
* SUCH DAMAGE.
*/
+#include <afsconfig.h>
+
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
-#include <afsconfig.h>
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
* SUCH DAMAGE.
*/
+#include <afsconfig.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
-#include <afsconfig.h>
#ifndef HAVE_VASNPRINTF
int vasnprintf(char **ret, size_t max_sz, const char *format, va_list args);
/* Security related utilities for the Windows platform */
-#include <afs/param.h>
#include <afsconfig.h>
+#include <afs/param.h>
#include <afs/stds.h>
#include <stddef.h>