search for: __freebsd__

Displaying 20 results from an estimated 47 matches for "__freebsd__".

2000 Feb 27
0
[PATCH] Fix login.conf, expiration, BSD compatibility in OpenSSH
...ive almost all login.conf and password/account expiration features, makes OpenSSH more FreeBSD login compatible and fix non-critical memory leak. Please review and commit. --- sshd.c.old Fri Feb 25 08:23:45 2000 +++ sshd.c Sun Feb 27 02:53:33 2000 @@ -37,9 +37,8 @@ #endif /* LIBWRAP */ #ifdef __FreeBSD__ -#include <libutil.h> -#include <syslog.h> #define LOGIN_CAP +#define _PATH_CHPASS "/usr/bin/passwd" #endif /* __FreeBSD__ */ #ifdef LOGIN_CAP @@ -1246,6 +1245,7 @@ return 0; } } +#ifndef __FreeBSD__ /* FreeBSD handle it later */ /* Fail if the account'...
2016 Jun 20
2
FLAC__SSE_OS change
About the commit <http://git.xiph.org/?p=flac.git;a=commitdiff;h=e120037f3c67b23fd9eef7ccd04d2df57fa1a9a6> I admit I don't understand the following lines: #if !FLAC__SSE_OS /* assume user knows better than us; turn it off */ disable_sse(info); #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) ...... Probably it should be #if FLAC__SSE_OS /* assume user knows better than us; leave as detected above */ #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) ...... ?
2006 Apr 17
3
[LLVMdev] OpenBSD. (Was: 1.7 Pre-Release Ready for Testing)
...Mutex.cpp: In constructor `llvm::sys::Mutex::Mutex(bool)': Mutex.cpp:80: error: `pthread_mutexattr_setpshared' undeclared (first use this function) Mutex.cpp:80: error: (Each undeclared identifier is reported only once for each function it appears in.) 78 #ifndef __FreeBSD__ 79 // Make it a process local mutex 80 errorcode = pthread_mutexattr_setpshared(&attr, PTHREAD_PROCESS_PRIVATE); 81 #endif So I modified both occurrences of __FreeBSD__ to also check for __OpenBSD__. The next problem was INT8_MAX, etc., weren't being defined. includ...
2006 Apr 17
0
[LLVMdev] OpenBSD. (Was: 1.7 Pre-Release Ready for Testing)
I just added __OpenBSD__ everywhere __FreeBSD__ was being tested (there were about a dozen places). I suspect we'll have to add one for NetBSD also one day (even DragonflyBSD?). INT8_MAX and friends ought to be declared by <stdint.h>. It is on FreeBSD. Ralph Corderoy wrote: >Hi again, > >I wrote: > > >>&g...
2012 Jan 05
0
[LLVMdev] [PATCH] [compiler-rt] Minix (w.r.t. svn r147606)
.../2a93059d/attachment.html> -------------- next part -------------- Index: test/Unit/endianness.h =================================================================== --- test/Unit/endianness.h (revision 147606) +++ test/Unit/endianness.h (working copy) @@ -36,7 +36,7 @@ /* .. */ -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonflyBSD__) +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonflyBSD__) || defined(__minix) #include <sys/endian.h> #if _BYTE_ORDER == _BIG_ENDIAN Index: lib/int_endianness.h =======...
2004 May 17
0
openbsd compilation fails for recent checkout of v1-0_stable
This has been mentioned before on this list, but in order for md5.c to compile successfully (OpenBSD 3.3), the following must change in md5.c: #if defined( __FreeBSD__ ) || defined( __OpenBSD__ ) # include <sys/endian.h> Change this to be: #if defined( __FreeBSD__ ) || defined( __OpenBSD__ ) # include <machine/types.h> # include <machine/endian.h> And -E is an invalid linker option, so the Makefile needs to be changed: ifeq (${OSARCH...
2016 Jul 21
2
FreeBSD user willing to try fix a unit test?
Hi all In unittests/ADT/APIntTest.cpp I came across this test: // XFAIL this test on FreeBSD where the system gcc-4.2.1 seems to miscompile it. #if defined(__llvm__) || !defined(__FreeBSD__) TEST(APIntTest, i33_Count) { APInt i33minus2(33, static_cast<uint64_t>(-2), true); EXPECT_EQ(0u, i33minus2.countLeadingZeros()); EXPECT_EQ(32u, i33minus2.countLeadingOnes()); EXPECT_EQ(33u, i33minus2.getActiveBits()); EXPECT_EQ(1u, i33minus2.countTrailingZeros()); EXPECT_EQ(32u,...
2006 Apr 18
1
[LLVMdev] OpenBSD. (Was: 1.7 Pre-Release Ready for Testing)
...chaic optiminzation backend and procedural stuff is pretty dated in the RTL layer.. Aho and Ullman can only take you so far.. Then you need to use the FORCE.. LUKE use the force.. of llvm that is. :) cheers all. Jeff Cohen <jeffc at jolt-lang.org> wrote: I just added __OpenBSD__ everywhere __FreeBSD__ was being tested (there were about a dozen places). I suspect we'll have to add one for NetBSD also one day (even DragonflyBSD?). INT8_MAX and friends ought to be declared by . It is on FreeBSD. Ralph Corderoy wrote: >Hi again, > >I wrote: > > >>>I would like t...
2016 Jul 23
2
FreeBSD user willing to try fix a unit test?
On 23 July 2016 at 11:08, Dimitry Andric via llvm-dev <llvm-dev at lists.llvm.org> wrote: > Let's just drop the || !defined(__FreeBSD__) part. Btw, any idea what the > defined(__llvm__) part is supposed to accomplish? It was added in the same commit, and given the comment above I think it's probably so the test still runs on FreeBSD if Clang is self-hosting. Tim.
2003 Jun 16
3
[LLVMdev] CWriter outputs non-portable use of alloca.h
Hi, My recent refactoring of the (machine-dependent) use of <alloca.h> does not attempt to change CWriter's behavior of emitting a #include for <alloca.h>. FreeBSD does not have <alloca.h>, so this would cause trouble. We could change it to emit an #ifndef __FreeBSD__...#endif around #include <alloca.h>. I suggest this because, I'm guessing, whether or not the CWriter outputs pretty code is not of utmost importance. Any counter-suggestions? -Brian -- gaeke at uiuc.edu
2016 Jun 21
2
FLAC__SSE_OS change
...FLAC__SSE_OS !defined FLAC__SSE_OS -> !FLAC__SSE_OS So the code #if defined FLAC__NO_SSE_OS /* assume user knows better than us; turn it off */ disable_sse(info); #elif defined FLAC__SSE_OS /* assume user knows better than us; leave as detected above */ #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) ... becomes #if 0 /* assume user knows better than us; turn it off */ disable_sse(info); #elif FLAC__SSE_OS /* assume user knows better than us; leave as detected above */ #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) ... which is...
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) #define _LIBCPP_HAS_QUICK_EXIT #define _LIBCPP_HAS_C11_FEATURES #endif include/cstdlib: #include <__config> #include <stdlib.h> #ifdef _LIBCPP_HAS_C11_FEATURES using ::aligned_alloc; #endif...
2005 Jan 13
3
Wine and FreeBSD
Hello all, First, happy to see the new release of WINE 20050111 for FreeBSD (and previous 20041201) I obtained and compiled the latest version for my standard FreeBSD 5.3 install. ? Upon running any windows/wine app I get the error messages err:heap:HEAP_CreateSystemHeap system heap base address 0x80000000 not available err:heap:HEAP_CreateSystemHeap system heap base address 0x80000000 not
2010 May 13
1
[LLVMdev] libSystem, __clear_cache(), FreeBSD and ARM
...r (intptr_t Line = StartLine; Line < EndLine; Line += LineSize) asm volatile("icbi 0, %0" : : "r"(Line)); asm volatile("isync"); -# elif defined(__arm__) && defined(__GNUC__) +# elif defined(__arm__) && defined(__GNUC__) && !defined(__FreeBSD__) // FIXME: Can we safely always call this for __GNUC__ everywhere? char *Start = (char*) Addr; char *End = Start + Len; I don't know anything about ARM, but isn't there a way we can do this using some inline asm instead of calling a glibc-function? Greetings, -- Ed Schouten &lt...
2012 Jun 13
0
[LLVMdev] [Patch] compiler-rt lib/int_endianness.h
...stead of sys. While there I added __Bitrig__ which is a newly launched OS that uses clang as it's compiler. diff --git a/lib/int_endianness.h b/lib/int_endianness.h index 70bd177..f821f9a 100644 --- a/lib/int_endianness.h +++ b/lib/int_endianness.h @@ -31,8 +31,8 @@ /* .. */ -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__minix) -#include <sys/endian.h> +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__minix) || defined(__Bitrig__) +#include <machine/endian.h&g...
2013 May 13
0
[LLVMdev] ASan unit test/libcxx build break
...geni.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 || __cplusplus >= 201103L) > #define _LIBCPP_HAS_QUICK_EXIT > #define _LIBCPP_HAS_C11_FEATURES > #endif > > I added that line since libc on linux defines at_quick_exit. > > include/cstdlib: > > #in...
2005 Feb 11
1
FreeBSD 4.x problem resolved
...nel includes SSE handling *and* the CPU supports SSE. A value of 0 means that the kernel will not handle SSE so it can't be used, although the system CPU may or may not support it.) --- src/libFLAC/cpu.c.orig +++ src/libFLAC/cpu.c @@ -25,6 +25,11 @@ #include <config.h> #endif +#ifdef __FreeBSD__ +#include <sys/types.h> +#include <sys/sysctl.h> +#endif + const unsigned FLAC__CPUINFO_IA32_CPUID_CMOV = 0x00008000; const unsigned FLAC__CPUINFO_IA32_CPUID_MMX = 0x00800000; const unsigned FLAC__CPUINFO_IA32_CPUID_FXSR = 0x01000000; @@ -52,6 +57,15 @@ #ifndef FLAC__SSE_OS inf...
2002 Jun 28
1
[Bug 315] New: add miissing includes and defines for FREEBSD
...t: Build system AssignedTo: openssh-unix-dev at mindrot.org ReportedBy: dirk.meyer at dinoex.sub.org --- session.c.orig Wed Jun 26 15:51:06 2002 +++ session.c Wed Jun 26 18:20:35 2002 @@ -64,6 +64,13 @@ #define is_winnt (GetVersion() < 0x80000000) #endif +#ifdef __FreeBSD__ +#include <libutil.h> +#include <syslog.h> +#include <time.h> +#define _PATH_CHPASS "/usr/bin/passwd" +#endif /* __FreeBSD__ */ + /* func */ Session *session_new(void); ------- You are receiving this mail because: ------- You are the assignee for the bug, or are w...
2010 Dec 23
1
DO NOT REPLY [Bug 7884] New: Workaround for ACL problem with ZFS under FreeBSD
...e EINVAL as lack of support for the requested ACL type. --- acls.c.orig 2010-12-23 10:45:21.344757361 +0100 +++ acls.c 2010-12-23 10:44:33.000000000 +0100 @@ -1082,6 +1082,10 @@ int default_perms_for_dir(const char *di case ENOTSUP: #endif case ENOSYS: +#ifdef __FreeBSD__ + /* Workaround for improper NFSv4 ACL handling in rsync. */ + case EINVAL: +#endif /* No ACLs are available. */ break; case ENOENT: --- lib/sysacls.c.orig 2010-12-23 10:47:02.945461082 +0100 +++ lib/sysac...
2002 Oct 02
1
Player under FreeBSD
Ok here's another one: player_example.c: In function `open_audio': player_example.c:138: `AFMT_S16_NE' undeclared (first use in this function) It worked fine once I switched it from _NE to _LE, this code will help portability: #if defined(__FreeBSD__) # define AFMT_S16_NE AFMT_S16_LE #elif defined(_AIX) || defined(AIX) # define AFMT_S16_NE AFMT_S16_BE #endif I'm not sure what other OS's may also require this be defined.. --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To un...