fix posix data (wcrtomb wrong header bug)
authornsz <nsz@port70.net>
Tue, 20 Sep 2011 20:11:05 +0000 (22:11 +0200)
committernsz <nsz@port70.net>
Tue, 20 Sep 2011 20:11:05 +0000 (22:11 +0200)
data/musl.problems
data/posix2008
data/posix2008.bugs [new file with mode: 0644]
data/posix2008.ok
tab_posix.html

index 0ca4b50..e90dafa 100644 (file)
@@ -38,4 +38,3 @@ proto setpgid unistd/setpgid.c        unistd.h        pid_t(pid_t,pid_t)      int(pid_t,pid_t)
 nodecl sincos  T
 nodecl start   T
 nodecl stime   T
-header wcrtomb wchar.h stdio.h
index 1e9d313..b9c81b4 100644 (file)
@@ -1129,7 +1129,7 @@ waitid    sys/wait.h              waitid - wait for a child process to change state       int waitid(
 waitpid        sys/wait.h              wait, waitpid - wait for a child process to stop or terminate   pid_t waitpid(pid_t pid, int *stat_loc, int options);
 wcpcpy wchar.h CX      wcpcpy, wcscpy - copy a wide-character string, returning a pointer to its end   wchar_t *wcpcpy(wchar_t *restrict ws1, const wchar_t *restrict ws2);
 wcpncpy        wchar.h CX      wcpncpy, wcsncpy - copy a fixed-size wide-character string, returning a pointer to its end      wchar_t *wcpncpy(wchar_t restrict *ws1, const wchar_t *restrict ws2, size_t n);
-wcrtomb        stdio.h         wcrtomb - convert a wide-character code to a character (restartable)    size_t wcrtomb(char *restrict s, wchar_t wc, mbstate_t *restrict ps);
+wcrtomb        wchar.h         wcrtomb - convert a wide-character code to a character (restartable)    size_t wcrtomb(char *restrict s, wchar_t wc, mbstate_t *restrict ps);
 wcscasecmp     wchar.h CX      wcscasecmp, wcscasecmp_l, wcsncasecmp, wcsncasecmp_l - case-insensitive wide-character string comparison        int wcscasecmp(const wchar_t *ws1, const wchar_t *ws2);
 wcscasecmp_l   wchar.h CX      wcscasecmp, wcscasecmp_l, wcsncasecmp, wcsncasecmp_l - case-insensitive wide-character string comparison        int wcscasecmp_l(const wchar_t *ws1, const wchar_t *ws2, locale_t locale);
 wcscat wchar.h         wcscat - concatenate two wide-character strings wchar_t *wcscat(wchar_t *restrict ws1, const wchar_t *restrict ws2);
diff --git a/data/posix2008.bugs b/data/posix2008.bugs
new file mode 100644 (file)
index 0000000..7200a51
--- /dev/null
@@ -0,0 +1,11 @@
+wcrtomb should be declared in <wchar.h> not in <stdio.h>
+see
+http://pubs.opengroup.org/onlinepubs/9699919799/functions/wcrtomb.html
+vs
+http://repo.or.cz/w/c-standard.git/blob_plain/HEAD:/n1256.html#7.24.6.3.3
+
+
+pthread_kill(invalid_value, sig); required to return ESRCH which is not possible
+http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_kill.html
+
+
index f681003..c3ca230 100644 (file)
@@ -1071,7 +1071,7 @@ waitid    sys/wait.h              waitid - wait for a child process to change state       int waitid(
 waitpid        sys/wait.h              wait, waitpid - wait for a child process to stop or terminate   pid_t waitpid(pid_t pid, int *stat_loc, int options);
 wcpcpy wchar.h CX      wcpcpy, wcscpy - copy a wide-character string, returning a pointer to its end   wchar_t *wcpcpy(wchar_t *restrict ws1, const wchar_t *restrict ws2);
 wcpncpy        wchar.h CX      wcpncpy, wcsncpy - copy a fixed-size wide-character string, returning a pointer to its end      wchar_t *wcpncpy(wchar_t restrict *ws1, const wchar_t *restrict ws2, size_t n);
-wcrtomb        stdio.h         wcrtomb - convert a wide-character code to a character (restartable)    size_t wcrtomb(char *restrict s, wchar_t wc, mbstate_t *restrict ps);
+wcrtomb        wchar.h         wcrtomb - convert a wide-character code to a character (restartable)    size_t wcrtomb(char *restrict s, wchar_t wc, mbstate_t *restrict ps);
 wcscasecmp     wchar.h CX      wcscasecmp, wcscasecmp_l, wcsncasecmp, wcsncasecmp_l - case-insensitive wide-character string comparison        int wcscasecmp(const wchar_t *ws1, const wchar_t *ws2);
 wcscasecmp_l   wchar.h CX      wcscasecmp, wcscasecmp_l, wcsncasecmp, wcsncasecmp_l - case-insensitive wide-character string comparison        int wcscasecmp_l(const wchar_t *ws1, const wchar_t *ws2, locale_t locale);
 wcscat wchar.h         wcscat - concatenate two wide-character strings wchar_t *wcscat(wchar_t *restrict ws1, const wchar_t *restrict ws2);
index 0e6e895..324d362 100644 (file)
 <tr><td>&#160;<td>T<td><a href="http://git.etalabs.net/cgi-bin/gitweb.cgi?p=musl;a=blob;f=include/sys/wait.h#l18">p</a> <td><a href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/waitpid.html">waitpid</a><td> <a href="http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_wait.h.html">sys/wait.h</a><td>&#160;<td>wait, waitpid - wait for a child process to stop or terminate
 <tr><td>missing<td>&#160;<td>&#160;<td><a href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/wcpcpy.html">wcpcpy</a><td> <a href="http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/wchar.h.html">wchar.h</a><td> <a href="http://pubs.opengroup.org/onlinepubs/9699919799/help/codes.html#CX">CX</a><td>wcpcpy, wcscpy - copy a wide-character string, returning a pointer to its end
 <tr><td>missing<td>&#160;<td>&#160;<td><a href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/wcpncpy.html">wcpncpy</a><td> <a href="http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/wchar.h.html">wchar.h</a><td> <a href="http://pubs.opengroup.org/onlinepubs/9699919799/help/codes.html#CX">CX</a><td>wcpncpy, wcsncpy - copy a fixed-size wide-character string, returning a pointer to its end
-<tr><td>&#160;<td>T<td><a href="http://git.etalabs.net/cgi-bin/gitweb.cgi?p=musl;a=blob;f=include/wchar.h#l74">p</a> <td><a href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/wcrtomb.html">wcrtomb</a><td> <a href="http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdio.h.html">stdio.h</a><td>&#160;<td>wcrtomb - convert a wide-character code to a character (restartable)
+<tr><td>&#160;<td>T<td><a href="http://git.etalabs.net/cgi-bin/gitweb.cgi?p=musl;a=blob;f=include/wchar.h#l74">p</a> <td><a href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/wcrtomb.html">wcrtomb</a><td> <a href="http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/wchar.h.html">wchar.h</a><td>&#160;<td>wcrtomb - convert a wide-character code to a character (restartable)
 <tr><td>missing<td>&#160;<td>&#160;<td><a href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/wcscasecmp.html">wcscasecmp</a><td> <a href="http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/wchar.h.html">wchar.h</a><td> <a href="http://pubs.opengroup.org/onlinepubs/9699919799/help/codes.html#CX">CX</a><td>wcscasecmp, wcscasecmp_l, wcsncasecmp, wcsncasecmp_l - case-insensitive wide-character string comparison
 <tr><td>missing<td>&#160;<td>&#160;<td><a href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/wcscasecmp_l.html">wcscasecmp_l</a><td> <a href="http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/wchar.h.html">wchar.h</a><td> <a href="http://pubs.opengroup.org/onlinepubs/9699919799/help/codes.html#CX">CX</a><td>wcscasecmp, wcscasecmp_l, wcsncasecmp, wcsncasecmp_l - case-insensitive wide-character string comparison
 <tr><td>&#160;<td>T<td><a href="http://git.etalabs.net/cgi-bin/gitweb.cgi?p=musl;a=blob;f=include/wchar.h#l40">p</a> <td><a href="http://pubs.opengroup.org/onlinepubs/9699919799/functions/wcscat.html">wcscat</a><td> <a href="http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/wchar.h.html">wchar.h</a><td>&#160;<td>wcscat - concatenate two wide-character strings