search for: __linux__

Displaying 20 results from an estimated 123 matches for "__linux__".

2007 Jun 19
1
patch enabling serial (tty) support
Folks, First, let me thank everyone involved for making QEMU available on the Solaris platform. It''s turning out to be really handy.... Here at work we''re required to use GroupWise calendaring (at least for the time being), and I''m trying to get a bit more organized, so thought I''d start (again) using a Palm handheld to take my calendar, etc. with me. The new
2016 Jun 21
2
FLAC__SSE_OS change
...|| defined(__FreeBSD_kernel__) ... which is equivalent to #if FLAC__SSE_OS /* assume user knows better than us; leave as detected above */ #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) ... (and there should be no "&& !FLAC__SSE_OS" after "#elif defined(__linux__)") > But yes, all those #ifs and #elses are horrible for readability and > maintainability. OTOH dead code elimination (as in ffmpeg) makes it impossible to build debug version... Probably it's better to have one main simple cpu.h and several additional files (one per architecture)...
2018 Jul 30
3
[PATCH v2] file: Add missing include for FALLOC_FL_*
...083.html plugins/file/file.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/file/file.c b/plugins/file/file.c index a8a6253..0345115 100644 --- a/plugins/file/file.c +++ b/plugins/file/file.c @@ -42,6 +42,10 @@ #include <sys/stat.h> #include <errno.h> +#if defined(__linux__) +#include <linux/falloc.h> /* For FALLOC_FL_* on RHEL, glibc < 2.18 */ +#endif + #include <nbdkit-plugin.h> #ifndef O_CLOEXEC -- 2.17.1
2013 May 13
2
[LLVMdev] ASan unit test/libcxx build break
A recent change added defined(__linux__) condition to the code below. Now it says that on linux with --std=c++0x (or --std=c++11) the system stdlib.h header must define aligned_alloc(). Really? include/__config: #if ( defined(__FreeBSD__) || defined(__linux__) ) && (__ISO_C_VISIBLE >= 2011 || __cplusplus >= 201103L) #defi...
2002 Sep 13
3
[LLVMdev] Linux-x86 Compatability
...ttypes.h - and so does Linux. >> >> > >Interesting. INT64_MAX is supposed to be provided by >include/Support/DataTypes.h. Do you know of a reliable preprocessor >symbol that can be used to determine whether we're on a linux box, or > > Well, there is always __linux__, but that doesn't necessarily imply that we are on a Linux box with stdint.h. >(better yet) whether the system has a valid <stdint.h>? > > Nope. Autoconf is definitely the way to go here (even though converting is a pain). >Thanks, > >-Chris > >http://llvm.c...
2013 Nov 05
1
[LLVMdev] Android build patch
...when inlined > vs. when|| > ||// not inlined, and hiding their real definitions in a separate > archive file|| > ||// that the dynamic linker can't see. For more info, search for|| > ||// 'libc_nonshared.a' on Google, or read http://llvm.org/PR274.|| > ||#if defined(__linux__)| > > ^ ie try making this defined(__linux__) && !defined(__BIONIC__) > > Alp. > > > On 31/10/2013 00:08, James Lyon wrote: >> I've been trying to get LLVM JIT compilation working on Android for >> the last few days. The patch I needed to get it to buil...
2013 May 13
0
[LLVMdev] ASan unit test/libcxx build break
Hi, On Mon, May 13, 2013 at 10:49 AM, Evgeniy Stepanov < eugeni.stepanov at gmail.com> wrote: > A recent change added defined(__linux__) condition to the code below. > Now it says that on linux with --std=c++0x (or --std=c++11) the system > stdlib.h header must define aligned_alloc(). Really? > > include/__config: > > #if ( defined(__FreeBSD__) || defined(__linux__) ) && (__ISO_C_VISIBLE > >= 2011 ||...
2002 Sep 13
1
[LLVMdev] Linux-x86 Compatability
...Compatability > > > > >Interesting. INT64_MAX is supposed to be provided by > > >include/Support/DataTypes.h. Do you know of a reliable preprocessor > > >symbol that can be used to determine whether we're on a linux box, or > > > Well, there is always __linux__, but that doesn't necessarily imply that > > we are on a Linux box with stdint.h. > > Ok, I'll switch to that from the placeholder "LINUX". > > > >(better yet) whether the system has a valid <stdint.h>? > > > Nope. Autoconf is definitely the...
2013 Nov 05
0
[LLVMdev] Android build patch
...these functions work differently when inlined vs. when|| ||// not inlined, and hiding their real definitions in a separate archive file|| ||// that the dynamic linker can't see. For more info, search for|| ||// 'libc_nonshared.a' on Google, or read http://llvm.org/PR274.|| ||#if defined(__linux__)| ^ ie try making this defined(__linux__) && !defined(__BIONIC__) Alp. On 31/10/2013 00:08, James Lyon wrote: > I've been trying to get LLVM JIT compilation working on Android for > the last few days. The patch I needed to get it to build is attached > (nothing major - CMak...
2016 Jun 23
0
FLAC__SSE_OS change
...eclared identifier cpu.c(279): error C2065: 'STATUS_ILLEGAL_INSTRUCTION': undeclared identifier 2) the current code (simplified): if(info->ia32.sse) { #if !FLAC__SSE_OS /* assume user knows better than us; turn it off */ disable_sse(info); #elif ... #elif defined(__linux__) && !FLAC__SSE_OS #elif ... #else #endif } means that the __linux__ part is never compiled: if FLAC__SSE_OS==0 then this code becomes just "disable_sse(info);" and if FLAC__SSE_OS==1 then "defined(__linux__) && !FLAC__SSE_OS" is always false.
2002 Sep 13
2
[LLVMdev] Linux-x86 Compatability
...Interesting. INT64_MAX is supposed to be provided by >>>include/Support/DataTypes.h. Do you know of a reliable preprocessor >>>symbol that can be used to determine whether we're on a linux box, or >>> >>> > > > >>Well, there is always __linux__, but that doesn't necessarily imply that >>we are on a Linux box with stdint.h.s >> >> > >Ok, I'll switch to that from the placeholder "LINUX". > > Inspection of DataTypes.h shows that inttypes.h is included before the test for linux / definiti...
2013 Oct 31
4
[LLVMdev] Android build patch
I've been trying to get LLVM JIT compilation working on Android for the last few days. The patch I needed to get it to build is attached (nothing major - CMake configuration header typo and avoiding open64 which is missing on Android). Sadly even though it builds I can't get generated code to work - it appears at the moment that the generated code doesn't have execute permissions
2016 Jun 25
2
FLAC__SSE_OS change
...#39;STATUS_ILLEGAL_INSTRUCTION': undeclared identifier > > 2) the current code (simplified): > > if(info->ia32.sse) { > #if !FLAC__SSE_OS > /* assume user knows better than us; turn it off */ > disable_sse(info); > #elif ... > #elif defined(__linux__) && !FLAC__SSE_OS > #elif ... > #else > #endif > } > > means that the __linux__ part is never compiled: if FLAC__SSE_OS==0 then > this code becomes just "disable_sse(info);" and if FLAC__SSE_OS==1 > then "defined(__linux__) && !FLAC__SSE_...
2020 Oct 20
1
[PATCH nbdkit INCOMPLETE] New filter: exitwhen: exit gracefully when an event occurs.
This incomplete patch adds a new filter allowing more control over when nbdkit exits. You can now get nbdkit to exit gracefully on certain events, such as a file being created, a pipe held open by another process going away, or when another PID exits. There is also a script option to allow for completely custom events. It is untested at the moment, I'm posting it to get feedback on the
2013 May 13
2
[LLVMdev] ASan unit test/libcxx build break
On Mon, May 13, 2013 at 11:03 AM, İsmail Dönmez <ismail at donmez.ws> wrote: > Hi, > > > On Mon, May 13, 2013 at 10:49 AM, Evgeniy Stepanov > <eugeni.stepanov at gmail.com> wrote: >> >> A recent change added defined(__linux__) condition to the code below. >> Now it says that on linux with --std=c++0x (or --std=c++11) the system >> stdlib.h header must define aligned_alloc(). Really? >> >> include/__config: >> >> #if ( defined(__FreeBSD__) || defined(__linux__) ) && (__ISO_C_VI...
2018 Jul 30
0
Re: [PATCH v2] file: Add missing include for FALLOC_FL_*
...s were finally supported directly in <fcntl.h> > Without the macros, fallocate is never used and we fall back to manual > zeroing. > > +++ b/plugins/file/file.c > @@ -42,6 +42,10 @@ > #include <sys/stat.h> > #include <errno.h> > > +#if defined(__linux__) > +#include <linux/falloc.h> /* For FALLOC_FL_* on RHEL, glibc < 2.18 */ Doesn't mention which version of RHEL, nor the fact that non-RHEL systems may also be impacted (it is the glibc version that matters here, rather than the distro). > +#endif > + ACK. Perhaps coul...
2015 Feb 09
0
[PATCH 5/5] macosx/bsd: Alternatives for linux-specific commands
...tunmount.c index 3df481b..2190ba0 100644 --- a/fuse/guestunmount.c +++ b/fuse/guestunmount.c @@ -257,7 +257,12 @@ do_fusermount (const char *mountpoint, char **error_rtn) /* We have to parse error messages from fusermount, so ... */ setenv ("LC_ALL", "C", 1); +#ifdef __linux__ execlp ("fusermount", "fusermount", "-u", mountpoint, NULL); +#else + /* use umount where fusermount is not available */ + execlp ("umount", "umount", mountpoint, NULL); +#endif perror ("exec"); _exit (EXIT_FAILURE);...
2015 Feb 13
1
[PATCH] fuse: Alternatives for Linux-specific commands
...tunmount.c index 3df481b..94c3ec7 100644 --- a/fuse/guestunmount.c +++ b/fuse/guestunmount.c @@ -257,7 +257,12 @@ do_fusermount (const char *mountpoint, char **error_rtn) /* We have to parse error messages from fusermount, so ... */ setenv ("LC_ALL", "C", 1); +#ifdef __linux__ execlp ("fusermount", "fusermount", "-u", mountpoint, NULL); +#else + /* use umount where fusermount is not available */ + execlp ("umount", "umount", mountpoint, NULL); +#endif perror ("exec"); _exit (EXIT_FAILURE);...
2002 Sep 13
0
[LLVMdev] Linux-x86 Compatability
> >Interesting. INT64_MAX is supposed to be provided by > >include/Support/DataTypes.h. Do you know of a reliable preprocessor > >symbol that can be used to determine whether we're on a linux box, or > Well, there is always __linux__, but that doesn't necessarily imply that > we are on a Linux box with stdint.h. Ok, I'll switch to that from the placeholder "LINUX". > >(better yet) whether the system has a valid <stdint.h>? > Nope. Autoconf is definitely the way to go here (even though con...
2009 Aug 11
6
[LLVMdev] Build issues on Solaris
Hi all, I've encountered a couple of minor build issues on Solaris that have crept in since 2.5, fixes below: 1. In lib/Target/X86/X86JITInfo.cpp, there is: // Check if building with -fPIC #if defined(__PIC__) && __PIC__ && defined(__linux__) #define ASMCALLSUFFIX "@PLT" #else #define ASMCALLSUFFIX #endif Which causes a link failure due to the non-PLT relocation that results. I'm not sure if this should be #if defined(__PIC__) && __PIC__ && (defined(__linux__) || defined(__sun__)) or #if defined(__P...