xref: /openbsd/lib/libc/hidden/string.h (revision ae3cb403)
1*ae3cb403Sguenther /*	$OpenBSD: string.h,v 1.6 2018/01/18 08:23:44 guenther Exp $	*/
29b9d2a55Sguenther /*
39b9d2a55Sguenther  * Copyright (c) 2015 Philip Guenther <guenther@openbsd.org>
49b9d2a55Sguenther  *
59b9d2a55Sguenther  * Permission to use, copy, modify, and distribute this software for any
69b9d2a55Sguenther  * purpose with or without fee is hereby granted, provided that the above
79b9d2a55Sguenther  * copyright notice and this permission notice appear in all copies.
89b9d2a55Sguenther  *
99b9d2a55Sguenther  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
109b9d2a55Sguenther  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
119b9d2a55Sguenther  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
129b9d2a55Sguenther  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
139b9d2a55Sguenther  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
149b9d2a55Sguenther  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
159b9d2a55Sguenther  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
169b9d2a55Sguenther  */
179b9d2a55Sguenther 
189b9d2a55Sguenther #ifndef _LIBC_STRING_H_
199b9d2a55Sguenther #define	_LIBC_STRING_H_
209b9d2a55Sguenther 
219b9d2a55Sguenther #include_next <string.h>
229b9d2a55Sguenther 
233fe234aeSguenther __BEGIN_HIDDEN_DECLS
249b9d2a55Sguenther char	*__strsignal(int , char *);
253fe234aeSguenther __END_HIDDEN_DECLS
269b9d2a55Sguenther 
279b9d2a55Sguenther PROTO_NORMAL(bcmp);
289b9d2a55Sguenther PROTO_NORMAL(bcopy);
299b9d2a55Sguenther PROTO_NORMAL(bzero);
309b9d2a55Sguenther PROTO_NORMAL(explicit_bzero);
31*ae3cb403Sguenther PROTO_PROTECTED(ffs);
329b9d2a55Sguenther PROTO_DEPRECATED(index);
339b9d2a55Sguenther PROTO_NORMAL(memccpy);
349b9d2a55Sguenther PROTO_NORMAL(memchr);
359b9d2a55Sguenther PROTO_NORMAL(memcmp);
36ea6088e7Sguenther /*PROTO_NORMAL(memcpy);			use declaration from namespace.h */
379b9d2a55Sguenther PROTO_NORMAL(memmem);
38ea6088e7Sguenther /*PROTO_NORMAL(memmove);		use declaration from namespace.h */
399b9d2a55Sguenther PROTO_NORMAL(memrchr);
40ea6088e7Sguenther /*PROTO_NORMAL(memset);			use declaration from namespace.h */
419b9d2a55Sguenther PROTO_DEPRECATED(rindex);
429b9d2a55Sguenther PROTO_DEPRECATED(stpcpy);
439b9d2a55Sguenther PROTO_NORMAL(stpncpy);
449b9d2a55Sguenther PROTO_NORMAL(strcasecmp);
453a628b46Sschwarze PROTO_DEPRECATED(strcasecmp_l);
469b9d2a55Sguenther PROTO_NORMAL(strcasestr);
479b9d2a55Sguenther PROTO_STD_DEPRECATED(strcat);
489b9d2a55Sguenther PROTO_NORMAL(strchr);
499b9d2a55Sguenther PROTO_NORMAL(strcmp);
509b9d2a55Sguenther PROTO_NORMAL(strcoll);
513a628b46Sschwarze PROTO_DEPRECATED(strcoll_l);
529b9d2a55Sguenther PROTO_STD_DEPRECATED(strcpy);
539b9d2a55Sguenther PROTO_NORMAL(strcspn);
549b9d2a55Sguenther PROTO_NORMAL(strdup);
559b9d2a55Sguenther PROTO_NORMAL(strerror);
563a628b46Sschwarze PROTO_DEPRECATED(strerror_l);
579b9d2a55Sguenther PROTO_NORMAL(strerror_r);
589b9d2a55Sguenther PROTO_NORMAL(strlcat);
599b9d2a55Sguenther PROTO_NORMAL(strlcpy);
609b9d2a55Sguenther PROTO_NORMAL(strlen);
619b9d2a55Sguenther PROTO_NORMAL(strmode);
629b9d2a55Sguenther PROTO_NORMAL(strncasecmp);
633a628b46Sschwarze PROTO_DEPRECATED(strncasecmp_l);
649b9d2a55Sguenther PROTO_NORMAL(strncat);
659b9d2a55Sguenther PROTO_NORMAL(strncmp);
669b9d2a55Sguenther PROTO_NORMAL(strncpy);
679b9d2a55Sguenther PROTO_NORMAL(strndup);
689b9d2a55Sguenther PROTO_NORMAL(strnlen);
699b9d2a55Sguenther PROTO_NORMAL(strpbrk);
709b9d2a55Sguenther PROTO_NORMAL(strrchr);
719b9d2a55Sguenther PROTO_NORMAL(strsep);
729b9d2a55Sguenther PROTO_NORMAL(strsignal);
739b9d2a55Sguenther PROTO_NORMAL(strspn);
749b9d2a55Sguenther PROTO_NORMAL(strstr);
759b9d2a55Sguenther PROTO_NORMAL(strtok);
769b9d2a55Sguenther PROTO_NORMAL(strtok_r);
779b9d2a55Sguenther PROTO_NORMAL(strxfrm);
783a628b46Sschwarze PROTO_DEPRECATED(strxfrm_l);
799b9d2a55Sguenther PROTO_NORMAL(timingsafe_bcmp);
809b9d2a55Sguenther PROTO_NORMAL(timingsafe_memcmp);
819b9d2a55Sguenther 
829b9d2a55Sguenther #endif /* _LIBC_STRING_H_ */
83