xref: /openbsd/lib/libc/hidden/string.h (revision 9b7c3dbb)
1 /*	$OpenBSD: string.h,v 1.3 2015/09/10 18:13:46 guenther Exp $	*/
2 /*
3  * Copyright (c) 2015 Philip Guenther <guenther@openbsd.org>
4  *
5  * Permission to use, copy, modify, and distribute this software for any
6  * purpose with or without fee is hereby granted, provided that the above
7  * copyright notice and this permission notice appear in all copies.
8  *
9  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16  */
17 
18 #ifndef _LIBC_STRING_H_
19 #define	_LIBC_STRING_H_
20 
21 #include_next <string.h>
22 
23 __BEGIN_HIDDEN_DECLS
24 char	*__strsignal(int , char *);
25 __END_HIDDEN_DECLS
26 
27 PROTO_NORMAL(bcmp);
28 PROTO_NORMAL(bcopy);
29 PROTO_NORMAL(bzero);
30 PROTO_NORMAL(explicit_bzero);
31 PROTO_NORMAL(ffs);
32 PROTO_DEPRECATED(index);
33 PROTO_NORMAL(memccpy);
34 PROTO_NORMAL(memchr);
35 PROTO_NORMAL(memcmp);
36 PROTO_NORMAL(memcpy);
37 PROTO_NORMAL(memmem);
38 PROTO_NORMAL(memmove);
39 PROTO_NORMAL(memrchr);
40 PROTO_NORMAL(memset);
41 PROTO_DEPRECATED(rindex);
42 PROTO_DEPRECATED(stpcpy);
43 PROTO_NORMAL(stpncpy);
44 PROTO_NORMAL(strcasecmp);
45 PROTO_NORMAL(strcasestr);
46 PROTO_STD_DEPRECATED(strcat);
47 PROTO_NORMAL(strchr);
48 PROTO_NORMAL(strcmp);
49 PROTO_NORMAL(strcoll);
50 PROTO_STD_DEPRECATED(strcpy);
51 PROTO_NORMAL(strcspn);
52 PROTO_NORMAL(strdup);
53 PROTO_NORMAL(strerror);
54 PROTO_NORMAL(strerror_r);
55 PROTO_NORMAL(strlcat);
56 PROTO_NORMAL(strlcpy);
57 PROTO_NORMAL(strlen);
58 PROTO_NORMAL(strmode);
59 PROTO_NORMAL(strncasecmp);
60 PROTO_NORMAL(strncat);
61 PROTO_NORMAL(strncmp);
62 PROTO_NORMAL(strncpy);
63 PROTO_NORMAL(strndup);
64 PROTO_NORMAL(strnlen);
65 PROTO_NORMAL(strpbrk);
66 PROTO_NORMAL(strrchr);
67 PROTO_NORMAL(strsep);
68 PROTO_NORMAL(strsignal);
69 PROTO_NORMAL(strspn);
70 PROTO_NORMAL(strstr);
71 PROTO_NORMAL(strtok);
72 PROTO_NORMAL(strtok_r);
73 PROTO_NORMAL(strxfrm);
74 PROTO_NORMAL(timingsafe_bcmp);
75 PROTO_NORMAL(timingsafe_memcmp);
76 
77 #endif /* _LIBC_STRING_H_ */
78