site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mac.com; s=1a1hai; t=1596391681; bh=z1Ii0TvfCTjEllIYCrYLEGWSnXkjZKgLhcF6IOwIxCQ=; h=Content-Type:Mime-Version:Subject:From:Date:Message-Id:To; b=Dyjrw7Tu7jrHg6tC1kEkHnczpSoz1XA/L0rLmNsu1nn55gPOImA29fFsilfv0+9i3 xoUuITN2croGGW+ptn6RkD0HkUwAZT50J+HJF272ZEQymSVgY3LFQgcn7DWP3oNgIR m+4TTOvPJyEe7qykyIlGYWIu5+urUisIwVsGCL0sTEUZRSdxqlCiMfHBsLnt3e6yGj Cem56oBclTyal4xgjCLN9pNZgjnWrxdh0uNn+8EuL6UwyMYugBgKD2aLJZqF1Mqjuv /iI7JbWzo7zr5yqn4Fzoxyba+W6gpAVdFB6s9RqVvAebEfHZjtOXiaJ0TVvJ/T6i+Q SIkxTLwBWg2VQ== Solved: The problem was the differing definition of AT_FDCWD in Linux and Darwin
Am 02.08.2020 um 15:15 schrieb Alexander von Below via Darwin-kernel <darwin-kernel@lists.apple.com>:
Hello Darwin-Kernel List,
my suspicion is, that this is the right place to ask: I am currently trying to get a grip on ARM64 assembly, now that x86 as been eliminated.
However, I have problems to call the openat system call:
https://github.com/below/HelloSilicon/blob/a40f36e48f91cb16d915c1193c3846f23...
This will return „9“ in X0, regardless of the input file name.
I checked bsd/kern/syscalls.master, (https://github.com/apple/darwin-xnu/blob/a449c6a3b8014d9406c2ddbdc81795da24a...) but 463 seems to be the wrong number, or maybe I am doing it wrong.
The last info I have on the subject is „OS X Internals“ … which still is based on PPC. If you have some newer or better info, I’d appreciate that!
Thanks
Alex
P.S.: I am aware that the syscall interface is considered „private and subject to change“. This is for academic purposes only _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-kernel/below%40mac.com
This email sent to below@mac.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com