Age | Commit message (Collapse) | Author |
|
Pointed out by Alexander Polakov (polachok at gmail.com)
ok deraadt@
|
|
on them too
ok deraadt@, miod@
|
|
ok krw@ matthew@
|
|
futimens(2) system call, and refactor futimes(2) to share the same
code. (As with other openat(2) system call stuff, this is not exposed
to userland yet.)
naddy@ pointed out rsync expects UTIME_* if openat(2) is available
tweaks and ok guenther@; tested by naddy@ in a bulk build
|
|
use it.
ok tedu@, guenther@
|
|
symbolic links even when the AT_SYMLINK_NOFOLLOW flag is passed.
noticed by naddy@ testing gnulib
ok deraadt@ and presumably tedu@ (who wrote a similar diff)
|
|
to GENERIC, wrap compat_o48_sys_getdirentries() with an appropriate
#ifdef, and use struct compat_o48_sys_getdirentries_args instead of
struct sys_getdirentries_args.
|
|
sys_osigaltstack() is 7 years old and no longer needed; all glory to
the sys_sigaltstack()!
sys_ogetdirentries() is about 9 months old, but still acceptable
within our release cycle; move from STD to COMPAT_48 to make this
clearer for tedu@ next year.
sys_sbrk() and sys_sstk() are completely obsolete: all they do is
return ENOSYS.
ok guenther@
|
|
POSIX Issue 7.
Requested by oga@ (and maybe djm@); ok guenther@
|
|
struct sockaddress; mostly from freebsd. ok deraadt@ tedu@ nicm@
|
|
AT_SYMLINK_FOLLOW flags. Refactor sys_lstat to call dofstatat() with
AT_SYMLINK_NOFOLLOW. Fix sys_link() to use AT_SYMLINK_FOLLOW when
calling dolinkat().
Additionally, fix a bug in VOP_ACCESS() where we might sleep while not
holding a reference count on the ucred object we pass down.
ok tedu@
|
|
added in POSIX Issue 7: openat(), mknodat(), mkfifoat(), linkat(),
symlinkat(), unlinkat(), faccessat(), fstatat(), readlinkat(),
fchmodat(), fchownat(), utimensat(), renameat(), and mkdirat().
This diff mostly just refactors the existing sys_foo() logic into a
common dofooat() function that can then be called by both sys_foo()
and sys_fooat(). Some of the new system calls support new flags to
control their behavior, and proper support for these will be added in
subsequent diffs.
Incorporating suggestions from thib@, guenther@, and tedu@.
ok tedu@, thib@, deraadt@, guenther@
|
|
ok matthew@ tedu@
|
|
FREF()/FRELE() in lseek() so our struct file doesn't disappear in the
mean time.
Incorporating suggestions from tedu@ and guenther@; ok guenther@
|
|
disk drivers are now smart enough to handle this correctly, as they
need to also handle pread(2)/pwrite(2).
ok deraadt@, krw@; ok marco@ on an similar, earlier diff
|
|
so it works correctly with large offsets (and matches other systems).
This requires adding a new getdirentries syscall, with the old one
renamed to ogetdirentries. All in-tree consumers of getdirentries()
have been updated. Bump libc and libpthread major numbers.
OK and with deraadt@
|
|
causing problems, then it is nonsense to instead fail at the 2GB line.
Much more discussion needed.
|
|
diff. A bit of paranoia suggested by beck@.
|
|
otherwise truncation will occur on archs where LONG LONG and LONG
are not the same.
Noticed at n2k10. Error return suggested by deraadt@.
ok beck@ millert@ deraadt@ guenther@
|
|
4.3 compat code in mount. This is a flag day for those of you still running
4.3 BSD binaries on your vaxen. :)
ok deraadt dlg guenther thib
|
|
|
|
miod@ deraadt@ ok.
|
|
ok millert@ blambert@ otto@
|
|
it. thib@ ok'd the idea and an earlier diff.
|
|
which is exactly what the macro does.
Macro's that are nothing more then:
#define FUNCTION(arg) function(arg)
are almost always pointless and should go away.
OK blambert@
Agreed by many.
|
|
Special thanks to ckuethe's ntpd for noticing the problem.
ok deraadt@
|
|
deadlock for ckuethe@
"if you have to revert, you have to revert" deraadt@
|
|
dofile{read,write}v, so remove the former and rework it so that everything
uses the latter
"nice" deraadt@ "reads ok" oga@ spastic 'OMG Ponies!!!!' weingart@
|
|
atomically and not after sleeping.
ok deraadt pedro
|
|
it did not sleep. this is used to avoid checkdirs() to avoid having
to restart the allproc walk every time through
idea from tedu, ok thib pedro
|
|
to be snapped. Change it so that everytime it sleeps it restarts from the
top of the list.
ok art
|
|
softupdates are reported too statfs via other means. missed this block
in in rev1.148 where the same block was removed from sys_statfs().
|
|
softupdates are reported too statfs via the mount point flags
or the mount_info part of statfs;
ok pedro@
|
|
Ok reyk@, "kill kill kill" thib@
|
|
From: Pierre Riteau pierre.riteau_att_gmail.com
OK miod@
|
|
in rev 1.141. From Christian Ehrhardt and Pedro Martelletto.
OK hshoexer@ miod@
|
|
|
|
eyeballed and ok dlg@
|
|
cases we could end up releasing an unlocked lock.
fixes pr's 5534 and 5564, confirmed by submitters.
thanks!.
ok art@
|
|
|
|
with a disklabel. Original diff from pedro@; ok pedro@ deraadt@
|
|
effectively been a no-op for quite some time now,
without promise for future usage.
ok pedro@
Testing by krw@ (earlier diff)
and Johan Mson Lindman (tybollt@solace.miun.se)
|
|
field unless it's root that's asking. This far, this has been done by
putting a struct statfs on the stack and modifying it.
struct statfs is large. Large things on the stack are bad. Create
copyout_statfs() that copies out a struct statfs to userland, does the
necessary root check and gives userland what it needs withtout wasting
stack space.
pedro@, deraadt@ ok.
|
|
requested by and ok pedro
|
|
ok tedu, pedro
|
|
ok pedro
|
|
used and will never be used this way in VFS
requested by and ok pedro, ok krw, biorn
|
|
|
|
|
|
has coming...
|