Compare commits

...

2 Commits

Author SHA1 Message Date
Dave Murphy
5ae950ae8b devkitPPC: r45.2 2024-04-28 12:44:28 +01:00
Dave Murphy
c62e968c1e devkitPPC: newlib tweaks 2024-04-28 12:42:29 +01:00
4 changed files with 454059 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# devkitARM release 63 # devkitARM release 63
# devkitPPC release 45.1 # devkitPPC release 45.2
# devkitA64 release 25.1 # devkitA64 release 25.1
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------

File diff suppressed because it is too large Load Diff

View File

@@ -6475,10 +6475,10 @@ index 000000000..d15eab89d
+ +
diff --git a/libgloss/libsysbase/dirent.c b/libgloss/libsysbase/dirent.c diff --git a/libgloss/libsysbase/dirent.c b/libgloss/libsysbase/dirent.c
new file mode 100644 new file mode 100644
index 000000000..a8dc84739 index 000000000..4dfeabd71
--- /dev/null --- /dev/null
+++ b/libgloss/libsysbase/dirent.c +++ b/libgloss/libsysbase/dirent.c
@@ -0,0 +1,240 @@ @@ -0,0 +1,241 @@
+#include <malloc.h> +#include <malloc.h>
+#include <errno.h> +#include <errno.h>
+#include <string.h> +#include <string.h>
@@ -6645,6 +6645,7 @@ index 000000000..a8dc84739
+ // errno == ENONENT set by dirnext means it's end of directory + // errno == ENONENT set by dirnext means it's end of directory
+ // But readdir should not touch errno in case of dir end + // But readdir should not touch errno in case of dir end
+ res = 0; + res = 0;
+ errno = 0;
+ } + }
+ return res; + return res;
+ } + }
@@ -9375,7 +9376,7 @@ index a7d4bc52d..6b06ce5a5 100644
#ifdef __rtems__ #ifdef __rtems__
diff --git a/newlib/libc/include/sys/iosupport.h b/newlib/libc/include/sys/iosupport.h diff --git a/newlib/libc/include/sys/iosupport.h b/newlib/libc/include/sys/iosupport.h
new file mode 100644 new file mode 100644
index 000000000..287fadaaa index 000000000..a38b71599
--- /dev/null --- /dev/null
+++ b/newlib/libc/include/sys/iosupport.h +++ b/newlib/libc/include/sys/iosupport.h
@@ -0,0 +1,127 @@ @@ -0,0 +1,127 @@
@@ -9448,7 +9449,7 @@ index 000000000..287fadaaa
+ int (*lstat_r)(struct _reent *r, const char *file, struct stat *st); + int (*lstat_r)(struct _reent *r, const char *file, struct stat *st);
+ int (*utimes_r)(struct _reent *r, const char *filename, const struct timeval times[2]); + int (*utimes_r)(struct _reent *r, const char *filename, const struct timeval times[2]);
+ +
+ long (*fpathconf_r)(struct _reent *r, int fd, int name); + long (*fpathconf_r)(struct _reent *r, void *fd, int name);
+ long (*pathconf_r)(struct _reent *r, const char *path, int name); + long (*pathconf_r)(struct _reent *r, const char *path, int name);
+ +
+ int (*symlink_r)(struct _reent *r, const char *target, const char *linkpath); + int (*symlink_r)(struct _reent *r, const char *target, const char *linkpath);

View File

@@ -101,7 +101,7 @@ then
--with-newlib \ --with-newlib \
--with-headers=../../newlib-$NEWLIB_VER/newlib/libc/include \ --with-headers=../../newlib-$NEWLIB_VER/newlib/libc/include \
--prefix=$prefix \ --prefix=$prefix \
--with-bugurl="https://github.com/devkitpro/buildscripts/issues" --with-pkgversion="devkitPPC release 45.1" \ --with-bugurl="https://github.com/devkitpro/buildscripts/issues" --with-pkgversion="devkitPPC release 45.2" \
$CROSS_PARAMS \ $CROSS_PARAMS \
$CROSS_GCC_PARAMS \ $CROSS_GCC_PARAMS \
$EXTRA_GCC_PARAMS \ $EXTRA_GCC_PARAMS \