aboutsummaryrefslogtreecommitdiffstats
path: root/conf/sa_dref
diff options
context:
space:
mode:
Diffstat (limited to 'conf/sa_dref')
-rw-r--r--conf/sa_dref/sa_dref_386bsd.h5
-rw-r--r--conf/sa_dref/sa_dref_aix3.h3
-rw-r--r--conf/sa_dref/sa_dref_aoi.h7
-rw-r--r--conf/sa_dref/sa_dref_default.h3
-rw-r--r--conf/sa_dref/sa_dref_isc3.h7
-rw-r--r--conf/sa_dref/sa_dref_linux.h3
-rw-r--r--conf/sa_dref/sa_dref_svr4.h7
7 files changed, 35 insertions, 0 deletions
diff --git a/conf/sa_dref/sa_dref_386bsd.h b/conf/sa_dref/sa_dref_386bsd.h
new file mode 100644
index 000000000000..2ebadad6353a
--- /dev/null
+++ b/conf/sa_dref/sa_dref_386bsd.h
@@ -0,0 +1,5 @@
+/* $srcdir/conf/sa_dref/sa_dref_386bsd.h */
+#define NFS_SA_DREF(dst, src) { \
+ (dst)->addr = (struct sockaddr *) (src); \
+ }
+#define NFS_ARGS_T_ADDR_IS_POINTER 1
diff --git a/conf/sa_dref/sa_dref_aix3.h b/conf/sa_dref/sa_dref_aix3.h
new file mode 100644
index 000000000000..782bcf081d3e
--- /dev/null
+++ b/conf/sa_dref/sa_dref_aix3.h
@@ -0,0 +1,3 @@
+/* $srcdir/conf/sa_dref/sa_dref_aix3.h */
+#define NFS_SA_DREF(dst, src) (dst)->addr = *(src)
+/* #undef NFS_ARGS_T_ADDR_IS_POINTER */
diff --git a/conf/sa_dref/sa_dref_aoi.h b/conf/sa_dref/sa_dref_aoi.h
new file mode 100644
index 000000000000..4215c04852d2
--- /dev/null
+++ b/conf/sa_dref/sa_dref_aoi.h
@@ -0,0 +1,7 @@
+/* $srcdir/conf/sa_dref/sa_dref_aoi.h */
+#define NFS_SA_DREF(dst, src) { \
+ (dst)->addr->buf = (char *) (src); \
+ (dst)->addr->len = sizeof(struct sockaddr_in); \
+ (dst)->addr->maxlen = sizeof(struct sockaddr_in); \
+ }
+#define NFS_ARGS_T_ADDR_IS_POINTER 1
diff --git a/conf/sa_dref/sa_dref_default.h b/conf/sa_dref/sa_dref_default.h
new file mode 100644
index 000000000000..100a04a898a0
--- /dev/null
+++ b/conf/sa_dref/sa_dref_default.h
@@ -0,0 +1,3 @@
+/* $srcdir/conf/sa_dref/sa_dref_default.h */
+#define NFS_SA_DREF(dst, src) (dst)->addr = (src)
+#define NFS_ARGS_T_ADDR_IS_POINTER 1
diff --git a/conf/sa_dref/sa_dref_isc3.h b/conf/sa_dref/sa_dref_isc3.h
new file mode 100644
index 000000000000..43ece8c097cf
--- /dev/null
+++ b/conf/sa_dref/sa_dref_isc3.h
@@ -0,0 +1,7 @@
+/* $srcdir/conf/sa_dref/sa_dref_isc3.h */
+#define NFS_SA_DREF(dst, src) { \
+ (dst)->raddr.buf = (char *) (src); \
+ (dst)->raddr.len = sizeof(struct sockaddr_in); \
+ (dst)->trans = 1; \
+ }
+/* #undef NFS_ARGS_T_ADDR_IS_POINTER */
diff --git a/conf/sa_dref/sa_dref_linux.h b/conf/sa_dref/sa_dref_linux.h
new file mode 100644
index 000000000000..50c4c130a75c
--- /dev/null
+++ b/conf/sa_dref/sa_dref_linux.h
@@ -0,0 +1,3 @@
+/* $srcdir/conf/sa_dref/sa_dref_linux.h */
+#define NFS_SA_DREF(dst, src) memmove((char *)&dst->addr, (char *) src, sizeof(struct sockaddr_in))
+/* #undef NFS_ARGS_T_ADDR_IS_POINTER */
diff --git a/conf/sa_dref/sa_dref_svr4.h b/conf/sa_dref/sa_dref_svr4.h
new file mode 100644
index 000000000000..c4ecc49ea4ff
--- /dev/null
+++ b/conf/sa_dref/sa_dref_svr4.h
@@ -0,0 +1,7 @@
+/* $srcdir/conf/sa_dref/sa_dref_svr4.h */
+#define NFS_SA_DREF(dst, src) { \
+ (dst)->addr->buf = (char *) (src); \
+ (dst)->addr->len = sizeof(struct sockaddr_in); \
+ (dst)->addr->maxlen = sizeof(struct sockaddr_in); \
+ }
+#define NFS_ARGS_T_ADDR_IS_POINTER 1