mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
08f600749e
* include/sys/socket.h: Declare __libc_sa_len_internal and define SA_LEN macro to use it if not NOT_IN_libc. * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len. * include/fcntl.h: Declare __open_internal and define __open and __libc_open macros if not NOT_IN_libc. * sysdeps/generic/open.c: Use INTDEF for __open. * sysdeps/mach/hurd/open.c: Likewise. * sysdeps/unix/sysv/aix/open.c: Likewise. * sysdeps/unix/syscalls.list: Add __open_internal alias. * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor has correct number. * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc. * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well. * sysdeps/unix/sysv/aix/fcntl.c: Likewise. * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise. * include/wctype.h: Declare __iswalpha_l_internal, __iswdigit_l_internal, __iswspace_l_internal, __iswxdigit_l_internal, and __iswctype_internal. Define __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and __iswxdigit_l macros if not NOT_IN_libc. * wctype/iswctype.c: Use INTDEF for __iswctype. * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
29 lines
1.0 KiB
C
29 lines
1.0 KiB
C
#ifndef _WCTYPE_H
|
|
|
|
#include <wctype/wctype.h>
|
|
|
|
/* Internal interfaces. */
|
|
extern int __iswalpha_l_internal (wint_t __wc, __locale_t __locale)
|
|
attribute_hidden;
|
|
extern int __iswdigit_l_internal (wint_t __wc, __locale_t __locale)
|
|
attribute_hidden;
|
|
extern int __iswspace_l_internal (wint_t __wc, __locale_t __locale)
|
|
attribute_hidden;
|
|
extern int __iswxdigit_l_internal (wint_t __wc, __locale_t __locale)
|
|
attribute_hidden;
|
|
extern int __iswspace (wint_t __wc);
|
|
extern int __iswctype (wint_t __wc, wctype_t __desc);
|
|
extern int __iswctype_internal (wint_t __wc, wctype_t __desc) attribute_hidden;
|
|
extern wctype_t __wctype (__const char *__property);
|
|
extern wint_t __towctrans (wint_t __wc, wctrans_t __desc);
|
|
|
|
#ifndef NOT_IN_libc
|
|
# define __iswalpha_l(wc, loc) INTUSE(__iswalpha_l) (wc, loc)
|
|
# define __iswctype(wc, desc) INTUSE(__iswctype) (wc, desc)
|
|
# define __iswdigit_l(wc, loc) INTUSE(__iswdigit_l) (wc, loc)
|
|
# define __iswspace_l(wc, loc) INTUSE(__iswspace_l) (wc, loc)
|
|
# define __iswxdigit_l(wc, loc) INTUSE(__iswxdigit_l) (wc, loc)
|
|
#endif
|
|
|
|
#endif
|