From fc98e64f150094b10d8e40b6c6f6b953dd23d6aa Mon Sep 17 00:00:00 2001 From: Tim Lander Date: Fri, 4 Feb 2022 14:18:12 +0800 Subject: [PATCH 1/3] Add missed musl sendfile.h --- system/lib/libc/musl/include/sys/sendfile.h | 2724 +++++++++++++++++++ 1 file changed, 2724 insertions(+) create mode 100644 system/lib/libc/musl/include/sys/sendfile.h diff --git a/system/lib/libc/musl/include/sys/sendfile.h b/system/lib/libc/musl/include/sys/sendfile.h new file mode 100644 index 0000000000000..f8b76bcb6fcda --- /dev/null +++ b/system/lib/libc/musl/include/sys/sendfile.h @@ -0,0 +1,2724 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + musl/include/sys/sendfile.h at master · emscripten-core/musl + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Skip to content + + + + + + + + + + + +
+ +
+ + + + + + + +
+ + + +
+ + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + emscripten-core  /   + musl  /   + +
+
+ + + +
+ + +
+ + +
+ + + +
+
+ Tip: + Type # to search pull requests +
+
+ Type ? for help and tips +
+
+
+ +
+
+ Tip: + Type # to search issues +
+
+ Type ? for help and tips +
+
+
+ +
+
+ Tip: + Type # to search discussions +
+
+ Type ? for help and tips +
+
+
+ +
+
+ Tip: + Type ! to search projects +
+
+ Type ? for help and tips +
+
+
+ +
+
+ Tip: + Type @ to search teams +
+
+ Type ? for help and tips +
+
+
+ +
+
+ Tip: + Type @ to search people and organizations +
+
+ Type ? for help and tips +
+
+
+ +
+
+ Tip: + Type > to activate command mode +
+
+ Type ? for help and tips +
+
+
+ +
+
+ Tip: + Go to your accessibility settings to change your keyboard shortcuts +
+
+ Type ? for help and tips +
+
+
+ +
+
+ Tip: + Type author:@me to search your content +
+
+ Type ? for help and tips +
+
+
+ +
+
+ Tip: + Type is:pr to filter to pull requests +
+
+ Type ? for help and tips +
+
+
+ +
+
+ Tip: + Type is:issue to filter to issues +
+
+ Type ? for help and tips +
+
+
+ +
+
+ Tip: + Type is:project to filter to projects +
+
+ Type ? for help and tips +
+
+
+ +
+
+ Tip: + Type is:open to filter to open content +
+
+ Type ? for help and tips +
+
+
+ +
+ +
+
+ We’ve encountered an error and some results aren't available at this time. Type a new search or try again later. +
+
+ + No results matched your search + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + Search for issues and pull requests + + # + + + + Search for issues, pull requests, discussions, and projects + + # + + + + Search for organizations, repositories, and users + + @ + + + + Search for projects + + ! + + + + Search for files + + / + + + + Activate command mode + + > + + + + Search your issues, pull requests, and discussions + + # author:@me + + + + Search your issues, pull requests, and discussions + + # author:@me + + + + Filter to pull requests + + # is:pr + + + + Filter to issues + + # is:issue + + + + Filter to discussions + + # is:discussion + + + + Filter to projects + + # is:project + + + + Filter to open issues, pull requests, and discussions + + # is:open + + + + + + + + + + + + + + + + +
+
+
+ +
+ + + + + + + + + + +
+ + + + +
+
+
+ + + + + + + + + + + +
+ +
+ +
+

+ + + / + + musl + + + Public +

+ +
+ +
    + + + +
  • + +
    + + + + + + + Watch + + + 6 + + + +
    +
    +

    Notifications

    + +
    + +
    +
    + + + + + + + + +
    + + +
    + + + + + Get push notifications on iOS or Android. + +
    +
    +
    +
    + + + + +
    +
    +
    + + + +
  • + +
  • +
    +
    + Fork + 2 + + +
    + +

    Fork musl

    +
    + +
    + + + + + +

    If this dialog fails to load, you can visit the fork page directly.

    +
    +
    + +
    +
    +
    + +
  • + +
  • + + +
    +
    + + +
    +
    + +
    +
    + + + + + +
    + +
    +
    + + + + + + + +
    + +
    +
    +
    +
    +
    +
  • + +
  • + + +
  • +
+ +
+ +
+
+ + + + +
+ + + +
+
+ + + + + + + +
+ + Permalink + + + +
+ Newer +
    +
  1. +
  2. +
  3. +
  4. +
  5. +
  6. +
  7. +
  8. +
  9. +
  10. +
