summaryrefslogtreecommitdiff
path: root/usr/src/lib/libc/i386/gen/wsncmp.s
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libc/i386/gen/wsncmp.s')
-rw-r--r--usr/src/lib/libc/i386/gen/wsncmp.s26
1 files changed, 11 insertions, 15 deletions
diff --git a/usr/src/lib/libc/i386/gen/wsncmp.s b/usr/src/lib/libc/i386/gen/wsncmp.s
index 54b05f8342..995187a827 100644
--- a/usr/src/lib/libc/i386/gen/wsncmp.s
+++ b/usr/src/lib/libc/i386/gen/wsncmp.s
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,12 +18,13 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
- .ident "%Z%%M% %I% %E% SMI"
+#pragma ident "%Z%%M% %I% %E% SMI"
.file "%M%"
@@ -33,17 +33,13 @@
/
/ Algorithm based on Solaris 2.6 gen/strncpy.s implementation
/
-/ .ident "@(#)strncpy.s 1.1 92/04/17 SMI"
-/
-#include <sys/asm_linkage.h>
+#include "SYS.h"
ANSI_PRAGMA_WEAK(wcsncmp,function)
ANSI_PRAGMA_WEAK(wsncmp,function)
-#include "SYS.h"
-
- ENTRY(_wcsncmp)
+ ENTRY(wcsncmp)
pushl %esi / save register variables
movl 8(%esp),%esi / %esi = first string
movl %edi,%edx
@@ -105,9 +101,9 @@
subl (%edi),%eax / return value is (*s1 - *--s2)
movl %edx,%edi
ret
- SET_SIZE(_wcsncmp)
+ SET_SIZE(wcsncmp)
- ENTRY(_wsncmp)
+ ENTRY(wsncmp)
_prologue_
movl _esp_(12),%ecx
movl _esp_(8),%eax
@@ -115,8 +111,8 @@
pushl %ecx
pushl %eax
pushl %edx
- call _fref_(_wcsncmp)
+ call _fref_(wcsncmp)
addl $12,%esp
_epilogue_
ret
- SET_SIZE(_wsncmp)
+ SET_SIZE(wsncmp)