From: Antoine Verheijen Date: Wed, 3 Mar 2010 18:57:29 +0000 (-0700) Subject: Begin support for OpenBSD 4.7 X-Git-Tag: openafs-stable-1_4_12~2 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=7f93ceddb47cd63e0fcd635c804f8938a78f12f3;p=packages%2Fo%2Fopenafs.git Begin support for OpenBSD 4.7 Add config param header and sysname number for OpenBSD 4.7 (currently in beta). Change-Id: I6537bd352becd9a8c3937e95f79911c8bc08bcfb Reviewed-on: http://gerrit.openafs.org/1533 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear (cherry picked from commit 7aca59c2f6c8097fbc0cafab18fe4cdfe28e89c2) Change-Id: I8cc317cf6cf64e72323da0efcb402a43802df9a8 Reviewed-on: http://gerrit.openafs.org/1510 --- diff --git a/src/config/afs_sysnames.h b/src/config/afs_sysnames.h index e6b1a0089..08d315411 100644 --- a/src/config/afs_sysnames.h +++ b/src/config/afs_sysnames.h @@ -255,6 +255,7 @@ #define SYS_NAME_ID_i386_obsd44 2613 #define SYS_NAME_ID_i386_obsd45 2614 #define SYS_NAME_ID_i386_obsd46 2615 +#define SYS_NAME_ID_i386_obsd47 2616 #define SYS_NAME_ID_amd64_linux2 2700 #define SYS_NAME_ID_amd64_linux22 2701 diff --git a/src/config/param.i386_obsd47.h b/src/config/param.i386_obsd47.h new file mode 100644 index 000000000..e224a5ddf --- /dev/null +++ b/src/config/param.i386_obsd47.h @@ -0,0 +1,77 @@ +/* + * Jim Rees, University of Michigan CITI + */ + +#ifndef AFS_PARAM_H +#define AFS_PARAM_H + +#ifndef IGNORE_STDS_H +#include +#endif + +#define SYS_NAME "i386_obsd47" +#define SYS_NAME_ID SYS_NAME_ID_i386_obsd47 + +#define AFS_XBSD_ENV 1 /* {Free,Open,Net}BSD */ +#define AFS_X86_XBSD_ENV 1 + +#define AFS_NAMEI_ENV 1 /* User space interface to file system */ +#define AFS_64BIT_ENV 1 +#define AFS_64BIT_CLIENT 1 +#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */ +#define AFS_OBSD_ENV 1 +#define AFS_OBSD34_ENV 1 +#define AFS_OBSD35_ENV 1 +#define AFS_OBSD36_ENV 1 +#define AFS_OBSD37_ENV 1 +#define AFS_OBSD38_ENV 1 +#define AFS_OBSD39_ENV 1 +#define AFS_OBSD40_ENV 1 +#define AFS_OBSD41_ENV 1 +#define AFS_OBSD42_ENV 1 +#define AFS_OBSD43_ENV 1 +#define AFS_OBSD44_ENV 1 +#define AFS_OBSD45_ENV 1 +#define AFS_OBSD46_ENV 1 +#define AFS_OBSD47_ENV 1 +#define AFS_NONFSTRANS 1 +#define AFS_VM_RDWR_ENV 1 +#define AFS_VFS_ENV 1 +#define AFS_VFSINCL_ENV 1 + +#define FTRUNC O_TRUNC + +#define AFS_SYSCALL 208 +#define AFS_MOUNT_AFS "afs" + +#define RXK_LISTENER_ENV 1 +#define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */ +#define AFS_USE_GETTIMEOFDAY 1 /* use gettimeofday to implement rx clock */ + +#define AFSLITTLE_ENDIAN 1 + +#ifndef IGNORE_STDS_H +#include +#endif + +/* Extra kernel definitions (from kdefs file) */ +#ifdef _KERNEL +#ifdef MULTIPROCESSOR +#define AFS_GLOBAL_SUNLOCK 1 +#endif +#define AFS_SHORTGID 0 /* are group id's short? */ + +#if !defined(ASSEMBLER) && !defined(__LANGUAGE_ASSEMBLY__) +enum vcexcl { NONEXCL, EXCL }; + +#ifndef MIN +#define MIN(A,B) ((A) < (B) ? (A) : (B)) +#endif +#ifndef MAX +#define MAX(A,B) ((A) > (B) ? (A) : (B)) +#endif + +#endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */ +#endif /* _KERNEL */ + +#endif /* AFS_PARAM_H */