Commit Graph

176 Commits

Author SHA1 Message Date
Sylvain PILLOT aee725a3d6 cleaning of the struct __scanf_input 2023-03-09 18:11:11 +01:00
Sylvain PILLOT 4d7787db01 bug correction for the case ' %[^\n]' 2023-03-08 22:40:39 +01:00
Sylvain PILLOT 492b074759 Merge remote-tracking branch 'upstream/dev' into dev 2023-03-08 20:47:56 +01:00
Sylvain PILLOT 48a5b7696f made some cleaning in scanf code 2023-03-06 22:16:09 +01:00
Sylvain PILLOT cd817d6e55 added support for %j % z and %t modifiers 2023-03-05 20:30:56 +01:00
Sylvain PILLOT 2b8bdd0453 some cleaning and corrected one small bug : was counbting a skipped value in ther number of correct returns :( 2023-03-04 16:30:07 +01:00
Sylvain PILLOT 5400182d05 working and tested scanf functions all done except j/z/t modifiers 2023-03-04 13:35:43 +01:00
Sylvain PILLOT 9e99da0dff corrected a bug with %u (use_unsigned needs to be set to false in __strto_int) 2023-02-28 23:06:35 +01:00
Sylvain PILLOT da1d26e6cc verified %c and %s 2023-02-25 21:52:32 +01:00
Sylvain PILLOT 7b7b7a1ed1 rewrite of scanf() with an improved structure + accurate verification 2023-02-24 22:07:09 +01:00
Sylvain PILLOT af4692fe0b skip parameter 2023-02-21 22:36:56 +01:00
Sylvain PILLOT 00392b42a1 cleaning of comments 2023-02-19 21:55:59 +01:00
Sylvain PILLOT 2bf06360c0 added user maximum length support to all format in scanf() 2023-02-19 21:42:39 +01:00
Sylvain PILLOT 4246968849 added support for length modifier hh h l ll L on interger / floating points in scanf() 2023-02-19 15:04:18 +01:00
Sylvain PILLOT ffe6e8b21a added %p (pointers) and %n (char read so far) support into XYscanf() 2023-02-19 10:04:34 +01:00
Sylvain PILLOT f21cc97bb5 added string input with scanf() 2023-02-18 21:54:57 +01:00
Sylvain PILLOT 4639a1e9ce added multiple char input with scanf() 2023-02-18 21:14:26 +01:00
Sylvain PILLOT 3ed385b29f corrected wrong char input due to absence of __scanf_end() 2023-02-17 22:32:13 +01:00
Sylvain PILLOT 0e05fe1d67 scanf working for integers and chars - bug on floats 2023-02-17 21:51:02 +01:00
Sylvain PILLOT 91f9764a6c first trial to add XXscanf() into fxlibc 2023-02-17 20:24:01 +01:00
Yann MAGNIN e82160c78c add shared lib generation support for Vhex 2023-01-08 16:07:43 +01:00
Yann MAGNIN 9ff2574e28 update vxSDK integration 2023-01-08 13:11:13 +01:00
Lephenixnoir 8d7d37cd77
dso: dynamically allocate destructor table
This saves static memory on mono targets where it's scarce.
2023-01-01 19:23:08 +01:00
Lephenixnoir d6432a9af2
alloca: provide <alloca.h> 2022-10-30 11:19:26 +01:00
Lephenixnoir 4358a16b92
dso, stdlib: __cxa_atexit(), __dso_handle, atexit() (TEST) 2022-09-07 21:03:53 +02:00
Lephenixnoir 547a52737d
stdlib: add fileno (DONE) 2022-09-07 21:02:01 +02:00
Lephenixnoir 2c17742038
stdlib: scanf-friendly strto* functions 2022-08-22 19:01:09 +02:00
Lephenixnoir a7ae52b4c4
time: fix strftime being called strftime2 2022-08-22 15:21:02 +02:00
Lephenixnoir ddec761f61
bump version to 1.4.4 2022-08-21 20:09:54 +02:00
Lephenixnoir ca6c39bf56
meta: update build instructions 2022-08-21 17:11:28 +02:00
Lephenixnoir 4b61daa602
stdio: use non-zero values for SEEK_*
libstdc++ uses 0, SEEK_CUR, SEEK_END in an internal enumeration. By
having SEEK_CUR=0 we would have a duplicate case.
2022-08-19 15:49:54 +02:00
Lephenixnoir 8231557ff5
add declarations for unsupported functions for libstdc++
So that it compiles - it won't link but we can leave that for later.
2022-08-19 15:49:52 +02:00
Lephenixnoir 714e1cf605
signal: make sig_atomic_t a normal int
Using the _Atomic types is technically more accurate, but equivalent in
practice (glibc uses a normal int) and a bit of a headache for C++
targets since _Atomic is replaced with std::atomic.
2022-08-12 22:46:56 +02:00
Lephenixnoir ed52c1d7c2
sys/mman: fix missing include 2022-08-12 22:46:46 +02:00
Lephenixnoir 143029a837
stdint: do not rely on -ffreestanding
GCC's default stdint.h only defaults to stdint-gcc.h, which we want to
use, when using -ffreestanding. Make our wishes explicit to avoid
needing that flag.
2022-08-12 22:43:37 +02:00
Lephenixnoir 31ee6fdbee
cmake: remove the OpenLibm include path workaround
This is no longer needed when the fxSDK sysroot is in use; and anyway no
2022-08-12 22:40:20 +02:00
Lephenixnoir b38dd3f894
cmake: use *dynamic* fxSDK compiler path as default for gint
Previously FXSDK_COMPILER_INSTALL would be stored as the install prefix.
However, this prefix is subject to unannounced changes when the compiler
version is upgraded without reconfiguring the fxlibc, which happens in
the GiteaPC workflow.

This commit avoids the use of CMAKE_INSTALL_PREFIX when using gint with
no specified prefix, and instead uses another cached variable which
leaves the prefix to be dynamically resolved based on the uncached
variable FXSDK_COMPILER_INSTALL, like most repositories do (eg. gint).
We need the cached indicator because we frequently reconfigure and
CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT is not persistent.
2022-08-12 22:39:53 +02:00
Lephenixnoir 89c6c39405
stdio: support for UTF-8 %lc in printf() 2022-08-01 11:27:24 +01:00
Yann MAGNIN e8779145c2 fix vhex target folders 2022-07-30 18:55:40 +02:00
Yann MAGNIN ed77a97547 Merge branch 'dev' of https://gitea.planet-casio.com/Vhex-Kernel-Core/fxlibc into dev 2022-07-30 17:57:55 +02:00
Yann MAGNIN bdf9566723 fxlibc - v1.4.3 : fix vhex missing headers
@update
> CMakeLists.txt
 | remove the generation of the shared version of the fxlibc (deprecated, unused)
> include/errno
 | add some error macros needed in vhex
> src/string/strerror
 | add EINTR support
 | add EAGAIN support
 | add ENOMEDIUM support
 | add EMEDIUMTYPE support

@fix
> include/target/vhex
 | add missing headers
2022-07-30 17:57:08 +02:00
Lephenixnoir 26d5b5d9ab
meta: chase the very last __restrict__ for C++ compatibility 2022-06-29 10:52:48 +01:00
Yann MAGNIN 619afe25da fxlibc - v1.4.2 : fix reallocarray() + remove old Vhex/Casiowin sources
@update
> CMakeLists.txt
  | remove casiowin-* target (unused)
  | remove x86-generic target (unused)
  | update files location
  | remove old vhex sources files (deprecated, unused)
> src/posix
  | remove this folder
> src/libc
  | move its content to src/
  | remove thread module
> src/stdlib/reallocarray
  | check if the multiplication overflow failed
  | set appropriate errno value if multiplication failed
2022-06-03 16:25:31 +02:00
Yann MAGNIN 996b2b8ded fxlibc - v1.4.1 : update Vhex stdlib
@update
> malloc  : do not use syscall, involve kmalloc
> realloc : do not use syscall, involve krealloc
> free    : do not use syscall, involve kfree

@fix
> _Exit : remove syscall
2022-05-14 11:49:08 +02:00
Lephenixnoir d50e44c563
C++ __restrict__, update STATUS, minor formatting 2022-03-31 10:12:01 +01:00
Lephenixnoir 94faa6cbea Merge pull request 'Add getline(3) & getdelim(3)' (#2) from Alice/fxlibc:dev into dev
Reviewed-on: https://gitea.planet-casio.com/Vhex-Kernel-Core/fxlibc/pulls/2
2022-03-31 11:11:26 +02:00
Alice Rozengarden 3f5989ceab Add getline(3) & getdelim(3) 2022-03-30 23:49:44 +02:00
Lephenixnoir 3c29639988
string: fix a bug in SuperH memset 2022-03-26 15:19:15 +00:00
Lephenixnoir 4d464bde01
bump version to 1.4.0 2022-03-19 19:29:17 +00:00
Lephenixnoir 809238e5b8
errno: add EINTR and EAGAIN 2022-02-24 12:48:51 +01:00