master
bump posix spec 2008 -> 2024;
remove unused var
remove references to fs.posix.setuid; ok tedu
Stop using MAXBSIZE to eliminate sys/param.h including (which injects a ton of namespace intrusion). Create local sizes, and refactor some code along the way. ok millert
Now that we have dup2(), csh can use it instead of close()+dup(). Also, as used here, dup/dup2 will clear the close-on-exec flag, so delete the superfluous fcntl(F_SETFD,0) calls
gmtime(3) / locatime(3) can fail when timestamps are way off.
Rewrite bytes/sec calculation using fixed point math.
Adjust alignment when printing inode columns
- make usage() static and __dead - while here switch main to return instead of exit(3)
Delete obsolete /* ARGSUSED */ lint comments.
remove duplicate unistd.h include
Denote multiple arguments with 'arg ...' not 'args'
Since netstart r1.208 (2020), it no longer applies /etc/myname
Combine three almost identical synopsis lines into a single one, and three almost identical entries in the options list likewise, bcause all three have identical meaning and almost identical syntax. While here, call the list of signals in signal(3) "complete" rather than "more complete", because that's also true, a stronger statement, and more concise. OK jmc@
Minor improvement of the "move right by character" command ('l', SPACE) in VI editing mode. If we are on the first byte in the command line and it is a UTF-8 continuation byte, then it actually takes up a column in the terminal, which typically displays U+FFFD REPLACEMENT CHARACTER. Consequently, moving past this byte should consume one right movement. OK lucas@
More correction of section 3 layout. directory->opendir, fts->fts_open, getcap->cgetent. pwcache->user_from_uid. And then repair references. ok jmc
printtime: use the Unix epoch if the file's timestamp is invalid Fixes a crash in "ls -l" for files with bogus timestamp values. OK miod@ denis@
remove prototypes with no matching function and externs with no var partly checked by millert@
When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
remove duplicate includes and license; feedback and ok miod@
use a more readable explanation of directory creation; from evan silberman, tweaked by millert
remove obsolete rsz keyword. ok job
Change all tame callers to namechange to pledge(2).
use warnc(3) instead of handrolling it; OK florian
Fix two bugs that naddy@ reported on tech@: 1. POSIX requires that "mkdir dir; ln -s dir lnk; rmdir lnk/" removes "dir" because rmdir(1) is required to behave like rmdir(2) in this respect and that requires resolving the pathname, and "Base Definitions 4.16 Pathname Resolution" specifies that pathname resolution of "lnk" is complete, while pathname resolution of "lnk/" is not complete, but it resolves to "dir". 2. rmdir -p on an absolute path should not fail with the spurious error "rmdir: : No such file or directory".
rewrite was in Tahoe ok cheloha@
Add, correct, and improve HISTORY sections. From Sevan Janiyan <venture37 at geeklan dot co dot uk>. Verified using http://minnie.tuhs.org/.
Use timespeccmp() and st_mtim intead of comparing st_mtime.
unlink systrace from the build. pledge is the glorious future that awaits. the rest of systrace to be deleted in a serious of followup commits. ok from larger openbsd developer community
using COPTS is probably better than CFLAGS