From 77db439eaf8d88da3dfae342631384b143ce33e6 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 26 Feb 2009 02:23:50 +0000 Subject: * ctype/ctype.h: The *_l functions are in POSIX 2008. * dirent/dirent.h: alphasort, dirfd, scandir, and fdopendir are in POSIX 2008. /proc/sys/kernel/rtsig_max doesn't exist anymore, use getrlimit --- locale/langinfo.h | 2 +- locale/locale.h | 6 ++---- locale/xlocale.h | 5 ++++- 3 files changed, 7 insertions(+), 6 deletions(-) (limited to 'locale') diff --git a/locale/langinfo.h b/locale/langinfo.h index 84f53ef..59017b3 100644 --- a/locale/langinfo.h +++ b/locale/langinfo.h @@ -582,7 +582,7 @@ enum extern char *nl_langinfo (nl_item __item) __THROW; -#ifdef __USE_GNU +#ifdef __USE_XOPEN2K /* This interface is for the extended locale model. See for more information. */ diff --git a/locale/locale.h b/locale/locale.h index 08fc531..b24ae24 100644 --- a/locale/locale.h +++ b/locale/locale.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1991,1992,1995-2002,2007 Free Software Foundation, Inc. +/* Copyright (C) 1991,1992,1995-2002,2007,2009 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -130,7 +130,7 @@ extern struct lconv *localeconv (void) __THROW; __END_NAMESPACE_STD -#ifdef __USE_GNU +#ifdef __USE_XOPEN2K /* The concept of one static locale per category is not very well thought out. Many applications will need to process its data using information from several different locales. Another application is @@ -145,8 +145,6 @@ __END_NAMESPACE_STD /* Get locale datatype definition. */ # include -typedef __locale_t locale_t; - /* Return a reference to a data structure representing a set of locale datasets. Unlike for the CATEGORY parameter for `setlocale' the CATEGORY_MASK parameter here uses a single bit for each category, diff --git a/locale/xlocale.h b/locale/xlocale.h index 2b17d69..e879212 100644 --- a/locale/xlocale.h +++ b/locale/xlocale.h @@ -1,5 +1,5 @@ /* Definition of locale datatype. - Copyright (C) 1997,2000,02 Free Software Foundation, Inc. + Copyright (C) 1997,2000,2002,2009 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1997. @@ -39,4 +39,7 @@ typedef struct __locale_struct const char *__names[13]; } *__locale_t; +/* POSIX 2008 makes locale_t official. */ +typedef __locale_t locale_t; + #endif /* xlocale.h */ -- cgit v1.1