From: Bruno Haible Date: Mon, 11 Jul 2005 11:21:55 +0000 (+0000) Subject: Use shortcut links to the POSIX specification. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75e3b3670b7703b47beeeb923cc4f246693dc7d9;p=pspp Use shortcut links to the POSIX specification. --- diff --git a/ChangeLog b/ChangeLog index d05d42934e..f2773f252f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-07-11 Bruno Haible + + * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site. + Reported by Jim Meyering. + 2005-07-09 Sergey Poznyakoff * modules/argp (Depends-on): Add unlocked-io diff --git a/MODULES.html.sh b/MODULES.html.sh index 5ec1672b07..0219150232 100755 --- a/MODULES.html.sh +++ b/MODULES.html.sh @@ -22,10 +22,10 @@ # Extend the PATH so that gnulib-tool is found. PATH=`dirname "$0"`:$PATH; export PATH -POSIX2001_URL='http://www.opengroup.org/onlinepubs/007904975/' +POSIX2001_URL='http://www.opengroup.org/susv3' case $USER in bruno ) - POSIX2001_URL='file:/packages/www/www.opengroup.org/susv3/' ;; + POSIX2001_URL='file:/packages/www/www.opengroup.org/susv3' ;; esac sed_lt='s,<,\<,g' @@ -1063,6 +1063,7 @@ srand srand48 srandom sscanf +stat statvfs stdin strcasecmp @@ -1336,7 +1337,7 @@ func_module () element=''$1'' func_echo "$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\2(),g' | sed -e 's,^ ,,'` + 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\2(),g' | sed -e 's,^ ,,'` func_echo "$element" func_end TR @@ -1348,7 +1349,7 @@ func_module () element=''$1'' func_echo "$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 "\1",' -e 's,^#include <'"${posix_headers}"'\.h>$,#include \<\1.h\>,' | sed -e 's/$/
/' | tr -d "$trnl" | sed -e 's/
$//'` + 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 "\1",' -e 's,^#include <'"${posix_headers}"'\.h>$,#include \<\1.h\>,' | sed -e 's/$/
/' | tr -d "$trnl" | sed -e 's/
$//'` test -n "$element" || element='---' func_echo "$element" diff --git a/lib/getaddrinfo.h b/lib/getaddrinfo.h index dbd7e22064..955833a6ca 100644 --- a/lib/getaddrinfo.h +++ b/lib/getaddrinfo.h @@ -72,16 +72,22 @@ struct addrinfo # endif /* Translate name of a service location and/or a service name to set of - socket addresses. */ + socket addresses. + For more details, see the POSIX:2001 specification + . */ 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. */ +/* Free `addrinfo' structure AI including associated storage. + For more details, see the POSIX:2001 specification + . */ extern void freeaddrinfo (struct addrinfo *ai); -/* Convert error return from getaddrinfo() to a string. */ +/* Convert error return from getaddrinfo() to a string. + For more details, see the POSIX:2001 specification + . */ extern const char *gai_strerror (int ecode); # endif diff --git a/lib/getcwd.h b/lib/getcwd.h index d69fe206b8..200a3d32d7 100644 --- a/lib/getcwd.h +++ b/lib/getcwd.h @@ -1,6 +1,6 @@ /* Get the working directory, compatibly with the GNU C Library. - Copyright (C) 2004 Free Software Foundation, Inc. + 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,5 +36,7 @@ # 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 + . */ char *getcwd (char *, size_t); #endif diff --git a/lib/getlogin_r.h b/lib/getlogin_r.h index 88935401b8..3ff3cafa69 100644 --- a/lib/getlogin_r.h +++ b/lib/getlogin_r.h @@ -31,7 +31,7 @@ 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 . + See . */ #if !HAVE_DECL_GETLOGIN_R int getlogin_r (char *name, size_t size); diff --git a/lib/getsubopt.h b/lib/getsubopt.h index e94f882685..5308ef5e71 100644 --- a/lib/getsubopt.h +++ b/lib/getsubopt.h @@ -1,5 +1,5 @@ /* Parse comma separate list into words. - Copyright (C) 2004 Free Software Foundation, Inc. + Copyright (C) 2004-2005 Free Software Foundation, Inc. Contributed by Simon Josefsson , 2004. This program is free software; you can redistribute it and/or modify @@ -26,7 +26,7 @@ - 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 */ + http://www.opengroup.org/susv3xsh/getsubopt.html */ #if HAVE_GETSUBOPT diff --git a/lib/inet_ntop.h b/lib/inet_ntop.h index 718a623cb1..6a92133969 100644 --- a/lib/inet_ntop.h +++ b/lib/inet_ntop.h @@ -31,7 +31,10 @@ 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 CNT is 46. + + For more details, see the POSIX:2001 specification + . */ #if !HAVE_INET_NTOP /* not already defined and declared in ? */ extern const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt); diff --git a/lib/strtok_r.h b/lib/strtok_r.h index bd32d32c23..7d3f21b5f0 100644 --- a/lib/strtok_r.h +++ b/lib/strtok_r.h @@ -1,5 +1,5 @@ /* Split string into tokens - Copyright (C) 2004 Free Software Foundation, Inc. + 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,7 +35,7 @@ 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 + http://www.opengroup.org/susv3xsh/strtok.html Caveat: It modifies the original string. Caveat: These functions cannot be used on constant strings. diff --git a/lib/time_r.h b/lib/time_r.h index f8d5d52931..1f2e94a907 100644 --- a/lib/time_r.h +++ b/lib/time_r.h @@ -1,6 +1,6 @@ /* Reentrant time functions like localtime_r. - Copyright (C) 2003 Free Software Foundation, Inc. + 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,9 +37,20 @@ # define gmtime_r rpl_gmtime_r # define localtime_r rpl_localtime_r +/* See the POSIX:2001 specification + . */ char *asctime_r (struct tm const * restrict, char * restrict); + +/* See the POSIX:2001 specification + . */ char *ctime_r (time_t const *, char *); + +/* See the POSIX:2001 specification + . */ struct tm *gmtime_r (time_t const * restrict, struct tm * restrict); + +/* See the POSIX:2001 specification + . */ struct tm *localtime_r (time_t const * restrict, struct tm * restrict); #endif