Remove obsolete retsigtype
[openafs.git] / src / config / afsconfig-windows.h
index 6168147..9c2baa0 100644 (file)
 /* Define if you need to in order for stat and other things to work.  */
 #undef _POSIX_SOURCE
 
-/* Define as the return type of signal handlers (int or void).  */
-#undef RETSIGTYPE
+/* The size of `long', as computed by sizeof. */
+#define SIZEOF_LONG 4
 
 /* Define to `unsigned' if <sys/types.h> doesn't define.  */
-//#undef size_t unsigned int 
+//#undef size_t unsigned int
 
 /* Define if you have the ANSI C header files.  */
 #undef STDC_HEADERS
 /* Define if you have the connect function.  */
 #undef HAVE_CONNECT
 
-/* Define if you have the getdtablesize function.  */
-#undef HAVE_GETDTABLESIZE
+/* Define if you have the error_message function.  */
+#define HAVE_ERROR_MESSAGE
 
 /* Define if you have the gethostbyname function.  */
 #define HAVE_GETHOSTBYNAME
 
-/* Define if you have the random function.  */
-#define HAVE_RANDOM
-
-/* Define if you have the re_comp function.  */
-#undef HAVE_RE_COMP
-
-/* Define if you have the re_exec function.  */
-#undef HAVE_RE_EXEC
-
 /* Define if you have the res_search function.  */
 #undef HAVE_RES_SEARCH
 
-/* Define if you have the snprintf function.  */
-#undef HAVE_SNPRINTF
-
 /* Define if you have the socket function.  */
 #define HAVE_SOCKET
 
-/* Define if you have the srandom function.  */
-#undef HAVE_SRANDOM
-
-/* Define if you have the utimes function.  */
-#define HAVE_UTIMES
-
 /* Define if you have the <direct.h> header file.  */
 #undef HAVE_DIRECT_H
 
 /* Define if you have the <dirent.h> header file.  */
-#undef HAVE_DIRENT_H
+#define HAVE_DIRENT_H 1
 
 /* Define if you have the <fcntl.h> header file.  */
 #define HAVE_FCNTL_H
 
-/* Define if you have the <io.h> header file.  */
-#define HAVE_IO_H
-
-/* Define if you have the <malloc.h> header file.  */
-#define HAVE_MALLOC_H
-
 /* Define if you have the <mntent.h> header file.  */
 #undef HAVE_MNTENT_H
 
 /* Define if you have the <security/pam_modules.h> header file.  */
 #undef HAVE_SECURITY_PAM_MODULES_H
 
-/* Define if you have the <siad.h> header file.  */
-#undef HAVE_SIAD_H
-
 /* Define if you have the <signal.h> header file.  */
 #define HAVE_SIGNAL_H
 
 /* Define if you have the <sys/param.h> header file.  */
 #undef HAVE_SYS_PARAM_H
 
+/* Define if you have the <sys/stat.h> header file. */
+#define HAVE_SYS_STAT_H 1
+
 /* Define if you have the <sys/time.h> header file.  */
 #undef HAVE_SYS_TIME_H
 
 /* Define if you have the <unistd.h> header file.  */
 #undef HAVE_UNISTD_H
 
-/* Define if you have the <usersec.h> header file.  */
-#undef HAVE_USERSEC_H
-
 /* Define if you have the <windows.h> header file.  */
 #define HAVE_WINDOWS_H
 
 /* Define if you have the <winsock2.h> header file.  */
 #define HAVE_WINSOCK2_H
 
+#define HAVE_WINSOCK
+
 /* Name of package */
 #undef PACKAGE
 
 /* define if struct ufsvfs has vfs_dqrwlock */
 #undef HAVE_VFS_DQRWLOCK
 
+/* define if you have pread() and pwrite() */
+#undef HAVE_PIO
+
 #undef PACKAGE
 #undef VERSION
-#define RCSID(msg) \
-static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg }
 
 #undef HAVE_CONNECT
 //#undef HAVE_GETHOSTBYNAME
@@ -204,10 +179,7 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg }
 # endif
 #endif
 
-/*#undef AFS_AFSDB_ENV*/
-#define AFS_AFSDB_ENV 1
-#undef AFS_NAMEI_ENV
-#undef BOS_RESTRICTED_MODE
+#define AFS_NAMEI_ENV 1
 
 #undef FAST_RESTART
 #undef BITMAP_LATER
@@ -222,3 +194,83 @@ static /**/const char *const rcsid[] = { (char *)rcsid, "\100(#)" msg }
 #if defined(ENABLE_REDHAT_BUILDSYS) && defined(KERNEL) && defined(REDHAT_FIX)
 #include "redhat-fix.h"
 #endif
+
+/* Define if rename() does not unlink an existing file */
+#define RENAME_DOES_NOT_UNLINK 1
+
+/* Windows does not provide socklen_t prior to WDK 6.0 */
+#define HAVE_SOCKLEN_T 1
+typedef int socklen_t;
+
+#if (_MSC_VER < 1400)
+typedef int errno_t;
+#endif
+
+/*
+ * UNIX mode symbol definitions
+ */
+#ifndef S_IRWXU
+#define S_IRWXU 00700
+#define S_IRUSR 00400
+#define S_IWUSR 00200
+#define S_IXUSR 00100
+#endif
+
+#ifndef S_IRWXG
+#define S_IRWXG 00070
+#define S_IRGRP 00040
+#define S_IWGRP 00020
+#define S_IXGRP 00010
+#endif
+
+#ifndef S_IRWXO
+#define S_IRWXO 00007
+#define S_IROTH 00004
+#define S_IWOTH 00002
+#define S_IXOTH 00001
+#endif
+
+#ifndef S_ISUID
+#define S_ISUID  0004000
+#define S_ISGID  0002000
+#define S_ISVTX  0001000
+#endif
+
+#define HAVE_CONIO_H 1
+
+#define HAVE_FSYNC 1
+
+/* param.h overrides lstat, so stop roken getting involved */
+#define HAVE_LSTAT 1
+
+#define HAVE_STRCASECMP 1
+
+#define HAVE_STRUCT_SOCKADDR_STORAGE 1
+
+#define HAVE_DECL_H_ERRNO 1
+
+#define HAVE_STRUCT_ADDRINFO 1
+#define HAVE_GETADDRINFO 1
+#define HAVE_GETNAMEINFO 1
+#define HAVE_FREENAMEINFO 1
+#define HAVE_FREEADDRINFO 1
+#define HAVE_GAI_STRERROR 1
+#define HAVE_STRERROR 1
+#define HAVE_STRLWR 1
+#define HAVE_STRDUP 1
+#define HAVE_GETHOSTNAME 1
+#define HAVE_STRFTIME 1
+#define HAVE_GETCWD 1
+#define HAVE_STRUPR 1
+#define HAVE_UINTPTR_T 1
+#define HAVE_TIMEGM 1
+
+/* Build against Heimdal */
+#define HAVE_KRB5_CREDS_KEYBLOCK_ENCTYPE 1
+#define HAVE_KRB5_CREDS_SESSION 1
+
+/* Build afsroken.dll as a dynamic library */
+#define ROKEN_LIB_DYNAMIC 1
+
+#define MAX(a,b) (((a) > (b)) ? (a) : (b))
+#define MIN(a,b) (((a) < (b)) ? (a) : (b))