4 ms·
Linux has a method - which is to add the new in parallel to the old, and remove the old at a later time when it's certainly no longer needed.
by noselasd 10y ago
Linux has a method - which is to add the new in parallel to the old, and remove the old at a later time when it's certainly no longer needed.
- gbrown_ 10y agoThat's OK for Linux specific stuff but stat() is pretty standard. So downstream will end up having to clutter code to the effect of - if running on Linux use statx() else if running on non-broken platform use stat().
- RandomBK 10y agoI wouldn't expect many applications to call the actual syscalls directly - most will defer to libc or some other layer of abstraction, where these differences can be hidden away.
- gbrown_ 10y agoDo'h, of course!
- masklinn 10y ago> That's OK for Linux specific stuff but stat() is pretty standard. The libc (~POSIX) call is "pretty standard" and uses typedef'd pseudo-abstract types (OSX's stat has been 64b optionally since 10.5 and by default since 10.6, though the 32b version seems to remain available in 10.11 by compiling with _DARWIN_NO_64_BIT_INODE), the underlying syscall is not in any way.