bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: short opengroup URLs


From: Bruno Haible
Subject: Re: short opengroup URLs
Date: Mon, 11 Jul 2005 13:20:09 +0200
User-agent: KMail/1.5

Jim Meyering wrote:
> Here's his reply.
> I think this is sufficient to justify our using the shortened URLs.

OK, so I committed the appended patch.

Bruno


diff -c -3 -r1.91 MODULES.html.sh
*** MODULES.html.sh     6 Jul 2005 15:58:47 -0000       1.91
--- MODULES.html.sh     11 Jul 2005 11:17:55 -0000
***************
*** 22,31 ****
  # Extend the PATH so that gnulib-tool is found.
  PATH=`dirname "$0"`:$PATH; export PATH
  
! POSIX2001_URL='http://www.opengroup.org/onlinepubs/007904975/'
  case $USER in
    bruno )
!     POSIX2001_URL='file:/packages/www/www.opengroup.org/susv3/' ;;
  esac
  
  sed_lt='s,<,\&lt;,g'
--- 22,31 ----
  # Extend the PATH so that gnulib-tool is found.
  PATH=`dirname "$0"`:$PATH; export PATH
  
! POSIX2001_URL='http://www.opengroup.org/susv3'
  case $USER in
    bruno )
!     POSIX2001_URL='file:/packages/www/www.opengroup.org/susv3' ;;
  esac
  
  sed_lt='s,<,\&lt;,g'
***************
*** 1336,1342 ****
      element='<A HREF="#module='$1'">'$1'</A>'
      func_echo "<TD ALIGN=LEFT VALIGN=TOP WIDTH=\"20%\">$element"
  
!     element=`gnulib-tool --extract-description $1 | sed -e "$sed_lt" -e 
"$sed_gt" -e "$sed_remove_trailing_empty_line" | sed -e 's,^, ,' | sed -e 
's,\([^a-zA-Z]\)'"${posix_functions}"'(),\1<A 
HREF="'"$POSIX2001_URL"'functions/\2.html">\2</A>(),g' | sed -e 's,^ ,,'`
      func_echo "<TD ALIGN=LEFT VALIGN=TOP WIDTH=\"80%\">$element"
  
      func_end TR
--- 1337,1343 ----
      element='<A HREF="#module='$1'">'$1'</A>'
      func_echo "<TD ALIGN=LEFT VALIGN=TOP WIDTH=\"20%\">$element"
  
!     element=`gnulib-tool --extract-description $1 | sed -e "$sed_lt" -e 
"$sed_gt" -e "$sed_remove_trailing_empty_line" | sed -e 's,^, ,' | sed -e 
's,\([^a-zA-Z]\)'"${posix_functions}"'(),\1<A 
HREF="'"$POSIX2001_URL"'xsh/\2.html">\2</A>(),g' | sed -e 's,^ ,,'`
      func_echo "<TD ALIGN=LEFT VALIGN=TOP WIDTH=\"80%\">$element"
  
      func_end TR
***************
*** 1348,1354 ****
      element='<A NAME="module='$1'"></A><A HREF="modules/'$1'">'$1'</A>'
      func_echo "<TD ALIGN=LEFT VALIGN=TOP>$element"
  
!     element=`gnulib-tool --extract-include-directive $1 | sed -e "$sed_lt" -e 
"$sed_gt" -e "$sed_remove_trailing_empty_line" | sed -e 's,^#include 
"\(.*\)"$,#include "<A HREF="lib/\1">\1</A>",' -e 's,^#include 
&lt;'"${posix_headers}"'\.h&gt;$,#include \&lt;<A 
HREF="'"$POSIX2001_URL"'basedefs/\1.h.html">\1.h</A>\&gt;,' | sed -e 
's/$/<BR>/' | tr -d "$trnl" | sed -e 's/<BR>$//'`
      test -n "$element" || element='---'
      func_echo "<TD ALIGN=LEFT VALIGN=TOP>$element"
  
--- 1349,1355 ----
      element='<A NAME="module='$1'"></A><A HREF="modules/'$1'">'$1'</A>'
      func_echo "<TD ALIGN=LEFT VALIGN=TOP>$element"
  
!     element=`gnulib-tool --extract-include-directive $1 | sed -e "$sed_lt" -e 
"$sed_gt" -e "$sed_remove_trailing_empty_line" | sed -e 's,^#include 
"\(.*\)"$,#include "<A HREF="lib/\1">\1</A>",' -e 's,^#include 
&lt;'"${posix_headers}"'\.h&gt;$,#include \&lt;<A 
HREF="'"$POSIX2001_URL"'xbd/\1.h.html">\1.h</A>\&gt;,' | sed -e 's/$/<BR>/' | 
tr -d "$trnl" | sed -e 's/<BR>$//'`
      test -n "$element" || element='---'
      func_echo "<TD ALIGN=LEFT VALIGN=TOP>$element"
  
