darwin Questions
2
Solved
Why does host_statistics64() in OS X 10.6.8 (I don't know if other versions have this problem) return counts for free, active, inactive, and wired memory that don't add up to the total amount of ra...
1
Solved
On Linux, sched.h contains the definition of
int sched_rr_get_interval(pid_t pid, struct timespec * tp);
to get the time slice of a process. However the file shipping with OS X El Capitan doesn...
1
Solved
How can I remove that '@' character from the file permissions?
'@' in file permissions for Mac/OSX machines, is used to show that an extended attribute is set with this file.
Tried chmod ...
Kesterson asked 22/12, 2016 at 19:56
1
Solved
Trying to experiment with other DYLD_ properties I've found that jvm is manipulating with properties and they are ignored during execution.
My Java test:
class Env {
public static void main(Strin...
Provencher asked 21/9, 2016 at 18:19
3
Solved
os.platform();
The above JS instruction returns the name of OS .
When it is runned on Ubuntu , it returns
'linux'
When it is runned on Macbook, it returns
'darwin'
I am wondered why do...
Daley asked 26/7, 2016 at 14:36
2
I'm new to make iPhone App with Objective-c
I want to make the App which sends a notification when iPhone screen is locked(Pressed Lock button)
How can I make this app?
I'm trying to make it usin...
Citric asked 6/6, 2016 at 4:59
2
Solved
While reading Darwin library in Swift 2.2, I found below codes.
@warn_unused_result
@_silgen_name("_swift_Darwin_sem_open2")
internal func _swift_Darwin_sem_open2(
name: UnsafePointer<CChar>...
3
Solved
I have a C application I am trying to compile for Mac OS X 10.6.4:
$ uname -v
Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386
My gcc is as follows:
...
Eward asked 23/10, 2010 at 10:14
2
Solved
I have some code that uses ctypes to try to determine if the file pointed to by sys.stdout is actually stdout. I know that on any POSIX-compliant system, and even on Windows, it should be safe to a...
5
Solved
I have a class with the following member functions:
/// caller pid
virtual pid_t Pid() const = 0;
/// physical memory size in KB
virtual uint64_t Size() const = 0;
/// resident memory for thi...
Marchal asked 20/10, 2008 at 23:38
1
Problem overview
I am trying to learn how to build a cross-compiler, specifically a version of GNU gcc 4.7.2 on a 64-bit Intel OS X host that targets i386-apple-darwin (32-bit Intel). However, I k...
Lialiabilities asked 27/3, 2013 at 18:24
2
Solved
So I know that the boost libraries are primarily header-only but there are a few which require compilation, for example Boost.Thread. In Darwin, how do I compile these and pass the -m32 flag so the...
2
Solved
Kernel-level threads (like Linux and some *BSD systems) or something else? If there is any difference, I'm using pthreads.
Lagomorph asked 16/12, 2010 at 23:44
3
I would like to rename symbols inside object files (.o) with something that would be the Mac equivalent of binutils' objcopy --redefine-syms tool.
I found no arm-apple-darwin10-objcopy. I tried th...
2
Solved
I want to port the xnu kernel to the ARM architecture, with the ultimate goal of being able to run a full kernel inside Qemu. While I do realise that this is a very difficult task, I still want to ...
2
Solved
On Mac OS X, binary executables in the DYLD format contain "loader commands" that instruct the library loading system how to handle the contents of the file. In particular, the loader command instr...
0
1
Solved
The following test always produces failures or bus errors for me on my Intel Mac Mini.
Compiler:
uname -a:
Darwin vogon13 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu...
Bowdlerize asked 29/6, 2011 at 21:19
2
Solved
I've used 'uniq -d -c file' in many shell scripts on linux machines, and it works.
On my MAC (OS X 10.6.7 with developer tools installed) it doesn't seems to work:
$ uniq -d -c testfile.txt
usage...
1
Solved
I'm using the apple gcc to compile a dylib that I'm going to redistribute. For various reasons I'm using some libraries, let's say libz to keep it simple.
Since this library is not typically found...
2
I have a Makefile for linux that I am porting over to Darwin. The makefile takes a bunch of .o files and links them together into a .so shared object. Okay, so I figured (am I wrong about this?) th...
Adrenocorticotropic asked 12/9, 2010 at 14:47
1
Solved
I have been able to register my own mach port to capture mach exceptions in my applications and it works beautifully when I target 32 bit. However when I target 64 bit, my exception handler catch_e...
Quincey asked 13/5, 2010 at 2:25
4
Solved
MacOs 10.6, if I have a file "unwanted.c" which contains:
class secret_thing {
public:
secret_thing() {}
void revealing_method_name() {}
};
main()
{
secret_thing obj;
obj.revealing_method_name(...
Holy asked 19/12, 2009 at 1:29
© 2022 - 2024 — McMap. All rights reserved.