diff --git a/libc/docs/check.rst b/libc/docs/check.rst new file mode 100644 --- /dev/null +++ b/libc/docs/check.rst @@ -0,0 +1,6 @@ +.. role:: raw-html(raw) + :format: html + +.. |check| replace:: :raw-html:`✅` + + diff --git a/libc/docs/date_and_time.rst b/libc/docs/date_and_time.rst --- a/libc/docs/date_and_time.rst +++ b/libc/docs/date_and_time.rst @@ -1,41 +1,54 @@ -============= -Date and Time -============= +======================= +Date and Time Functions +======================= - ============= === - Function_Name C99 - ============= === - clock - mktime ✅ - time - asctime ✅ - ctime - gmtime ✅ - localtime - strftime - ============= === +.. include:: check.rst -=================== ===== +--------------- +Source location +--------------- + +- The main source for string functions is located at: + ``libc/src/time`` + +--------------------- +Implementation Status +--------------------- + +============= ======= +Function_Name C99 +============= ======= +clock +mktime |check| +time +asctime |check| +ctime +gmtime |check| +localtime +strftime +============= ======= + +=================== ======= Function_Name POSIX -=================== ===== -asctime ✅ -asctime_r ✅ +=================== ======= +asctime |check| +asctime_r |check| clock clock_getcpuclockid clock_getres -clock_gettime ✅ +clock_gettime |check| clock_nanosleep clock_settime ctime ctime_r difftime getdate -gmtime ✅ -gmtime_r ✅ +gmtime |check| +gmtime_r |check| localtime localtime_r -mktime ✅ -nanosleep ✅ +mktime |check| +nanosleep |check| strftime strptime time @@ -45,5 +58,5 @@ timer_getoverrun timer_settime tzset -=================== ===== +=================== ======= diff --git a/libc/docs/math.rst b/libc/docs/math.rst --- a/libc/docs/math.rst +++ b/libc/docs/math.rst @@ -1,21 +1,19 @@ -=========================== -Math Functions in LLVM-libc -=========================== +============== +Math Functions +============== -.. role:: raw-html(raw) - :format: html - -.. |check| replace:: :raw-html:`✅` +.. include:: check.rst .. contents:: Table of Contents :depth: 4 :local: -Summary -======= +Source Locations +================ -* This document tracks the status of the implementation of math functions in - LLVM libc. +- The main source is located at: `libc/src/math `_. +- The tests are located at: `libc/test/src/math `_. +- The floating point utilities are located at: `libc/src/__support/FPUtil `_. Implementation Requirements / Goals =================================== @@ -48,13 +46,6 @@ platforms. -Source Locations -================ - -- The main source is located at: `libc/src/math `_. -- The tests are located at: `libc/test/src/math `_. -- The floating point utilities are located at: `libc/src/__support/FPUtil `_. - Add a new math function to LLVM libc ==================================== diff --git a/libc/docs/stdio.rst b/libc/docs/stdio.rst --- a/libc/docs/stdio.rst +++ b/libc/docs/stdio.rst @@ -1,13 +1,8 @@ -============================= -StdIO Functions in LLVM-libc -============================= - -------- -Summary -------- +=============== +StdIO Functions +=============== -This document tracks the status of the implementation of stdio functions in LLVM -Libc. +.. include:: check.rst --------------- Source location @@ -44,23 +39,23 @@ ============= ========= Function_Name Available ============= ========= -fopen YES +fopen |check| freopen -fclose YES -fflush YES +fclose |check| +fflush |check| setbuf setvbuf ftell fgetpos -fseek YES +fseek |check| fsetpos rewind tmpfile -clearerr YES -feof YES -ferror YES -flockfile YES -funlockfile YES +clearerr |check| +feof |check| +ferror |check| +flockfile |check| +funlockfile |check| ============= ========= Operations on system files @@ -72,7 +67,7 @@ ============= ========= Function_Name Available ============= ========= -remove YES +remove |check| rename tmpnam ============= ========= @@ -89,10 +84,10 @@ (f)getc fgets getchar -fread YES +fread |check| (f)putc -(f)puts YES +(f)puts |check| putchar -fwrite YES +fwrite |check| ungetc ============= ========= diff --git a/libc/docs/strings.rst b/libc/docs/strings.rst --- a/libc/docs/strings.rst +++ b/libc/docs/strings.rst @@ -1,14 +1,8 @@ -============================= -String Functions in LLVM-libc -============================= +================ +String Functions +================ -------- -Summary -------- - -This site tracks the status of the implementation of string functions in LLVM -Libc. This includes a few extra functions that are not in string.h, such as -functions converting strings to numbers. +.. include:: check.rst --------------- Source location @@ -40,12 +34,12 @@ ============= ========= Function Name Available ============= ========= -bzero YES -bcmp YES -memcpy YES -memset YES -memcmp YES -memmove YES +bzero |check| +bcmp |check| +memcpy |check| +memset |check| +memcmp |check| +memmove |check| ============= ========= @@ -55,10 +49,10 @@ ============= ========= Function Name Available ============= ========= -memchr YES -memrchr YES -memccpy YES -mempcpy YES +memchr |check| +memrchr |check| +memccpy |check| +mempcpy |check| ============= ========= String Memory Functions @@ -67,14 +61,14 @@ ============= ========= Function Name Available ============= ========= -stpcpy YES -stpncpy YES -strcpy YES -strncpy YES -strcat YES -strncat YES -strdup YES -strndup YES +stpcpy |check| +stpncpy |check| +strcpy |check| +strncpy |check| +strcat |check| +strncat |check| +strdup |check| +strndup |check| ============= ========= String Examination Functions @@ -83,18 +77,18 @@ ============= ========= Function Name Available ============= ========= -strlen YES -strnlen YES -strcmp YES -strncmp YES -strchr YES -strrchr YES -strspn YES -strcspn YES -strpbrk YES -strstr YES -strtok YES -strtok_r YES +strlen |check| +strnlen |check| +strcmp |check| +strncmp |check| +strchr |check| +strrchr |check| +strspn |check| +strcspn |check| +strpbrk |check| +strstr |check| +strtok |check| +strtok_r |check| ============= ========= String Conversion Functions @@ -119,19 +113,19 @@ ============= ========= Function Name Available ============= ========= -atof YES -atoi YES -atol YES -atoll YES -strtol YES -strtoll YES -strtoul YES -strtoull YES -strtof YES -strtod YES -strtold YES -strtoimax YES -strtoumax YES +atof |check| +atoi |check| +atol |check| +atoll |check| +strtol |check| +strtoll |check| +strtoul |check| +strtoull |check| +strtof |check| +strtod |check| +strtold |check| +strtoimax |check| +strtoumax |check| ============= ========= String Error Functions