Displaying 20 results from an estimated 23 matches for "libkern".
2020 May 26
2
Emitting aligned nlist_64 structures for Mach-O in MC
.../fd3feabb0a1eb18ab5d7910f3c3a5eed99cef6ab/src/abstraction/FileAbstraction.hpp#L137
[3] https://github.com/apple-opensource/ld64/blob/fd3feabb0a1eb18ab5d7910f3c3a5eed99cef6ab/src/abstraction/FileAbstraction.hpp#L96
[4] https://github.com/apple/darwin-xnu/blob/a449c6a3b8014d9406c2ddbdc81795da24aa7443/libkern/libkern/OSByteOrder.h#L246
[5] https://github.com/apple/darwin-xnu/blob/a449c6a3b8014d9406c2ddbdc81795da24aa7443/libkern/libkern/OSByteOrder.h#L109-L117
From: David Blaikie <dblaikie at gmail.com>
Date: Tuesday, May 26, 2020 at 11:25 AM
To: Shoaib Meenai <smeenai at fb.com>
Cc: "l...
2012 Feb 28
0
[LLVMdev] [patch] atomic functions on darwin
Hi,
Some time in the last few weeks I noticed my cmake build of
svn-trunk on powerpc-darwin8 start to warn about atomics being unavailable
and thus building thread-unsafe. I just looked into it and found an easy
solution, using the atomic functions in <libkern/OSAtomic.h> in
/usr/include. The attached patch does this and also modifies the cmake
and autoconf tests to 'pass' LLVM_HAS_ATOMICS. I'm able to build
LLVMSupport.dylib with this patch.
Please review, revise, criticize?
Fang
--
David Fang
http://www.csl.cornell.edu/~fang/
-...
2015 Feb 12
0
Re: [PATCH 1/3] macosx: Includes/defines for byteswap operations
...+
> +#if defined __APPLE__ && defined __MACH__
> +/* Define/include necessary items on MacOS X */
> +#include <machine/endian.h>
> +#define __BIG_ENDIAN BIG_ENDIAN
> +#define __LITTLE_ENDIAN LITTLE_ENDIAN
> +#define __BYTE_ORDER BYTE_ORDER
> +#include <libkern/OSByteOrder.h>
> +#define __bswap_32 OSSwapConstInt32
> +#endif /* __APPLE__ */
> +
> #if __BYTE_ORDER == __LITTLE_ENDIAN
> #define be32toh(x) __bswap_32 (x)
> #else
> diff --git a/src/inspect-fs-windows.c b/src/inspect-fs-windows.c
> index 682157a..421a5b1 100644...
2015 Feb 12
8
[PATCH 1/3] macosx: Includes/defines for byteswap operations
...32TOH) && !defined(be32toh)
+
+#if defined __APPLE__ && defined __MACH__
+/* Define/include necessary items on MacOS X */
+#include <machine/endian.h>
+#define __BIG_ENDIAN BIG_ENDIAN
+#define __LITTLE_ENDIAN LITTLE_ENDIAN
+#define __BYTE_ORDER BYTE_ORDER
+#include <libkern/OSByteOrder.h>
+#define __bswap_32 OSSwapConstInt32
+#endif /* __APPLE__ */
+
#if __BYTE_ORDER == __LITTLE_ENDIAN
#define be32toh(x) __bswap_32 (x)
#else
diff --git a/src/inspect-fs-windows.c b/src/inspect-fs-windows.c
index 682157a..421a5b1 100644
--- a/src/inspect-fs-windows.c
+++ b/sr...
2020 May 26
2
Emitting aligned nlist_64 structures for Mach-O in MC
As part of our work on LLD for Mach-O, we’ve observed that the object files produced by LLVM don’t always have aligned nlist_64 entries. For context, nlist_64 is the 64-bit symbol table entry structure for Mach-O, and the symbol table is an array of nlist_64 entries. nlist_64 has an 8 byte member, so it should be 8-byte aligned, but we’ve seen object files where the symbol table only has a 4-byte
2016 Jul 01
2
How to resolve conflicts between sanitizer_common and system headers
Hi Sanitizer Runtime Developers,
We recently ran into a problem building clang because some of the definitions in sanitizer_common conflicted with system definitions and later another system header was trying to use the system definition:
.../usr/include/libkern/OSAtomicDeprecated.h:756:17: error: reference to 'memory_order_relaxed' is ambiguous
__theAmount, memory_order_relaxed) + __theAmount);
^
.../usr/bin/../include/c++/v1/atomic:548:5: note: candidate found by name lookup is 'std::__1::memory_order::memory_order_relaxed'
memory_order_r...
2011 Jan 07
1
[LLVMdev] [PATCH] compiler-rt patch for clean build on Solaris 10 / x86
...fo
-- Detecting C compiler ABI info - done
-- Looking for sys/byteorder.h
-- Looking for sys/byteorder.h - not found
-- Looking for AvailabilityMacros.h
-- Looking for AvailabilityMacros.h - not found
-- Looking for TargetConditionals.h
-- Looking for TargetConditionals.h - not found
-- Looking for libkern/OSAtomic.h
-- Looking for libkern/OSAtomic.h - not found
-- Looking for sysconf
-- Looking for sysconf - found
-- Looking for OSAtomicCompareAndSwapInt
-- Looking for OSAtomicCompareAndSwapInt - not found.
-- Looking for OSAtomicCompareAndSwapLong
-- Looking for OSAtomicCompareAndSwapLong - not fou...
2016 Jul 01
2
How to resolve conflicts between sanitizer_common and system headers
...r Runtime Developers,
>>
>> We recently ran into a problem building clang because some of the
>> definitions in sanitizer_common conflicted with system definitions and later
>> another system header was trying to use the system definition:
>>
>> .../usr/include/libkern/OSAtomicDeprecated.h:756:17: error: reference to
>> 'memory_order_relaxed' is ambiguous
>> __theAmount, memory_order_relaxed) + __theAmount);
>> ^
>> .../usr/bin/../include/c++/v1/atomic:548:5: note: candidate found by name
>> lookup is 'std::__1::memory_or...
2011 Jul 18
0
[LLVMdev] [compiler-rt] trunk fails ctest on X86_64 Linux
...fo
-- Detecting C compiler ABI info - done
-- Looking for sys/byteorder.h
-- Looking for sys/byteorder.h - not found
-- Looking for AvailabilityMacros.h
-- Looking for AvailabilityMacros.h - not found
-- Looking for TargetConditionals.h
-- Looking for TargetConditionals.h - not found
-- Looking for libkern/OSAtomic.h
-- Looking for libkern/OSAtomic.h - not found
-- Looking for sysconf
-- Looking for sysconf - found
-- Looking for OSAtomicCompareAndSwapInt
-- Looking for OSAtomicCompareAndSwapInt - not found.
-- Looking for OSAtomicCompareAndSwapLong
-- Looking for OSAtomicCompareAndSwapLong - not fou...
2002 Mar 02
0
Longman dictionary installer debugging
...lose16 (in files/file.c), and here is the
debug session.
Wine-dbg>bt
Backtrace:
=>0 0x40085668 (_lclose16(hFile=0x42826914) [file.c:1177] in libntdll.so)
(ebp=428268f4)
1 0x407d6801 (WPROCS_CallFrom16_p_intr_+0x9(proc=0x400b88dc,
args=0x403af174, context=0x42826914) [wprocs.spec.c:30] in libkern
2.so) (ebp=42826900)
2 0x4008d969 (KERNEL32.DLL.__wine_call_from_16_regs+0x13d in libntdll.so)
(ebp=42826c00)
3 0x0287:0x2131 (bp=3586)
4 0x0287:0x1236 (bp=3592)
5 0x0287:0x12b3 (bp=35a0)
6 0x0287:0x20a7 (bp=35b4)
7 0x0287:0x337c (bp=35be)
8 0x0287:0x339f (bp=35cc)
9 0x0287:0x00c4...
2003 Aug 24
1
ibm fstack protector
yo, ive been using the fstack protector for a while now and it worked
fine until i was gonna compile 4.8p3 then i got these errors,
sio.o(.text+0x18b7): undefined reference to `__guard'
sio.o(.text+0x1da9): undefined reference to `__guard'
sio.o(.text+0x1db9): undefined reference to `__stack_smash_handler'
vga_isa.o: In function `isavga_probe':
vga_isa.o(.text+0x10): undefined
2009 Apr 26
4
1.6.1: menuselect has problems with x86_64 ??
1.6.1 svn 190575:
CC="cc" CXX="g++" LD="" AR="" RANLIB="" CFLAGS="" make -C menuselect
CONFIGURE_SILENT="--silent" menuselect
make[1]: Entering directory
`/home/asterisk/rpmbuild/BUILD/asterisk-1.6.1/menuselect'
gcc -m64 -march=native -mtune=native -floop-interchange
-floop-strip-mine -floop-block -c -o
2020 May 19
1
[PATCH nbdkit] common/include: Add locale-safe ascii_strcasecmp and ascii_strncasecmp.
These are derived from the FreeBSD functions here:
https://github.com/freebsd/freebsd/blob/master/sys/libkern/strcasecmp.c
Thanks: Eric Blake.
---
common/include/Makefile.am | 6 +++
common/include/ascii-ctype.h | 6 +++
common/include/ascii-string.h | 77 ++++++++++++++++++++++++++++
common/include/test-ascii-string.c | 79 +++++++++++++++++++++++++++++
server/main.c...
2006 May 11
11
[PATCH] Integrating applications into Mini-OS
...;
}
diff -ur oxen-unstable/extras/mini-os/lib/printf.c xen-unstable/extras/mini-os/lib/printf.c
--- oxen-unstable/extras/mini-os/lib/printf.c 2006-05-09 00:51:19.000000000 -0400
+++ xen-unstable/extras/mini-os/lib/printf.c 2006-05-09 08:33:17.000000000 -0400
@@ -54,6 +54,8 @@
* $FreeBSD: src/sys/libkern/divdi3.c,v 1.6 1999/08/28 00:46:31 peter Exp $
*/
+#if !defined HAVE_LIBC
+
#include <os.h>
#include <types.h>
#include <hypervisor.h>
@@ -789,4 +791,4 @@
return i;
}
-
+#endif
Only in xen-unstable/extras/mini-os/lib: printf.c~
diff -ur oxen-unstable/extras/mini-os/lib...
2012 Sep 18
8
Collecting entropy from device_attach() times.
Hi.
I experimented a bit with collecting entropy from the time it takes for
device_attach() to run (in CPU cycles). It seems that those times have
enough variation that we can use it for entropy harvesting. It happens
even before root is mounted, so pretty early.
On the machine I'm testing it, which has minimal kernel plus NIC driver
I see 75 device_attach() calls. I'm being very careful
2012 Nov 26
13
[PATCH 0 of 4] Minios improvements for app development
This patch series contains a set of patches making minios rather easier
to use, from an application development point of view.
Overview of patches:
1 Command line argument parsing support, from Xen.
2 Weak console handler function.
3 Build system tweaks for application directories.
4 Trailing whitespace cleanup. (because it is very messy)
Patch 4 is likely to be more controversial than
2017 Jul 21
10
[PATCH v10 00/10] Reimplement inspection in the daemon.
v9 was here:
https://www.redhat.com/archives/libguestfs/2017-July/msg00139.html
This depends on these three series (the first two being single minor
patches):
https://www.redhat.com/archives/libguestfs/2017-July/msg00207.html
https://www.redhat.com/archives/libguestfs/2017-July/msg00209.html
https://www.redhat.com/archives/libguestfs/2017-July/msg00215.html
There is no substantive change. I
2017 Jul 17
12
[PATCH v9 00/11] Reimplement inspection in the daemon.
This depends on the patch series
"[PATCH 00/27] Reimplement many daemon APIs in OCaml."
(https://www.redhat.com/archives/libguestfs/2017-July/msg00098.html)
v8 was posted here:
https://www.redhat.com/archives/libguestfs/2017-June/msg00274.html
v9:
- I split up the mega-patch into a more reviewable series of
smaller, incremental patches.
There are some other changes vs v8, but
2017 Aug 09
16
[PATCH v12 00/11] Reimplement inspection in the daemon.
This fixes almost everything. Note that it adds an extra commit which
fixes the whole utf8/iconv business.
It's probably better to list what isn't fixed:
(1) I didn't leave the osinfo code around because I'm still haven't
looked too closely at virt-builder-repository. Can't we just fetch
this code from the git history when we need it?
(2) I didn't change the way
2017 Jul 31
16
[PATCH v11 00/10] Reimplement inspection in the daemon.
v10: https://www.redhat.com/archives/libguestfs/2017-July/msg00245.html
No actual change here, but I rebased and retested. Also this series
now does not depend on any other patch series since everything else
needed is upstream.
Rich.