Genode Packages collection https://git.sr.ht/~ehmry/genodepkgs/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

libc.patch 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. commit f3a7fb548c8600a6e290d306b933725ebc546cd0
  2. Author: Emery Hemingway <ehmry@posteo.net>
  3. Date: Wed May 6 04:38:35 2020 +0530
  4. libc: add siginterrupt dummy
  5. diff --git a/repos/libports/src/lib/libc/signal.cc b/repos/libports/src/lib/libc/signal.cc
  6. index dc9af2d443..784257c48e 100644
  7. --- a/repos/libports/src/lib/libc/signal.cc
  8. +++ b/repos/libports/src/lib/libc/signal.cc
  9. @@ -131,6 +131,9 @@ extern "C" int sigaction(int signum, const struct sigaction *act, struct sigacti
  10. }
  11. +extern "C" int siginterrupt(int sig, int flag) { return 0; };
  12. +
  13. +
  14. extern "C" int _sigaction(int, const struct sigaction *, struct sigaction *) __attribute__((weak, alias("sigaction")));
  15. extern "C" int __sys_sigaction(int, const struct sigaction *, struct sigaction *) __attribute__((weak, alias("sigaction")));
  16. extern "C" int __libc_sigaction(int, const struct sigaction *, struct sigaction *) __attribute__((weak, alias("sigaction")));
  17. commit 65244c99c250767922b9afca9663ddcb7a7753f8
  18. Author: Emery Hemingway <ehmry@posteo.net>
  19. Date: Wed May 6 04:59:56 2020 +0530
  20. libc: add upstream mbsinit
  21. diff --git a/repos/libports/lib/mk/libc-locale.mk b/repos/libports/lib/mk/libc-locale.mk
  22. index 8e75e59589..2bb98b1456 100644
  23. --- a/repos/libports/lib/mk/libc-locale.mk
  24. +++ b/repos/libports/lib/mk/libc-locale.mk
  25. @@ -6,7 +6,7 @@ CC_OPT += -D_Thread_local=""
  26. FILTER_OUT = \
  27. c16rtomb.c c32rtomb_iconv.c mbrtoc16_iconv.c mbrtoc32_iconv.c \
  28. setlocale.c xlocale.c setrunelocale.c \
  29. - ascii.c big5.c euc.co gb18030.c gb2312.c gbk.c mbsinit.c mskanji.c utf8.c \
  30. + ascii.c big5.c euc.co gb18030.c gb2312.c gbk.c mskanji.c utf8.c \
  31. SRC_C = $(filter-out $(FILTER_OUT),$(notdir $(wildcard $(LIBC_LOCALE_DIR)/*.c)))
  32. commit 81fc78f8e0ac66a7275e149f7f7fdc5f4f1f2979
  33. Author: Emery Hemingway <ehmry@posteo.net>
  34. Date: Wed May 27 16:35:16 2020 +0530
  35. libc: add mlock and munlock dummies
  36. diff --git a/repos/libports/src/lib/libc/dummies.cc b/repos/libports/src/lib/libc/dummies.cc
  37. index 37c2c83f89..bc2f15a90a 100644
  38. --- a/repos/libports/src/lib/libc/dummies.cc
  39. +++ b/repos/libports/src/lib/libc/dummies.cc
  40. @@ -221,5 +221,15 @@ int __attribute__((weak)) madvise(void *addr, size_t length, int advice)
  41. const struct res_sym __p_type_syms[] = { };
  42. +#define DUMMY_EPERM(ret_type, ret_val, name, args) __attribute__((weak)) \
  43. +ret_type name args \
  44. +{ \
  45. + errno = EPERM; \
  46. + return ret_val; \
  47. +}
  48. +
  49. +DUMMY_EPERM(int, -1, mlock, (const void *, size_t));
  50. +DUMMY_EPERM(int, -1, munlock, (const void *, size_t));
  51. +
  52. } /* extern "C" */
  53. commit f45e11626aca92be04bc9c8ed74f010ff62862dd
  54. Author: Emery Hemingway <ehmry@posteo.net>
  55. Date: Fri May 29 09:26:50 2020 +0530
  56. libc: return 0 from getpgrp and getppid dummies
  57. diff --git a/repos/libports/src/lib/libc/dummies.cc b/repos/libports/src/lib/libc/dummies.cc
  58. index 150640ddf3..e511897600 100644
  59. --- a/repos/libports/src/lib/libc/dummies.cc
  60. +++ b/repos/libports/src/lib/libc/dummies.cc
  61. @@ -109,8 +109,8 @@ DUMMY(char *, 0, _getlogin, (void))
  62. DUMMY(int , -1, getnameinfo, (const sockaddr *, socklen_t, char *, size_t, char *, size_t, int))
  63. DUMMY(struct servent *, 0, getservbyname, (const char *, const char *))
  64. DUMMY(int , -1, getsid, (pid_t))
  65. -DUMMY_SILENT(pid_t , -1, getppid, (void))
  66. -DUMMY(pid_t , -1, getpgrp, (void))
  67. +DUMMY_SILENT(pid_t , 0, getpgrp, (void))
  68. +DUMMY_SILENT(pid_t , 0, getppid, (void))
  69. DUMMY(int , -1, getpriority, (int, int))
  70. DUMMY(int , -1, getrusage, (int, rusage *))
  71. DUMMY_SILENT(uid_t , 0, getuid, (void))