am e974e951
: am 2a5b57db
: am 580a7073
: Merge "Stop advertising rindex(3), which is both deprecated and unimplemented."
* commit 'e974e951606d2efbad4bafe5edbd09c13d875f6a': Stop advertising rindex(3), which is both deprecated and unimplemented.
This commit is contained in:
commit
7dfc6a3cd1
4 changed files with 0 additions and 34 deletions
|
@ -1,29 +0,0 @@
|
|||
/* $OpenBSD: rindex.S,v 1.3 2005/08/07 11:30:38 espie Exp $ */
|
||||
/*
|
||||
* Written by J.T. Conklin <jtc@netbsd.org>.
|
||||
* Public domain.
|
||||
*/
|
||||
|
||||
#include <machine/asm.h>
|
||||
|
||||
#ifdef STRRCHR
|
||||
ENTRY(strrchr)
|
||||
#else
|
||||
ENTRY(rindex)
|
||||
#endif
|
||||
pushl %ebx
|
||||
movl 8(%esp),%edx
|
||||
movb 12(%esp),%cl
|
||||
xorl %eax,%eax /* init pointer to null */
|
||||
.align 2,0x90
|
||||
L1:
|
||||
movb (%edx),%bl
|
||||
cmpb %bl,%cl
|
||||
jne L2
|
||||
movl %edx,%eax
|
||||
L2:
|
||||
incl %edx
|
||||
testb %bl,%bl /* null terminator??? */
|
||||
jnz L1
|
||||
popl %ebx
|
||||
ret
|
|
@ -1,3 +0,0 @@
|
|||
/* $OpenBSD: strrchr.S,v 1.3 2005/08/07 11:30:38 espie Exp $ */
|
||||
#define STRRCHR
|
||||
#include "rindex.S"
|
|
@ -45,7 +45,6 @@ extern void* memmem(const void *, size_t, const void *, size_t) __purefunc;
|
|||
extern void memswap(void *, void *, size_t);
|
||||
|
||||
extern char* index(const char *, int) __purefunc;
|
||||
extern char* rindex(const char *, int) __purefunc;
|
||||
extern char* strchr(const char *, int) __purefunc;
|
||||
extern char* strrchr(const char *, int) __purefunc;
|
||||
|
||||
|
|
|
@ -47,7 +47,6 @@ void bcopy(const void *, void *, size_t);
|
|||
void bzero(void *, size_t);
|
||||
int ffs(int);
|
||||
char *index(const char *, int);
|
||||
char *rindex(const char *, int);
|
||||
int strcasecmp(const char *, const char *);
|
||||
int strncasecmp(const char *, const char *, size_t);
|
||||
|
||||
|
|
Loading…
Reference in a new issue