diff options
author | 2015-09-12 16:23:14 +0000 | |
---|---|---|
committer | 2015-09-12 16:23:14 +0000 | |
commit | 38a75b98f3fd53b60cfeaff8ed9b08fd7afaad1c (patch) | |
tree | 8b99daf217719f1c27cb0c1e00e3a53852fc2809 /lib/libc/hidden/inttypes.h | |
parent | sys/syscall_mi is only included by MD trap.c files, which have reason to (diff) | |
download | wireguard-openbsd-38a75b98f3fd53b60cfeaff8ed9b08fd7afaad1c.tar.xz wireguard-openbsd-38a75b98f3fd53b60cfeaff8ed9b08fd7afaad1c.zip |
Wrap <inttypes.h> and finish wrapping of <wchar.h> so that calls go direct
and the symbols not in the C standard are weak
Diffstat (limited to 'lib/libc/hidden/inttypes.h')
-rw-r--r-- | lib/libc/hidden/inttypes.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/libc/hidden/inttypes.h b/lib/libc/hidden/inttypes.h new file mode 100644 index 00000000000..25427145fe5 --- /dev/null +++ b/lib/libc/hidden/inttypes.h @@ -0,0 +1,30 @@ +/* $OpenBSD: inttypes.h,v 1.1 2015/09/12 16:23:14 guenther Exp $ */ +/* + * Copyright (c) 2015 Philip Guenther <guenther@openbsd.org> + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#ifndef _LIBC_INTTYPES_H_ +#define _LIBC_INTTYPES_H_ + +#include_next <inttypes.h> + +PROTO_STD_DEPRECATED(imaxabs); +PROTO_STD_DEPRECATED(imaxdiv); +PROTO_NORMAL(strtoimax); +PROTO_NORMAL(strtoumax); +PROTO_NORMAL(wcstoimax); +PROTO_NORMAL(wcstoumax); + +#endif /* _LIBC_INTTYPES_H_ */ |