mach Questions

8

Solved

I am trying to convert an ObjC stackoverflow answer to Swift and failing. It looks like I am passing a UnsafeMutablePointer<mach_msg_type_number_t> when I should be passing an inout mach_msg_...
Leclair asked 18/12, 2014 at 22:26

2

Solved

My application uses mach_absolute_time to calculate the ticks since the last touch event and logs the user out if it surpasses an idle time limit of 10 minutes. This all works fine on iOS 6, but I...
Cosmography asked 6/11, 2013 at 16:49

4

Solved

I would like to know what's the difference betweenmach_vm_allocate and vm_allocate. I know mach_vm_allocate is only available in OS X and not iOS, but I'm not sure why. The file that has all the fu...
Kithara asked 24/2, 2013 at 7:33

2

Solved

I want to use Mach Exception Ports to handle exceptions for all tasks (processes) running on macOS. My understanding is that host_set_exception_ports is to be used in this case. However, host_set_e...
Marzipan asked 22/4, 2019 at 7:46

1

Solved

I have the following file: ; hello.s .section __TEXT,__text .globl _main _main: movl $0x2000001, %eax movl $42, %ebx syscall I try to run it as follows: # run.sh as -mmacosx-version-min=10...
Oconner asked 27/2, 2019 at 21:37

2

My application receives mach IPC messages and return answers for the callers. I have mach caller port(msgh_remote_port) and I want to know PID of the caller. Can I find on OSX by the mach port a PI...
Brawley asked 19/2, 2012 at 8:4

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...
Minelayer asked 9/2, 2013 at 15:37

1

Solved

I'm working on developing a macOS dylib framework, developed outside of Xcode, and I'm trying to understand the significance of the install_name option. For example, I can set the LC_ID_DYLIB sect...
Receptor asked 13/2, 2017 at 18:15

1

Solved

There appear to be some similar-looking long alphanumeric strings that commonly occur in Mach-O 64 bit executables and ELF 64-bit LSB executables among other symbols that are not alphanumeric: ca...
Sclar asked 5/9, 2016 at 0:13

3

I am doing a comparison of different IPC mechanisms available on Mac OS X (pipes, sockets, System V IPC, etc.), and I would like to see how Mach ports compare to the higher-level alternatives. Howe...
Fluxmeter asked 30/3, 2013 at 20:42

1

Solved

I'm working on a coreaudio user-space hal plugin based on the example developer.apple.com/library/mac/samplecode/AudioDriverExamples/Introduction/Intro.html In the plug-in implementation, I plan t...
Evanevander asked 15/10, 2015 at 1:21

1

Solved

I'd like to figure out how does VMMAP process operates. After running this executable with dtrace, it seems that the method proc_regionfilename that extract the address space of each section in t...
Decussate asked 22/2, 2016 at 8:51

2

Solved

I want to know the Total RAM available in my iPhone. For this I've used the following code. Note: Please do not interpret the question as to retrieve RAM statistics such as Wired, Inactive, Active...
Racecourse asked 11/7, 2012 at 7:34

1

I sometimes get following exception: [Mach] exception: 0x%x, count: %d, code: 0x%llx 0x%llx [Mach] Skipping registered port - it is invalid [Mach] Skipping registered port - mask does not match si...
Yoruba asked 5/6, 2014 at 9:48

2

Solved

I have an application which can log a stacktrace, which can be later used for debugging. On Windows, I've gotten by using the excellent JCLDebug unit provided by the JEDI project. Now that my app...
Blanc asked 13/4, 2014 at 5:35

2

Solved

How to get Wi-Fi encryption mode in iOS without private libraries?
Unprofessional asked 19/7, 2013 at 10:34

1

Solved

I'm intentionally causing an EXC_BAD_ACCESS. By triggering a write to an NSObject in a read-only virtual memory page. Ideally, I'd like to catch EXC_BAD_ACCESS, mark the virtual memory page as read...

2

I am trying to install a privileged helper tool to perform some elevated work. I am using SMJobBless for the same. I am able to install the tool fine and also able to communicate with it. I am usin...
Potman asked 28/6, 2013 at 13:51

1

Solved

Knowing both are micro-kernels, what is the difference b/w Mach (on which Hurd is based on) and Minix. Are there any architectural differences? A little light over "what is L4" would be very helpfu...
Electrolyze asked 16/4, 2013 at 12:58

3

In KEXT, I am listening for file close via vnode or file scope listener. For certain (very few) files, I need to send file path to my system daemon which does some processing (this has to happen in...
Subjugate asked 25/4, 2012 at 5:58

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 ...
Fauman asked 23/12, 2011 at 12:46
1

© 2022 - 2024 — McMap. All rights reserved.