+ Older +
+ +
+
+ + + + + +
+ + 100644 + + 22 lines (16 sloc) + + 329 Bytes +
+
+ +
+
+ +
+ +
+
+ + +
+
+ +
+ +
+ +
+
+
1
+
#ifndef _SYS_SENDFILE_H
+
+
+
2
+
#define _SYS_SENDFILE_H
+
+
+
+ +
+ +
+
+ +
+ +
+
+
+
+ + +
Mar 19, 2011
+
+
+
+ +
+ +
+ +
+
+
3
+
+
+
+
+
4
+
#ifdef __cplusplus
+
+
+
5
+
extern "C" {
+
+
+
6
+
#endif
+
+
+
7
+
+
+
+
+
+ +
+ +
+
+ + +
+
+ +
+ +
+ +
+
+
8
+
#include <features.h>
+
+
+
+ +
+ +
+
+ +
+ +
+
+
+
+ + +
Mar 19, 2011
+
+
+
+ +
+ +
+ +
+
+
9
+
#include <unistd.h>
+
+
+
10
+
+
+
+
+
11
+
ssize_t sendfile(int, int, off_t *, size_t);
+
+
+
12
+
+
+
+
+
+ +
+ +
+
+ +
+ +
+
+
+
+ + +
Jun 4, 2012
+
+
+
+ +
+ +
+ +
+
+
13
+
#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
+
+
+
+ +
+ +
+
+ +
+ +
+
+
+
+ + +
May 4, 2012
+
+
+
+ +
+ +
+ +
+
+
14
+
#define sendfile64 sendfile
+
+
+
15
+
#define off64_t off_t
+
+
+
16
+
#endif
+
+
+
17
+
+
+
+
+
+ +
+ +
+
+ +
+ +
+
+
+
+ + +
Mar 19, 2011
+
+
+
+ +
+ +
+ +
+
+
18
+
#ifdef __cplusplus
+
+
+
19
+
}
+
+
+
20
+
#endif
+
+
+
21
+
+
+
+
+
22
+
#endif
+
+
+
+
+
+ +
+ + + +
+
+ +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + From 37af1706b42b0a345c052d53959aa26c78715ddc Mon Sep 17 00:00:00 2001 From: Tim Lander Date: Fri, 4 Feb 2022 14:21:23 +0800 Subject: [PATCH 2/3] Fix file to corret one (whoops) --- system/lib/libc/musl/include/sys/sendfile.h | 2734 +------------------ 1 file changed, 16 insertions(+), 2718 deletions(-) diff --git a/system/lib/libc/musl/include/sys/sendfile.h b/system/lib/libc/musl/include/sys/sendfile.h index f8b76bcb6fcda..e7570d8e5c4f0 100644 --- a/system/lib/libc/musl/include/sys/sendfile.h +++ b/system/lib/libc/musl/include/sys/sendfile.h @@ -1,2724 +1,22 @@ +#ifndef _SYS_SENDFILE_H +#define _SYS_SENDFILE_H +#ifdef __cplusplus +extern "C" { +#endif +#include +#include +ssize_t sendfile(int, int, off_t *, size_t); +#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) +#define sendfile64 sendfile +#define off64_t off_t +#endif +#ifdef __cplusplus +} +#endif - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - musl/include/sys/sendfile.h at master · emscripten-core/musl - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -
- - - -
- - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - -
- -
- - - - emscripten-core  /   - musl  /   - -
-
- - - -
- - -
- - -
- - - -
-
- Tip: - Type # to search pull requests -
-
- Type ? for help and tips -
-
-
- -
-
- Tip: - Type # to search issues -
-
- Type ? for help and tips -
-
-
- -
-
- Tip: - Type # to search discussions -
-
- Type ? for help and tips -
-
-
- -
-
- Tip: - Type ! to search projects -
-
- Type ? for help and tips -
-
-
- -
-
- Tip: - Type @ to search teams -
-
- Type ? for help and tips -
-
-
- -
-
- Tip: - Type @ to search people and organizations -
-
- Type ? for help and tips -
-
-
- -
-
- Tip: - Type > to activate command mode -
-
- Type ? for help and tips -
-
-
- -
-
- Tip: - Go to your accessibility settings to change your keyboard shortcuts -
-
- Type ? for help and tips -
-
-
- -
-
- Tip: - Type author:@me to search your content -
-
- Type ? for help and tips -
-
-
- -
-
- Tip: - Type is:pr to filter to pull requests -
-
- Type ? for help and tips -
-
-
- -
-
- Tip: - Type is:issue to filter to issues -
-
- Type ? for help and tips -
-
-
- -
-
- Tip: - Type is:project to filter to projects -
-
- Type ? for help and tips -
-
-
- -
-
- Tip: - Type is:open to filter to open content -
-
- Type ? for help and tips -
-
-
- -
- -
-
- We’ve encountered an error and some results aren't available at this time. Type a new search or try again later. -
-
- - No results matched your search - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - Search for issues and pull requests - - # - - - - Search for issues, pull requests, discussions, and projects - - # - - - - Search for organizations, repositories, and users - - @ - - - - Search for projects - - ! - - - - Search for files - - / - - - - Activate command mode - - > - - - - Search your issues, pull requests, and discussions - - # author:@me - - - - Search your issues, pull requests, and discussions - - # author:@me - - - - Filter to pull requests - - # is:pr - - - - Filter to issues - - # is:issue - - - - Filter to discussions - - # is:discussion - - - - Filter to projects - - # is:project - - - - Filter to open issues, pull requests, and discussions - - # is:open - - - - - - - - - - - - - - - - -
-
-
- -
- - - - - - - - - - -
- - - - -
-
-
- - - - - - - - - - - -
- -
- -
-