diff -c -3 -r1.3 getaddrinfo.h
*** lib/getaddrinfo.h   14 May 2005 06:03:58 -0000      1.3
--- lib/getaddrinfo.h   11 Jul 2005 11:17:55 -0000
***************
*** 72,87 ****
  # endif
  
  /* Translate name of a service location and/or a service name to set of
!    socket addresses.  */
  extern int getaddrinfo (const char *restrict nodename,
                        const char *restrict servname,
                        const struct addrinfo *restrict hints,
                        struct addrinfo **restrict res);
  
! /* Free `addrinfo' structure AI including associated storage.  */
  extern void freeaddrinfo (struct addrinfo *ai);
  
! /* Convert error return from getaddrinfo() to a string.  */
  extern const char *gai_strerror (int ecode);
  
  # endif
--- 72,93 ----
  # endif
  
  /* Translate name of a service location and/or a service name to set of
!    socket addresses.
!    For more details, see the POSIX:2001 specification
!    <http://www.opengroup.org/susv3xsh/getaddrinfo.html>.  */
  extern int getaddrinfo (const char *restrict nodename,
                        const char *restrict servname,
                        const struct addrinfo *restrict hints,
                        struct addrinfo **restrict res);
  
! /* Free `addrinfo' structure AI including associated storage.
!    For more details, see the POSIX:2001 specification
!    <http://www.opengroup.org/susv3xsh/getaddrinfo.html>.  */
  extern void freeaddrinfo (struct addrinfo *ai);
  
! /* Convert error return from getaddrinfo() to a string.
!    For more details, see the POSIX:2001 specification
!    <http://www.opengroup.org/susv3xsh/gai_strerror.html>.  */
  extern const char *gai_strerror (int ecode);
  
  # endif
diff -c -3 -r1.2 getcwd.h
*** lib/getcwd.h        14 May 2005 06:03:58 -0000      1.2
--- lib/getcwd.h        11 Jul 2005 11:17:55 -0000
***************
*** 1,6 ****
  /* Get the working directory, compatibly with the GNU C Library.
  
!    Copyright (C) 2004 Free Software Foundation, Inc.
  
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
--- 1,6 ----
  /* Get the working directory, compatibly with the GNU C Library.
  
!    Copyright (C) 2004-2005 Free Software Foundation, Inc.
  
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
***************
*** 36,40 ****
--- 36,42 ----
  # define __GETCWD_XCONCAT(x, y) __GETCWD_CONCAT (x, y)
  # define __GETCWD_ID(y) __GETCWD_XCONCAT (__GETCWD_PREFIX, y)
  # define getcwd __GETCWD_ID (getcwd)
+ /* See the POSIX:2001 specification
+    <http://www.opengroup.org/susv3xsh/getcwd.html>.  */
  char *getcwd (char *, size_t);
  #endif
diff -c -3 -r1.4 getlogin_r.h
*** lib/getlogin_r.h    27 May 2005 12:30:08 -0000      1.4
--- lib/getlogin_r.h    11 Jul 2005 11:17:55 -0000
***************
*** 31,37 ****
     the case that the login name cannot be found but no specific error is
     provided (this case is hopefully rare but is left open by the POSIX spec).
  
!    See 
<http://www.opengroup.org/onlinepubs/009695399/functions/getlogin.html>.
   */
  #if !HAVE_DECL_GETLOGIN_R
  int getlogin_r (char *name, size_t size);
--- 31,37 ----
     the case that the login name cannot be found but no specific error is
     provided (this case is hopefully rare but is left open by the POSIX spec).
  
!    See <http://www.opengroup.org/susv3xsh/getlogin.html>.
   */
  #if !HAVE_DECL_GETLOGIN_R
  int getlogin_r (char *name, size_t size);
diff -c -3 -r1.3 getsubopt.h
*** lib/getsubopt.h     14 May 2005 06:27:58 -0000      1.3
--- lib/getsubopt.h     11 Jul 2005 11:17:55 -0000
***************
*** 1,5 ****
  /* Parse comma separate list into words.
!    Copyright (C) 2004 Free Software Foundation, Inc.
     Contributed by Simon Josefsson <address@hidden>, 2004.
  
     This program is free software; you can redistribute it and/or modify
--- 1,5 ----
  /* Parse comma separate list into words.
!    Copyright (C) 2004-2005 Free Software Foundation, Inc.
     Contributed by Simon Josefsson <address@hidden>, 2004.
  
     This program is free software; you can redistribute it and/or modify
***************
*** 26,32 ****
       - It returns the index of the "token" in the given array of tokens.
     Otherwise it returns -1, and *OPTIONP and *VALUEP are undefined.
     For more details see the POSIX:2001 specification.
!    http://www.opengroup.org/onlinepubs/009695399/functions/getsubopt.html */
  
  #if HAVE_GETSUBOPT
  
