aboutsummaryrefslogtreecommitdiff
path: root/toys/other/eject.c
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-06-07 16:18:00 -0700
committerRob Landley <rob@landley.net>2019-06-08 13:10:10 -0500
commit78954416db3032f93317deae1120be9cd7ec9783 (patch)
tree9c8f58f8c5d4c56ba5fd951b39e84dd15c68a0bd /toys/other/eject.c
parent61ef1dccec4e6bf1c56384ed1cd45f93dcb6bd4c (diff)
downloadtoybox-78954416db3032f93317deae1120be9cd7ec9783.tar.gz
macOS: numerous fixes.
This patch adds a BSD version of xgetmountlist (for the path == NULL case only), tested on macOS. It also papers over the differences between macOS' and Linux's xattr APIs. For once I think the macOS one is better. The imitation of mknodat I've had to write swings things back in Linux's favor though. BSD calls f_frsize by the name f_iosize instead. (FWIW, it looks like this is meaningless on Linux and actually meaningful on macOS.) I've added one #if to toys/ --- I'm calling pathconf in stat.c to work around the absence of f_namelen, and have left a TODO with an explanation. I'm not sure what the best fix is here, so punting. No-one can agree what f_fsid is, even if they're all basically the same, so work around the `val` versus `__val` issue between macOS and Linux. With this patch, it's now possible to build cp/mv/install and stat for macOS too. (Which completes the set of "toybox commands currently used on Linux as part of the AOSP build" if you ignore stuff that deals with processes, which I doubt we'll ever be able to support for lack of any API.)
Diffstat (limited to 'toys/other/eject.c')
0 files changed, 0 insertions, 0 deletions