}
for (slp = vp->slocks; slp; slp = slp->next) {
-#if defined(AFS_AIX_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV)
+#if defined(AFS_HAVE_FLOCK_SYSID)
if (flock1->l_sysid != slp->sysid) {
continue;
}
af->l_type = F_WRLCK;
af->l_pid = 0;
-#if defined(AFS_AIX_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV)
+#if defined(AFS_HAVE_FLOCK_SYSID)
af->l_sysid = 0;
#endif
goto done;
af->l_type = F_WRLCK; /* not us, so lock would block */
if (avc->slocks) { /* we know who, so tell */
af->l_pid = avc->slocks->pid;
-#if defined(AFS_AIX_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV)
+#if defined(AFS_HAVE_FLOCK_SYSID)
af->l_sysid = avc->slocks->sysid;
#endif
} else {
af->l_pid = 0; /* XXX can't happen?? */
-#if defined(AFS_AIX_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV)
+#if defined(AFS_HAVE_FLOCK_SYSID)
af->l_sysid = 0;
#endif
}
af->l_type = F_WRLCK;
if (avc->slocks) {
af->l_pid = avc->slocks->pid;
-#if defined(AFS_AIX_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV)
+#if defined(AFS_HAVE_FLOCK_SYSID)
af->l_sysid = avc->slocks->sysid;
#endif
} else {
af->l_pid = 0; /* XXX can't happen?? */
-#if defined(AFS_AIX_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV)
+#if defined(AFS_HAVE_FLOCK_SYSID)
af->l_sysid = 0;
#endif
}
af->l_type = F_RDLCK;
af->l_pid = 0;
-#if defined(AFS_AIX_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV)
+#if defined(AFS_HAVE_FLOCK_SYSID)
af->l_sysid = 0;
#endif
/* find a pid that isn't our own */
for (slp = avc->slocks; slp; slp = slp->next) {
if (lockIdcmp2(&flock, NULL, slp, 1, clid)) {
af->l_pid = slp->pid;
-#if defined(AFS_AIX_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV)
+#if defined(AFS_HAVE_FLOCK_SYSID)
af->l_sysid = avc->slocks->sysid;
#endif
break;
af->l_type = F_WRLCK;
if (avc->slocks) {
af->l_pid = avc->slocks->pid;
-#if defined(AFS_AIX_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV)
+#if defined(AFS_HAVE_FLOCK_SYSID)
af->l_sysid = avc->slocks->sysid;
#endif
} else {
af->l_pid = 0; /* XXX can't happen?? */
-#if defined(AFS_AIX_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV)
+#if defined(AFS_HAVE_FLOCK_SYSID)
af->l_sysid = 0;
#endif
}
struct SimpleLocks *slp;
af->l_type = F_RDLCK;
af->l_pid = 0;
-#if defined(AFS_AIX_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV)
+#if defined(AFS_HAVE_FLOCK_SYSID)
af->l_sysid = 0;
#endif
/* find a pid that isn't our own */
for (slp = avc->slocks; slp; slp = slp->next) {
if (lockIdcmp2(&flock, NULL, slp, 1, clid)) {
af->l_pid = slp->pid;
-#if defined(AFS_AIX_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV)
+#if defined(AFS_HAVE_FLOCK_SYSID)
af->l_sysid = avc->slocks->sysid;
#endif
break;
else
af->l_type = F_WRLCK;
af->l_pid = 0;
-#if defined(AFS_AIX_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV)
+#if defined(AFS_HAVE_FLOCK_SYSID)
af->l_sysid = 0;
#endif
#define AFS_64BIT_IOPS_ENV 1 /* needed for NAMEI... */
#endif
+#define AFS_HAVE_FLOCK_SYSID 1
+
#include <afs/afs_sysnames.h>
/* Global lock in AFS part of client. */
#define AFS_AIX41_ENV 1
#define AFS_AIX42_ENV 1
+#define AFS_HAVE_FLOCK_SYSID 1
+
#endif /* KERNEL */
#include <afs/afs_sysnames.h>
#define BITMAP_LATER 1
#define FAST_RESTART 1
+#define AFS_HAVE_FLOCK_SYSID 1
+
#include <afs/afs_sysnames.h>
/* Global lock in AFS part of client. */
#define AFS_AIX42_ENV 1
#define AFS_AIX51_ENV 1
+#define AFS_HAVE_FLOCK_SYSID 1
+
#endif /* KERNEL */
#include <afs/afs_sysnames.h>
#define AFS_SGI_EXMAG 1 /* use magic fields in extents for AFS extra fields */
/* AFS_SGI_SHORTSTACK not required since we have a 16K stack. */
+#define AFS_HAVE_FLOCK_SYSID 1
+
#define AFS_PAG_LAST_ENV 1 /* PAG comes last in groups. */
#define _ANSI_C_SOURCE 1 /* rx_user.h */
#define AFS_SGI_EXMAG 1 /* use magic fields in extents for AFS extra fields */
/* AFS_SGI_SHORTSTACK not required since we have a 16K stack. */
+#define AFS_HAVE_FLOCK_SYSID 1
+
#define _ANSI_C_SOURCE 1 /* rx_user.h */
#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#define AFS_SGI_EXMAG 1 /* use magic fields in extents for AFS extra fields */
/* AFS_SGI_SHORTSTACK not required since we have a 16K stack. */
+#define AFS_HAVE_FLOCK_SYSID 1
+
#define _ANSI_C_SOURCE 1 /* rx_user.h */
#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#define AFS_SGI_EXMAG 1 /* use magic fields in extents for AFS extra fields */
/* AFS_SGI_SHORTSTACK not required since we have a 16K stack. */
+#define AFS_HAVE_FLOCK_SYSID 1
+
#define RXK_LISTENER_ENV 1 /* Use an rx listener daemon */
#define AFS_GCPAGS 0 /* if nonzero, garbage collect PAGs */
#define AFS_SUN54_ENV 1
#define AFS_SUN55_ENV 1
+#define AFS_HAVE_FLOCK_SYSID 1
+
#include <afs/afs_sysnames.h>
#define RXK_LISTENER_ENV 1
#define AFS_3DISPARES 1 /* Utilize the 3 available disk inode 'spares' */
#define AFS_SYSCALL 105
+#define AFS_HAVE_FLOCK_SYSID 1
+
/* File system entry (used if mount.h doesn't define MOUNT_AFS */
#define AFS_MOUNT_AFS "afs"
#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
+#define AFS_HAVE_FLOCK_SYSID 1
+
#include <afs/afs_sysnames.h>
#define AFS_GLOBAL_SUNLOCK 1 /* For global locking */
#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
+#define AFS_HAVE_FLOCK_SYSID 1
+
#ifdef AFS_NAMEI_ENV
#define AFS_64BIT_IOPS_ENV 1 /* needed for NAMEI... */
#else /* AFS_NAMEI_ENV */
#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
+#define AFS_HAVE_FLOCK_SYSID 1
+
#ifdef AFS_NAMEI_ENV
#define AFS_64BIT_IOPS_ENV 1 /* needed for NAMEI... */
#else /* AFS_NAMEI_ENV */
#define AFS_SUN54_ENV 1
#define AFS_X86_ENV 1
+#define AFS_HAVE_FLOCK_SYSID 1
+
#include <afs/afs_sysnames.h>
#define AFS_GLOBAL_SUNLOCK 1 /* For global locking */
#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
+#define AFS_HAVE_FLOCK_SYSID 1
+
+
#include <afs/afs_sysnames.h>
#define AFS_GLOBAL_SUNLOCK 1 /* For global locking */
#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
+#define AFS_HAVE_FLOCK_SYSID 1
+
#include <afs/afs_sysnames.h>
#define AFS_GLOBAL_SUNLOCK 1 /* For global locking */