- - - / - - musl - - - Public -

- -
- -
    - - - -
  • - -
    - - - - - - - Watch - - - 6 - - - -
    -
    -

    Notifications

    - -
    - -
    -
    - - - - - - - - -
    - - -
    - - - - - Get push notifications on iOS or Android. - -
    -
    -
    -
    - - - - -
    -
    -
    - - - -
  • - -
  • -
    -
    - Fork - 2 - - -
    - -

    Fork musl

    -
    - -
    - - - - - -

    If this dialog fails to load, you can visit the fork page directly.

    -
    -
    - -
    -
    -
    - -
  • - -
  • - - -
    -
    - - -
    -
    - -
    -
    - - - - - -
    - -
    -
    - - - - - - - -
    - -
    -
    -
    -
    -
    -
  • - -
  • - - -
  • -
- -
- -
-
- - - - -
- - - -
-
- - - - - - - -
- - Permalink - - - -
- Newer -
    -
  1. -
  2. -
  3. -
  4. -
  5. -
  6. -
  7. -
  8. -
  9. -
  10. -
- Older -
- -
-
- - - - - -
- - 100644 - - 22 lines (16 sloc) - - 329 Bytes -
-
- -
-
- -
- -
-
- - -
-
- -
- -
- -
-
-
1
-
#ifndef _SYS_SENDFILE_H
-
-
-
2
-
#define _SYS_SENDFILE_H
-
-
-
- -
- -
-
- -
- -
-
-
-
- - -
Mar 19, 2011
-
-
-
- -
- -
- -
-
-
3
-
-
-
-
-
4
-
#ifdef __cplusplus
-
-
-
5
-
extern "C" {
-
-
-
6
-
#endif
-
-
-
7
-
-
-
-
-
- -
- -
-
- - -
-
- -
- -
- -
-
-
8
-
#include <features.h>
-
-
-
- -
- -
-
- -
- -
-
-
-
- - -
Mar 19, 2011
-
-
-
- -
- -
- -
-
-
9
-
#include <unistd.h>
-
-
-
10
-
-
-
-
-
11
-
ssize_t sendfile(int, int, off_t *, size_t);
-
-
-
12
-
-
-
-
-
- -
- -
-
- -
- -
-
-
-
- - -
Jun 4, 2012
-
-
-
- -
- -
- -
-
-
13
-
#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
-
-
-
- -
- -
-
- -
- -
-
-
-
- - -
May 4, 2012
-
-
-
- -
- -
- -
-
-
14
-
#define sendfile64 sendfile
-
-
-
15
-
#define off64_t off_t
-
-
-
16
-
#endif
-
-
-
17
-
-
-
-
-
- -
- -
-
- -
- -
-
-
-
- - -
Mar 19, 2011
-
-
-
- -
- -
- -
-
-
18
-
#ifdef __cplusplus
-
-
-
19
-
}
-
-
-
20
-
#endif
-
-
-
21
-
-
-
-
-
22
-
#endif
-
-
-
-
-
- -
- - - -
-
- -
-
- -
- - - - - - - - - - - - - - - - - - - - - - +#endif From 09d5ae5b1105b1b2251585482d71147512358fb8 Mon Sep 17 00:00:00 2001 From: Tim Lander Date: Fri, 4 Feb 2022 15:56:23 +0800 Subject: [PATCH 3/3] Remove sendfile, replace with error explaining its removal --- system/lib/libc/musl/include/sys/sendfile.h | 23 +-------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/system/lib/libc/musl/include/sys/sendfile.h b/system/lib/libc/musl/include/sys/sendfile.h index e7570d8e5c4f0..2e9a2513e41bb 100644 --- a/system/lib/libc/musl/include/sys/sendfile.h +++ b/system/lib/libc/musl/include/sys/sendfile.h @@ -1,22 +1 @@ -#ifndef _SYS_SENDFILE_H -#define _SYS_SENDFILE_H - -#ifdef __cplusplus -extern "C" { -#endif - -#include -#include - -ssize_t sendfile(int, int, off_t *, size_t); - -#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) -#define sendfile64 sendfile -#define off64_t off_t -#endif - -#ifdef __cplusplus -} -#endif - -#endif +#error sendfile.h has been removed. For more information see github.com/emscripten-core/emscripten/pull/14248.