Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/sunos make this useful when compiled on sparc64: ...
details: https://anonhg.NetBSD.org/src/rev/927d479db918
branches: trunk
changeset: 503173:927d479db918
user: mrg <mrg%NetBSD.org@localhost>
date: Fri Feb 02 07:11:09 2001 +0000
description:
make this useful when compiled on sparc64: two members in sunos_nfs_args
become typedefs.
diffstat:
sys/compat/sunos/sunos.h | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
diffs (40 lines):
diff -r 5714d69d40d9 -r 927d479db918 sys/compat/sunos/sunos.h
--- a/sys/compat/sunos/sunos.h Fri Feb 02 07:08:17 2001 +0000
+++ b/sys/compat/sunos/sunos.h Fri Feb 02 07:11:09 2001 +0000
@@ -1,4 +1,14 @@
-/* $NetBSD: sunos.h,v 1.11 1998/09/13 20:20:48 pk Exp $ */
+/* $NetBSD: sunos.h,v 1.12 2001/02/02 07:11:09 mrg Exp $ */
+
+#ifndef _COMPAT_SUNOS_SUNOS_H_
+#define _COMPAT_SUNOS_SUNOS_H_
+
+/* used to ensure `struct sunos' types rename constantly sized. */
+#ifdef __arch64__
+typedef u_int32_t sunos_charp;
+#else
+typedef char * sunos_charp;
+#endif
#define SUNM_RDONLY 0x01 /* mount fs read-only */
#define SUNM_NOSUID 0x02 /* mount fs with setuid disallowed */
@@ -17,12 +27,12 @@
int rsize; /* read size in bytes */
int timeo; /* initial timeout in .1 secs */
int retrans; /* times to retry send */
- char *hostname; /* server's hostname */
+ sunos_charp hostname; /* server's hostname */
int acregmin; /* attr cache file min secs */
int acregmax; /* attr cache file max secs */
int acdirmin; /* attr cache dir min secs */
int acdirmax; /* attr cache dir max secs */
- char *netname; /* server's netname */
+ sunos_charp netname; /* server's netname */
struct pathcnf *pathconf; /* static pathconf kludge */
};
/* SunOS nfs flag values: */
@@ -146,3 +156,5 @@
/* Defined in arch/<arch>/sunos_machdep.c */
void sunos_sendsig __P((sig_t, int, sigset_t *, u_long));
__END_DECLS
+
+#endif /* _COMPAT_SUNOS_SUNOS_H_ */
Home |
Main Index |
Thread Index |
Old Index