From 126354160f202820d91e8f9bf57b4d856fb50828 Mon Sep 17 00:00:00 2001 From: nsz Date: Tue, 14 Oct 2014 01:15:51 +0200 Subject: [PATCH] update and handle enums in api tables --- data/musl.problems | 1 + inctags.sh | 2 +- maketags.sh | 2 +- tab_c11.html | 28 ++++++++++++++-------------- tab_c11.sh | 2 +- tab_c99.html | 10 +++++----- tab_c99.sh | 2 +- tab_posix.html | 4 ++-- 8 files changed, 26 insertions(+), 25 deletions(-) diff --git a/data/musl.problems b/data/musl.problems index 44ace6c..4d41538 100644 --- a/data/musl.problems +++ b/data/musl.problems @@ -4,6 +4,7 @@ proto ElfW link.h link.h ElfW(Addr) l_addr; ElfW(Addr) dlpi_addr; proto ElfW link.h link.h ElfW(Dyn) *l_ld; ElfW(Addr) dlpi_addr; proto ElfW link.h link.h ElfW(Addr) r_brk; ElfW(Addr) dlpi_addr; proto ElfW link.h link.h ElfW(Addr) r_ldbase; ElfW(Addr) dlpi_addr; +nodecl arch_prctl T proto basename string.h libgen.h char *basename(); char *basename(char *); proto basename string.h char*() char*(char*) char *basename(); char *basename(char *path); nodecl capget T diff --git a/inctags.sh b/inctags.sh index 457db4a..a91a2c0 100755 --- a/inctags.sh +++ b/inctags.sh @@ -5,7 +5,7 @@ export LC_ALL=C dotags() { ( cd $1 - ctags -f /tmp/inc.tags -R -n -u --links=no --languages='c,c++' --c-kinds=pxdstuv --fields=k --exclude='*.c' . + ctags -f /tmp/inc.tags -R -n -u --links=no --languages='c,c++' --c-kinds=pxdstuve --fields=k --exclude='*.c' . ) awk -v path=$1/ ' BEGIN { diff --git a/maketags.sh b/maketags.sh index b3ab173..f634f21 100755 --- a/maketags.sh +++ b/maketags.sh @@ -5,7 +5,7 @@ MUSL=${MUSL:-../musl} ( cd $MUSL/include - ctags -f /tmp/musl.tags -R -n -u --language-force=c --c-kinds=pxdstuv --fields=k --exclude='*.sh' . + ctags -f /tmp/musl.tags -R -n -u --language-force=c --c-kinds=pxdstuve --fields=k --exclude='*.sh' . # fix wchar_t bug of ctags awk '/typedef.* wchar_t/{print "wchar_t\tbits/alltypes.h\t" NR ";\"\tt"}' bits/alltypes.h >>/tmp/musl.tags diff --git a/tab_c11.html b/tab_c11.html index effa472..5c704e8 100644 --- a/tab_c11.html +++ b/tab_c11.html @@ -1,5 +1,5 @@

musl vs c11 api

-

commit

commit 5edbc6fe13e1e0f27e3d3a20f2582da476f74c4b
Date: 2014-09-10 12:47:55 -0400

add _DEFAULT_SOURCE feature profile as an alias for _BSD_SOURCE

as a result of commit ab8f6a6e42ff893041f7545a23e6d6a0edde07fb, this
definition is now equivalent to the actual "default profile" which
appears immediately below in features.h, and which defines both
_BSD_SOURCE and _XOPEN_SOURCE.

the intent of providing a _DEFAULT_SOURCE, which glibc also now
provides, is to give applications a way to "get back" the default
feature profile when it was lost either by compiler flags that inhibit
it (such as -std=c99) or by library-provided predefined macros (such
as -D_POSIX_C_SOURCE=200809L) which may inhibit exposure of features
that were otherwise visible by default and which the application may
need. without _DEFAULT_SOURCE, the application had encode knowledge of
a particular libc's defaults, and such knowledge was fragile and
subject to bitrot.

eventually the names _GNU_SOURCE and _BSD_SOURCE should be phased out
in favor of the more-descriptive and more-accurate _ALL_SOURCE and
_DEFAULT_SOURCE, leaving the old names as aliases but using the new
ones internally. however this is a more invasive change that would
require extensive regression testing, so it is deferred. +

commit

commit 00548408398ced546c540dab773ea66cea4fe1c2
Date: 2014-10-13 18:26:28 -0400

eliminate global waiters count in pthread_once

legend

(Annex K apis are excluded: -D__STDC_WANT_LIB_EXT1__=0 is assumed)

table

muslc11
statussymdeclnameheaderprotosection
  d static_assertassert.h B.1 Diagnostics @@ -581,7 +581,7 @@
 Tp raisesignal.hint raise(int sig);B.13 Signal handling
  d alignasstdalign.h B.14 Alignment
  d __alignas_is_definedstdalign.h B.14 Alignment -
  t t v v va_liststdarg.h B.15 Variable arguments +
  t v va_liststdarg.h B.15 Variable arguments
  d d va_argstdarg.htype va_arg(va_list ap, type);B.15 Variable arguments
  d d va_copystdarg.hvoid va_copy(va_list dest, va_list src);B.15 Variable arguments
  d d va_endstdarg.hvoid va_end(va_list ap);B.15 Variable arguments @@ -680,7 +680,7 @@
  t v max_align_tstddef.h B.18 Common definitions
  d d d d d d d d d d d d d d d d NULLstddef.h B.18 Common definitions
  v t size_tstddef.h B.18 Common definitions -
  t t wchar_tstddef.h B.18 Common definitions +
  t wchar_tstddef.h B.18 Common definitions
  d d offsetofstddef.hoffsetof(type, member-designator)B.18 Common definitions
  v t int8_tstdint.h B.19 Integer types
  v t int16_tstdint.h B.19 Integer types @@ -839,7 +839,7 @@
  t ldiv_tstdlib.h B.21 General utilities
  d EXIT_FAILUREstdlib.h B.21 General utilities
  d MB_CUR_MAXstdlib.h B.21 General utilities -
  t t wchar_tstdlib.h B.21 General utilities +
  t wchar_tstdlib.h B.21 General utilities
  t lldiv_tstdlib.h B.21 General utilities
  d EXIT_SUCCESSstdlib.h B.21 General utilities
  t div_tstdlib.h B.21 General utilities @@ -972,21 +972,21 @@
  d thread_localthreads.h B.25 Threads
  t once_flagthreads.h B.25 Threads
  d ONCE_FLAG_INITthreads.h B.25 Threads -
missing  mtx_plainthreads.h B.25 Threads +
  e mtx_plainthreads.h B.25 Threads
  d TSS_DTOR_ITERATIONSthreads.h B.25 Threads -
missing  mtx_recursivethreads.h B.25 Threads +
  e mtx_recursivethreads.h B.25 Threads
  t v cnd_tthreads.h B.25 Threads -
missing  mtx_timedthreads.h B.25 Threads +
  e mtx_timedthreads.h B.25 Threads
  t t thrd_tthreads.h B.25 Threads -
missing  thrd_timedoutthreads.h B.25 Threads +
  e thrd_timedoutthreads.h B.25 Threads
  t tss_tthreads.h B.25 Threads -
missing  thrd_successthreads.h B.25 Threads +
  e thrd_successthreads.h B.25 Threads
  t v mtx_tthreads.h B.25 Threads -
missing  thrd_busythreads.h B.25 Threads +
  e thrd_busythreads.h B.25 Threads
  t tss_dtor_tthreads.h B.25 Threads -
missing  thrd_errorthreads.h B.25 Threads +
  e thrd_errorthreads.h B.25 Threads
  t thrd_start_tthreads.h B.25 Threads -
missing  thrd_nomemthreads.h B.25 Threads +
  e thrd_nomemthreads.h B.25 Threads
 Tp call_oncethreads.hvoid call_once(once_flag *flag, void (*func)(void));B.25 Threads
 Tp cnd_broadcastthreads.hint cnd_broadcast(cnd_t *cond);B.25 Threads
 Tp cnd_destroythreads.hvoid cnd_destroy(cnd_t *cond);B.25 Threads @@ -1038,7 +1038,7 @@
missing  c16rtombuchar.hsize_t c16rtomb(char * restrict s, char16_t c16, mbstate_t * restrict ps);B.27 Unicode utilities
missing  mbrtoc32uchar.hsize_t mbrtoc32(char32_t * restrict pc32, const char * restrict s, size_t n, mbstate_t * restrict ps);B.27 Unicode utilities
missing  c32rtombuchar.hsize_t c32rtomb(char * restrict s, char32_t c32, mbstate_t * restrict ps);B.27 Unicode utilities -
  t t wchar_twchar.h B.28 Extended multibyte/wide character utilities +
  t wchar_twchar.h B.28 Extended multibyte/wide character utilities
  t v wint_twchar.h B.28 Extended multibyte/wide character utilities
  d d d d WCHAR_MAXwchar.h B.28 Extended multibyte/wide character utilities
  v t size_twchar.h B.28 Extended multibyte/wide character utilities @@ -1129,4 +1129,4 @@
 Tp towctranswctype.hwint_t towctrans(wint_t wc, wctrans_t desc);B.29 Wide character classification and mapping utilities
 Tp wctranswctype.hwctrans_t wctrans(const char *property);B.29 Wide character classification and mapping utilities
-

stats

+

stats

diff --git a/tab_c11.sh b/tab_c11.sh index ed9ee5e..90c7249 100755 --- a/tab_c11.sh +++ b/tab_c11.sh @@ -64,7 +64,7 @@ BEGIN { } else if (sym[$1]) { s = s "nodecl" nodecl++ - } else if (kind[$1] ~ /[dtsu]/) { + } else if (kind[$1] ~ /[dtsue]/) { s = s " " } else if (kind[$1]) { s = s "nosym" diff --git a/tab_c99.html b/tab_c99.html index 27ef5df..2c3a507 100644 --- a/tab_c99.html +++ b/tab_c99.html @@ -1,5 +1,5 @@

musl vs c99 api

-

commit

commit 5edbc6fe13e1e0f27e3d3a20f2582da476f74c4b
Date: 2014-09-10 12:47:55 -0400

add _DEFAULT_SOURCE feature profile as an alias for _BSD_SOURCE

as a result of commit ab8f6a6e42ff893041f7545a23e6d6a0edde07fb, this
definition is now equivalent to the actual "default profile" which
appears immediately below in features.h, and which defines both
_BSD_SOURCE and _XOPEN_SOURCE.

the intent of providing a _DEFAULT_SOURCE, which glibc also now
provides, is to give applications a way to "get back" the default
feature profile when it was lost either by compiler flags that inhibit
it (such as -std=c99) or by library-provided predefined macros (such
as -D_POSIX_C_SOURCE=200809L) which may inhibit exposure of features
that were otherwise visible by default and which the application may
need. without _DEFAULT_SOURCE, the application had encode knowledge of
a particular libc's defaults, and such knowledge was fragile and
subject to bitrot.

eventually the names _GNU_SOURCE and _BSD_SOURCE should be phased out
in favor of the more-descriptive and more-accurate _ALL_SOURCE and
_DEFAULT_SOURCE, leaving the old names as aliases but using the new
ones internally. however this is a more invasive change that would
require extensive regression testing, so it is deferred. +

commit

commit 00548408398ced546c540dab773ea66cea4fe1c2
Date: 2014-10-13 18:26:28 -0400

eliminate global waiters count in pthread_once

legend

table

muslc99
statussymdeclnameheaderprotosection
  d d d assertassert.hvoid assert(scalar expression);B.1 Diagnostics @@ -566,7 +566,7 @@
  d SIGSEGVsignal.h B.13 Signal handling
 Tp signalsignal.hvoid (*signal(int sig, void (*func)(int)))(int);B.13 Signal handling
 Tp raisesignal.hint raise(int sig);B.13 Signal handling -
  t t v v va_liststdarg.h B.14 Variable arguments +
  t v va_liststdarg.h B.14 Variable arguments
  d d va_argstdarg.htype va_arg(va_list ap, type);B.14 Variable arguments
  d d va_copystdarg.hvoid va_copy(va_list dest, va_list src);B.14 Variable arguments
  d d va_endstdarg.hvoid va_end(va_list ap);B.14 Variable arguments @@ -577,7 +577,7 @@
  d __bool_true_false_are_definedstdbool.h B.15 Boolean type and values
  v t ptrdiff_tstddef.h B.16 Common definitions
  v t size_tstddef.h B.16 Common definitions -
  t t wchar_tstddef.h B.16 Common definitions +
  t wchar_tstddef.h B.16 Common definitions
  d d d d d d d d d d d d d d d d NULLstddef.h B.16 Common definitions
  d d offsetofstddef.hoffsetof(type, member-designator)B.16 Common definitions
  v t int8_tstdint.h B.17 Integer types @@ -738,7 +738,7 @@
  t ldiv_tstdlib.h B.19 General utilities
  d EXIT_FAILUREstdlib.h B.19 General utilities
  d MB_CUR_MAXstdlib.h B.19 General utilities -
  t t wchar_tstdlib.h B.19 General utilities +
  t wchar_tstdlib.h B.19 General utilities
  t lldiv_tstdlib.h B.19 General utilities
  d EXIT_SUCCESSstdlib.h B.19 General utilities
  t div_tstdlib.h B.19 General utilities @@ -879,7 +879,7 @@
 Tp gmtimetime.hstruct tm *gmtime(const time_t *timer);B.22 Date and time
 Tp localtimetime.hstruct tm *localtime(const time_t *timer);B.22 Date and time
 Tp strftimetime.hsize_t strftime(char * restrict s, size_t maxsize, const char * restrict format, const struct tm * restrict timeptr);B.22 Date and time -
  t t wchar_twchar.h B.23 Extended multibyte/wide character utilities +
  t wchar_twchar.h B.23 Extended multibyte/wide character utilities
  t v wint_twchar.h B.23 Extended multibyte/wide character utilities
  d d d d WCHAR_MAXwchar.h B.23 Extended multibyte/wide character utilities
  v t size_twchar.h B.23 Extended multibyte/wide character utilities diff --git a/tab_c99.sh b/tab_c99.sh index 7d8e4fd..3974f24 100755 --- a/tab_c99.sh +++ b/tab_c99.sh @@ -63,7 +63,7 @@ BEGIN { } else if (sym[$1]) { s = s "nodecl" nodecl++ - } else if (kind[$1] ~ /[dtsu]/) { + } else if (kind[$1] ~ /[dtsue]/) { s = s " " } else if (kind[$1]) { s = s "nosym" diff --git a/tab_posix.html b/tab_posix.html index 83ce849..53b7589 100644 --- a/tab_posix.html +++ b/tab_posix.html @@ -1,5 +1,5 @@

musl vs posix api

-

commit

commit 5edbc6fe13e1e0f27e3d3a20f2582da476f74c4b
Date: 2014-09-10 12:47:55 -0400

add _DEFAULT_SOURCE feature profile as an alias for _BSD_SOURCE

as a result of commit ab8f6a6e42ff893041f7545a23e6d6a0edde07fb, this
definition is now equivalent to the actual "default profile" which
appears immediately below in features.h, and which defines both
_BSD_SOURCE and _XOPEN_SOURCE.

the intent of providing a _DEFAULT_SOURCE, which glibc also now
provides, is to give applications a way to "get back" the default
feature profile when it was lost either by compiler flags that inhibit
it (such as -std=c99) or by library-provided predefined macros (such
as -D_POSIX_C_SOURCE=200809L) which may inhibit exposure of features
that were otherwise visible by default and which the application may
need. without _DEFAULT_SOURCE, the application had encode knowledge of
a particular libc's defaults, and such knowledge was fragile and
subject to bitrot.

eventually the names _GNU_SOURCE and _BSD_SOURCE should be phased out
in favor of the more-descriptive and more-accurate _ALL_SOURCE and
_DEFAULT_SOURCE, leaving the old names as aliases but using the new
ones internally. however this is a more invasive change that would
require extensive regression testing, so it is deferred. +

commit

commit 00548408398ced546c540dab773ea66cea4fe1c2
Date: 2014-10-13 18:26:28 -0400

eliminate global waiters count in pthread_once

legend

  • status: musl implementation status summary
    • (empty) - implemented
    • nosym - prototype found in include files (see decl) but not in libc.a (see sym)
    • nodecl - symbol is in libc.a but not declared in a public header
    • missing - neither in include files (see decl) nor in libc.a (see sym)
  • sym: external symbol kind as found by `nm libc.a` (symbol kind only reported once)
    • C - symbol is common (uninitialized data)
    • D - symbol is in the initialized data section
    • R - symbol is in the read only data section
    • T - symbol is in the text section
    • V - weak object
    • W - weak symbol
  • decl: kind of declaration as found by `ctags -R include` (every occurance is reported)
    • d - macro definition
    • p - function prototype
    • x - external and forward variable declaration

(STREAMS and posix_trace* apis are excluded)

table

muslposix
statussymdeclnameheaderoptiondesc
  d FD_CLR sys/select.h pselect, select - synchronous I/O multiplexing @@ -508,7 +508,7 @@
 Tp localeconv locale.h localeconv - return locale-specific information
 Tp localtime time.h localtime, localtime_r - convert a time value to a broken-down local time
 Wp localtime_r time.h CXlocaltime, localtime_r - convert a time value to a broken-down local time -
 Tp p lockf unistd.h XSIlockf - record locking on files +
 Tp p lockf unistd.h XSIlockf - record locking on files
 Tp d d log math.h log, logf, logl - natural logarithm function
 Tp d d log10 math.h log10, log10f, log10l - base 10 logarithm function
 Tp log10f math.h log10, log10f, log10l - base 10 logarithm function -- 2.20.1