1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
Commit Graph

27 Commits

Author SHA1 Message Date
bluhm
b605696432 Add some sanity length checks in VFS directory scan. This protects
us from bogus input from file systems like fuse.
bug report Ilja Van Sprundel; OK deraadt@
2017-07-28 21:54:49 +00:00
natano
937fcae7c6 Remove the unused flags argument from VOP_UNLOCK().
torture tested on amd64, i386 and macppc
ok beck mpi stefan
"the change looks right" deraadt
2016-03-19 12:04:15 +00:00
jsg
21dab745d7 Remove some includes include-what-you-use claims don't
have any direct symbols used.  Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@
2015-03-14 03:38:46 +00:00
tedu
fde894e58b primary change: move uvm_vnode out of vnode, keeping only a pointer.
objective: vnode.h doesn't include uvm_extern.h anymore.
followup changes: include uvm_extern.h or lock.h where necessary.
ok and help from deraadt
2014-12-16 18:30:03 +00:00
deraadt
5ff140d246 pass size argument to free()
ok doug tedu
2014-11-03 03:08:00 +00:00
tedu
9e8577e7ff add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.
2014-07-12 18:43:32 +00:00
guenther
91a535ff42 Switch time_t, ino_t, clock_t, and struct kevent's ident and data
members to 64bit types.  Assign new syscall numbers for (almost
all) the syscalls that involve the affected types, including anything
with time_t, timeval, itimerval, timespec, rusage, dirent, stat,
or kevent arguments.  Add a d_off member to struct dirent and replace
getdirentries() with getdents(), thus immensely simplifying and
accelerating telldir/seekdir.  Build perl with -DBIG_TIME.

Bump the major on every single base library: the compat bits included
here are only good enough to make the transition; the T32 compat
option will be burned as soon as we've reached the new world are
are happy with the snapshots for all architectures.

DANGER: ABI incompatibility.  Updating to this kernel requires extra
work or you won't be able to login: install a snapshot instead.

Much assistance in fixing userland issues from deraadt@ and tedu@
and build assistance from todd@ and otto@
2013-08-13 05:52:02 +00:00
tedu
2f7937a53f arguments to bcopy/memmove are reversed. put on thinking cap, then commit. 2013-06-09 13:15:26 +00:00
tedu
2c7bf282c5 change a bcopy to memmove (mainly to catch platforms that don't offer it) 2013-06-09 12:43:57 +00:00
nicm
b02988a7fb Add new KERN_PROC_CWD sysctl to get the current working directory of a process.
ok guenther deraadt
2011-12-09 16:14:54 +00:00
thib
3fea4a48de clean up a few things that where left to rot after bob's vfs cache work.
sync a few comments to reality (or remove them), remove the cn_hash member
from struct componentname, spacing.

ok beck@
2010-05-19 08:31:23 +00:00
schwarze
a3c911ba8b fix typos in comments, no code changes;
from Brad Tilley <brad at 16systems dot com>;
ok oga@
2010-01-14 23:12:11 +00:00
thib
627b2c48b0 Remove the VREF() macro and replaces all instances with a call to verf(),
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.
2009-07-09 22:29:55 +00:00
blambert
df132f574c Remove unused function proc_isunder()
"go for it" tedu@
2009-04-17 15:17:27 +00:00
ray
d874cce4b1 First pass at removing clauses 3 and 4 from NetBSD licenses.
Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.

OK deraadt@
2008-06-26 05:42:03 +00:00
thib
5d096cfa2f fix the "double-path" errors seen with getcwd by saving the orignal
buffer position in vfs_getcwd_getcache() and restoring it on error.
Use u_int32_t for the componentname hash, use the same type in
the diagnostic code in relookup() to prevent unsigned vs signed errors.

help, testing & ok kurt@
ok millert@, art@
2007-08-07 07:41:59 +00:00
beck
8d60ccf1da back out vfs change - todd fries has seen afs issues, and I'm suspicious
this can cause other problems.
2007-05-30 04:27:42 +00:00
beck
3cf4271fab Step one of some vnode improvements - change getnewvnode to
actually allocate "desiredvnodes" - add a vdrop to un-hold a vnode held
with vhold, and change the name cache to make use of vhold/vdrop, while
keeping track of which vnodes are referred to by which cache entries to
correctly hold/drop vnodes when the cache uses them.
ok thib@, tedu@, art@
2007-05-29 05:28:53 +00:00
pedro
71969c8dcf Don't cast malloc() 2006-05-17 12:52:12 +00:00
pedro
febab9326d Move vn_isunder() to vfs_vnops.c, that's the place for vn_* functions 2006-05-01 21:50:48 +00:00
pedro
2c216cede3 Rename functions and move prototypes around 2006-05-01 21:08:44 +00:00
pedro
f448c86d9c Make static functions global so DDB can see them 2006-05-01 20:03:06 +00:00
pedro
f775b432ff Prune remaining of the code, no binary change 2006-04-30 01:03:51 +00:00
pedro
722f08a86c Prune getcwd_common() and vn_isunder(), no binary change 2006-04-30 00:34:34 +00:00
pedro
0547a2766d Prune proc_isunder() and sys___getcwd(), no binary change 2006-04-30 00:08:13 +00:00
pedro
4dd0248d47 KNF bits 2006-04-29 21:31:15 +00:00
pedro
910d90972b Instrumentation for an in-kernel getcwd() implementation.
Not yet activated. Diff by marius@ long ago, from NetBSD.
Okay miod@ and krw@.
2006-04-28 08:34:31 +00:00