From dd3b492bc87a867ddfd2e16b45f3b920547d0e6b Mon Sep 17 00:00:00 2001 From: nsz Date: Fri, 22 Jul 2011 18:06:24 +0200 Subject: [PATCH] update tables (getnetby*) --- tab_c99.html | 2 +- tab_posix.html | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tab_c99.html b/tab_c99.html index 933cc6b..7a54c89 100644 --- a/tab_c99.html +++ b/tab_c99.html @@ -1,5 +1,5 @@

musl vs c99 api

-

commit

commit af3d5405b8d7b00c121643d7a0c0b9bb31cc7139
Date: Wed Jun 29 00:42:42 2011 -0400

work around linux bug in mprotect

per POSIX: The mprotect() function shall change the access protections
to be that specified by prot for those whole pages containing any part
of the address space of the process starting at address addr and
continuing for len bytes.

on the other hand, linux mprotect fails with EINVAL if the base
address and/or length is not page-aligned, so we have to align them
before making the syscall. +

commit

commit c0fe5b9da9f98b83262717c0090817f1fbb3d8a0
Date: Fri Jul 22 00:25:56 2011 -0400

check for fd exhaustion in forkpty

we cannot report failure after forking, so the idea is to ensure prior
to fork that fd 0,1,2 exist. this will prevent dup2 from possibly
hitting a resource limit and failing in the child process. fcntl
rather than dup2 is used prior to forking to avoid race conditions.

legend

table

muslc99
statussymdeclnameheaderprotosection
missing  NDEBUGassert.h B.1 Diagnostics diff --git a/tab_posix.html b/tab_posix.html index 71cd63a..b4be667 100644 --- a/tab_posix.html +++ b/tab_posix.html @@ -1,5 +1,5 @@

musl vs posix api

-

commit

commit af3d5405b8d7b00c121643d7a0c0b9bb31cc7139
Date: Wed Jun 29 00:42:42 2011 -0400

work around linux bug in mprotect

per POSIX: The mprotect() function shall change the access protections
to be that specified by prot for those whole pages containing any part
of the address space of the process starting at address addr and
continuing for len bytes.

on the other hand, linux mprotect fails with EINVAL if the base
address and/or length is not page-aligned, so we have to align them
before making the syscall. +

commit

commit c0fe5b9da9f98b83262717c0090817f1fbb3d8a0
Date: Fri Jul 22 00:25:56 2011 -0400

check for fd exhaustion in forkpty

we cannot report failure after forking, so the idea is to ensure prior
to fork that fd 0,1,2 exist. this will prevent dup2 from possibly
hitting a resource limit and failing in the child process. fcntl
rather than dup2 is used prior to forking to avoid race conditions.

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

(any option mark found in the synopsis of a manual is listed in the option column, this is often wrong)

(STREAMS and posix_trace* api is excluded)

table

muslposix
statussymdeclnameheaderoptiondesc
  d FD_CLR sys_select.h pselect, select - synchronous I/O multiplexing @@ -347,8 +347,8 @@
 Tp getlogin unistd.h getlogin, getlogin_r - get login name
 Tp getlogin_r unistd.h getlogin, getlogin_r - get login name
 Tp getnameinfo sys_socket.h netdb.h getnameinfo - get name information -
nosym p getnetbyaddr netdb.h endnetent, getnetbyaddr, getnetbyname, getnetent, setnetent - network database functions -
nosym p getnetbyname netdb.h endnetent, getnetbyaddr, getnetbyname, getnetent, setnetent - network database functions +
 Tp getnetbyaddr netdb.h endnetent, getnetbyaddr, getnetbyname, getnetent, setnetent - network database functions +
 Tp getnetbyname netdb.h endnetent, getnetbyaddr, getnetbyname, getnetent, setnetent - network database functions
 Wp getnetent netdb.h endnetent, getnetbyaddr, getnetbyname, getnetent, setnetent - network database functions
 Tp p getopt unistd.h getopt, optarg, opterr, optind, optopt - command option parsing
 Tp getpeername sys_socket.h getpeername - get the name of the peer socket @@ -1136,4 +1136,4 @@
nosym p y1 math.h XSIy0, y1, yn - Bessel functions of the second kind
nosym p yn math.h XSIy0, y1, yn - Bessel functions of the second kind
-

stats

  • missing: 137
  • nosym: 125
  • nodecl: 3
+

stats

  • missing: 137
  • nosym: 123
  • nodecl: 3
-- 2.20.1