--- 26,32 ----
       - It returns the index of the "token" in the given array of tokens.
     Otherwise it returns -1, and *OPTIONP and *VALUEP are undefined.
     For more details see the POSIX:2001 specification.
!    http://www.opengroup.org/susv3xsh/getsubopt.html */
  
  #if HAVE_GETSUBOPT
  
diff -c -3 -r1.2 inet_ntop.h
*** lib/inet_ntop.h     14 May 2005 06:03:58 -0000      1.2
--- lib/inet_ntop.h     11 Jul 2005 11:17:55 -0000
***************
*** 31,37 ****
     DST is returned.  If an error occurs, the return value is NULL and
     errno is set.  If CNT bytes are not sufficient to hold the result,
     the return value is NULL and errno is set to ENOSPC.  A good value
!    for CNT is 46.  */
  
  #if !HAVE_INET_NTOP /* not already defined and declared in <arpa/inet.h> ? */
  extern const char *inet_ntop(int af, const void *src, char *dst, socklen_t 
cnt);
--- 31,40 ----
     DST is returned.  If an error occurs, the return value is NULL and
     errno is set.  If CNT bytes are not sufficient to hold the result,
     the return value is NULL and errno is set to ENOSPC.  A good value
!    for CNT is 46.
! 
!    For more details, see the POSIX:2001 specification
!    <http://www.opengroup.org/susv3xsh/inet_ntop.html>.  */
  
  #if !HAVE_INET_NTOP /* not already defined and declared in <arpa/inet.h> ? */
  extern const char *inet_ntop(int af, const void *src, char *dst, socklen_t 
cnt);
diff -c -3 -r1.3 strtok_r.h
*** lib/strtok_r.h      14 May 2005 06:03:58 -0000      1.3
--- lib/strtok_r.h      11 Jul 2005 11:17:55 -0000
***************
*** 1,5 ****
  /* Split string into tokens
!    Copyright (C) 2004 Free Software Foundation, Inc.
     Written by Simon Josefsson.
  
     This program is free software; you can redistribute it and/or modify
--- 1,5 ----
  /* Split string into tokens
!    Copyright (C) 2004-2005 Free Software Foundation, Inc.
     Written by Simon Josefsson.
  
     This program is free software; you can redistribute it and/or modify
***************
*** 35,41 ****
     This is a variant of strtok() that is multithread-safe.
  
     For the POSIX documentation for this function, see:
!    http://www.opengroup.org/onlinepubs/009695399/functions/strtok.html
  
     Caveat: It modifies the original string.
     Caveat: These functions cannot be used on constant strings.
--- 35,41 ----
     This is a variant of strtok() that is multithread-safe.
  
     For the POSIX documentation for this function, see:
!    http://www.opengroup.org/susv3xsh/strtok.html
  
     Caveat: It modifies the original string.
     Caveat: These functions cannot be used on constant strings.
diff -c -3 -r1.2 time_r.h
*** lib/time_r.h        14 May 2005 06:03:58 -0000      1.2
--- lib/time_r.h        11 Jul 2005 11:17:55 -0000
***************
*** 1,6 ****
  /* Reentrant time functions like localtime_r.
  
!    Copyright (C) 2003 Free Software Foundation, Inc.
  
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
--- 1,6 ----
  /* Reentrant time functions like localtime_r.
  
!    Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
***************
*** 37,45 ****
--- 37,56 ----
  # define gmtime_r rpl_gmtime_r
  # define localtime_r rpl_localtime_r
  
+ /* See the POSIX:2001 specification
+    <http://www.opengroup.org/susv3xsh/asctime.html>.  */
  char *asctime_r (struct tm const * restrict, char * restrict);
+ 
+ /* See the POSIX:2001 specification
+    <http://www.opengroup.org/susv3xsh/ctime.html>.  */
  char *ctime_r (time_t const *, char *);
+ 
+ /* See the POSIX:2001 specification
+    <http://www.opengroup.org/susv3xsh/gmtime.html>.  */
  struct tm *gmtime_r (time_t const * restrict, struct tm * restrict);
+ 
+ /* See the POSIX:2001 specification
+    <http://www.opengroup.org/susv3xsh/localtime.html>.  */
  struct tm *localtime_r (time_t const * restrict, struct tm * restrict);
  #endif
  





reply via email to

[Prev in Thread] Current Thread [Next in Thread]