aboutsummaryrefslogtreecommitdiffstats
path: root/conf/sa_dref
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2016-08-31 00:08:49 +0000
committerCy Schubert <cy@FreeBSD.org>2016-08-31 00:08:49 +0000
commitca57057f598bfc7119f79f71bf38ec88244ab396 (patch)
tree051f78ef258707b493cc7cb21569b6949915f6c7 /conf/sa_dref
parente66b16bf080ead1c51f321eaf56710c771778706 (diff)
downloadsrc-vendor/amd.tar.gz
src-vendor/amd.zip
Import am-utils 6.2,vendor/amd/6.2vendor/amd
Suggested by: pfg@ Obtained from: ftp://ftp.am-utils.org/pub/am-utils/
Notes
Notes: svn path=/vendor/amd/dist/; revision=305100 svn path=/vendor/amd/6.2/; revision=305101; tag=vendor/amd/6.2
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