summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/arch/amd64/net/htons.S4
-rw-r--r--lib/libc/arch/amd64/net/ntohl.S4
-rw-r--r--lib/libc/arch/amd64/net/ntohs.S4
-rw-r--r--lib/libc/arch/x86_64/net/htons.S4
-rw-r--r--lib/libc/arch/x86_64/net/ntohl.S4
-rw-r--r--lib/libc/arch/x86_64/net/ntohs.S4
6 files changed, 12 insertions, 12 deletions
diff --git a/lib/libc/arch/amd64/net/htons.S b/lib/libc/arch/amd64/net/htons.S
index 80d9f9374a8..62295abcd97 100644
--- a/lib/libc/arch/amd64/net/htons.S
+++ b/lib/libc/arch/amd64/net/htons.S
@@ -1,10 +1,10 @@
-/* $OpenBSD: htons.S,v 1.1 2004/01/28 01:44:45 mickey Exp $ */
+/* $OpenBSD: htons.S,v 1.2 2004/02/10 00:08:11 drahn Exp $ */
/* Written by Artur Grabowski. Public Domain */
#include <machine/asm.h>
-ENTRY(_C_LABEL(htonl))
+ENTRY(_C_LABEL(htons))
movl %edi,%eax
xchgb %ah,%al
ret
diff --git a/lib/libc/arch/amd64/net/ntohl.S b/lib/libc/arch/amd64/net/ntohl.S
index 4a21dc541ca..0e39c1317e0 100644
--- a/lib/libc/arch/amd64/net/ntohl.S
+++ b/lib/libc/arch/amd64/net/ntohl.S
@@ -1,10 +1,10 @@
-/* $OpenBSD: ntohl.S,v 1.1 2004/01/28 01:44:45 mickey Exp $ */
+/* $OpenBSD: ntohl.S,v 1.2 2004/02/10 00:08:11 drahn Exp $ */
/* Written by Artur Grabowski. Public Domain */
#include <machine/asm.h>
-ENTRY(_C_LABEL(htonl))
+ENTRY(_C_LABEL(ntohl))
movl %edi,%eax
bswapl %eax
ret
diff --git a/lib/libc/arch/amd64/net/ntohs.S b/lib/libc/arch/amd64/net/ntohs.S
index 6c70cc26945..3ee61fc5684 100644
--- a/lib/libc/arch/amd64/net/ntohs.S
+++ b/lib/libc/arch/amd64/net/ntohs.S
@@ -1,10 +1,10 @@
-/* $OpenBSD: ntohs.S,v 1.1 2004/01/28 01:44:45 mickey Exp $ */
+/* $OpenBSD: ntohs.S,v 1.2 2004/02/10 00:08:11 drahn Exp $ */
/* Written by Artur Grabowski. Public Domain */
#include <machine/asm.h>
-ENTRY(_C_LABEL(htonl))
+ENTRY(_C_LABEL(ntohs))
movl %edi,%eax
xchgb %ah,%al
ret
diff --git a/lib/libc/arch/x86_64/net/htons.S b/lib/libc/arch/x86_64/net/htons.S
index 80d9f9374a8..62295abcd97 100644
--- a/lib/libc/arch/x86_64/net/htons.S
+++ b/lib/libc/arch/x86_64/net/htons.S
@@ -1,10 +1,10 @@
-/* $OpenBSD: htons.S,v 1.1 2004/01/28 01:44:45 mickey Exp $ */
+/* $OpenBSD: htons.S,v 1.2 2004/02/10 00:08:11 drahn Exp $ */
/* Written by Artur Grabowski. Public Domain */
#include <machine/asm.h>
-ENTRY(_C_LABEL(htonl))
+ENTRY(_C_LABEL(htons))
movl %edi,%eax
xchgb %ah,%al
ret
diff --git a/lib/libc/arch/x86_64/net/ntohl.S b/lib/libc/arch/x86_64/net/ntohl.S
index 4a21dc541ca..0e39c1317e0 100644
--- a/lib/libc/arch/x86_64/net/ntohl.S
+++ b/lib/libc/arch/x86_64/net/ntohl.S
@@ -1,10 +1,10 @@
-/* $OpenBSD: ntohl.S,v 1.1 2004/01/28 01:44:45 mickey Exp $ */
+/* $OpenBSD: ntohl.S,v 1.2 2004/02/10 00:08:11 drahn Exp $ */
/* Written by Artur Grabowski. Public Domain */
#include <machine/asm.h>
-ENTRY(_C_LABEL(htonl))
+ENTRY(_C_LABEL(ntohl))
movl %edi,%eax
bswapl %eax
ret
diff --git a/lib/libc/arch/x86_64/net/ntohs.S b/lib/libc/arch/x86_64/net/ntohs.S
index 6c70cc26945..3ee61fc5684 100644
--- a/lib/libc/arch/x86_64/net/ntohs.S
+++ b/lib/libc/arch/x86_64/net/ntohs.S
@@ -1,10 +1,10 @@
-/* $OpenBSD: ntohs.S,v 1.1 2004/01/28 01:44:45 mickey Exp $ */
+/* $OpenBSD: ntohs.S,v 1.2 2004/02/10 00:08:11 drahn Exp $ */
/* Written by Artur Grabowski. Public Domain */
#include <machine/asm.h>
-ENTRY(_C_LABEL(htonl))
+ENTRY(_C_LABEL(ntohs))
movl %edi,%eax
xchgb %ah,%al
ret