Skip to content

Commit

Permalink
Relax visibility of some more declaration.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Jan 14, 2010
1 parent 63ee841 commit 52e2ea9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
2010-01-14 Ulrich Drepper <drepper@redhat.com>

* posix/unistd.h: Change getpagesize and getdtablesize declaration
visibility some more.

* resolv/netdb.h: Relax condition to elide obsolete resolver constants.

* posix/unistd.h: Declare getpagesize in _GNU_SOURCE mode.
Expand Down
4 changes: 2 additions & 2 deletions posix/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -986,16 +986,16 @@ extern long int gethostid (void);
extern void sync (void) __THROW;


# if defined __USE_GNU || !defined __USE_XOPEN2K
# if defined __USE_BSD || !defined __USE_XOPEN2K
/* Return the number of bytes in a page. This is the system's page size,
which is not necessarily the same as the hardware page size. */
extern int getpagesize (void) __THROW __attribute__ ((__const__));
# endif


/* Return the maximum number of file descriptors
the current process could possibly have. */
extern int getdtablesize (void) __THROW;
# endif

#endif /* Use BSD || X/Open Unix. */

Expand Down
4 changes: 2 additions & 2 deletions resolv/netdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

__BEGIN_DECLS

#if defined __USE_MISC || defined __USE_GNU || !defined __USE_XOPEN2K8
#if defined __USE_MISC || !defined __USE_XOPEN2K8
/* Error status for non-reentrant lookup functions.
We use a macro to access always the thread-specific `h_errno' variable. */
# define h_errno (*__h_errno_location ())
Expand Down Expand Up @@ -87,7 +87,7 @@ extern int *__h_errno_location (void) __THROW __attribute__ ((__const__));
# define SCOPE_DELIMITER '%'
#endif

#if defined __USE_MISC || defined __USE_GNU
#ifdef __USE_MISC
/* Print error indicated by `h_errno' variable on standard error. STR
if non-null is printed before the error string. */
extern void herror (__const char *__str) __THROW;
Expand Down

0 comments on commit 52e2ea9

Please sign in to comment.