summaryrefslogtreecommitdiff
path: root/lib/libc/arch
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2004-02-10 00:08:12 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2004-02-10 00:08:12 +0000
commit1e2093bd704a8f51dc17adbf7cd91548b9edef28 (patch)
tree5ac6bbf203594c0047774f01a832849f1a6c9e70 /lib/libc/arch
parente34d999c3707330f7156de70de6d3744089ef5e4 (diff)
correct function names, ok deraadt@
Diffstat (limited to 'lib/libc/arch')
-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