Logo
Explore Help
Sign In
fluencelabs/musl
1
0
Fork 0
You've already forked musl
mirror of https://github.com/fluencelabs/musl synced 2025-05-12 15:27:27 +00:00
Code Issues Projects Releases Wiki Activity
musl/include/sys/sendfile.h

22 lines
305 B
C
Raw Normal View History

various legacy and linux-specific stuff this commit is part of an effort to make more of busybox work out-of-the-box.
2011-03-18 21:52:26 -04:00
#ifndef _SYS_INOTIFY_H
#define _SYS_INOTIFY_H
#ifdef __cplusplus
extern "C" {
#endif
#include <unistd.h>
ssize_t sendfile(int, int, off_t *, size_t);
_GNU_SOURCE is supposed to imply _LARGEFILE64_SOURCE this is ugly and stupid, but now that the *64 symbol names exist, a lot of broken GNU software detects them in configure, then either breaks during build due to missing off64_t definition, or attempts to compile without function declarations/prototypes. "fixing" it here is easier than telling everyone to add yet another feature test macro to their builds.
2012-06-04 08:03:56 -04:00
#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
add *64 junk for sys/*.h headers
2012-05-04 00:31:25 -04:00
#define sendfile64 sendfile
#define off64_t off_t
#endif
various legacy and linux-specific stuff this commit is part of an effort to make more of busybox work out-of-the-box.
2011-03-18 21:52:26 -04:00
#ifdef __cplusplus
}
#endif
#endif
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 554ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API