4 ms·
I believe most of the open source HFS code was from NeXT rather than Mac OS. A lot of classic Mac OS was still 68k assembly. eg: https://github.com/apple-oss-
by ksherlock 3y ago
I believe most of the open source HFS code was from NeXT rather than Mac OS. A lot of classic Mac OS was still 68k assembly.
eg:
https://github.com/apple-oss-distributions/hfs/blob/hfs-106/hfs_util/hfsutil_main.c https://github.com/apple-oss-distributions/hfs/blob/hfs-106/...
13-Jan-1998 jwc first cut (derived from old NextStep macfs.util code and cdrom.util code).
- i386 3y agoI wonder how they got this working on x86 with Star Trek. Porting to x86 assembly? ouch https://en.wikipedia.org/wiki/Star_Trek_project https://en.wikipedia.org/wiki/Star_Trek_project
- astrange 3y agoThat's the wrong place (confusingly enough), look in here. https://github.com/apple-oss-distributions/xnu/tree/rel/xnu-124/bsd/hfs https://github.com/apple-oss-distributions/xnu/tree/rel/xnu-...
- ksherlock 3y agook but still: https://github.com/apple-oss-distributions/xnu/blob/rel/xnu-124/bsd/hfs/hfs_vnodeops.c https://github.com/apple-oss-distributions/xnu/blob/rel/xnu-... (c) 1997-1999 Apple Computer, Inc. All Rights Reserved (c) 1990, 1992 NeXT Computer, Inc. All Rights Reserved
- astrange 3y agoI think NeXT might've written an HFS Standard reader or something, but they used the Apple code for HFS+ so it ended up as a hybrid. https://github.com/apple-oss-distributions/xnu/blob/rel/xnu-124/bsd/hfs/hfscommon/Misc/FileExtentMapping.c https://github.com/apple-oss-distributions/xnu/blob/rel/xnu-...