summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/getvfsent.c
Commit message (Collapse)AuthorAgeFilesLines
* #include <sys/linker.h> for kldload()'s prototype.tjr2003-01-041-0/+1
|
* - Introduce a new struct xvfsconf, the userland version of struct vfsconf.mux2002-08-101-31/+0
| | | | | | | | | | | | | | | | | | | | | | | - Make getvfsbyname() take a struct xvfsconf *. - Convert several consumers of getvfsbyname() to use struct xvfsconf. - Correct the getvfsbyname.3 manpage. - Create a new vfs.conflist sysctl to dump all the struct xvfsconf in the kernel, and rewrite getvfsbyname() to use this instead of the weird existing API. - Convert some {set,get,end}vfsent() consumers to use the new vfs.conflist sysctl. - Convert a vfsload() call in nfsiod.c to kldload() and remove the useless vfsisloadable() and endvfsent() calls. - Add a warning printf() in vfs_sysctl() to tell people they are using an old userland. After these changes, it's possible to modify struct vfsconf without breaking the binary compatibility. Please note that these changes don't break this compatibility either. When bp will have updated mount_smbfs(8) with the patch I sent him, there will be no more consumers of the {set,get,end}vfsent(), vfsisloadable() and vfsload() API, and I will promptly delete it.
* Fix SCM ID's.obrien2002-02-011-1/+3
|
* Compensate for "Compensate for header dethreading" by backing it out.bde2001-10-101-2/+0
|
* Compensate for header dethreading.markm2001-05-011-0/+2
|
* Remove _THREAD_SAFE and make libc thread-safe by default bydeischen2001-01-241-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adding (weak definitions to) stubs for some of the pthread functions. If the threads library is linked in, the real pthread functions will pulled in. Use the following convention for system calls wrapped by the threads library: __sys_foo - actual system call _foo - weak definition to __sys_foo foo - weak definition to __sys_foo Change all libc uses of system calls wrapped by the threads library from foo to _foo. In order to define the prototypes for _foo(), we introduce namespace.h and un-namespace.h (suggested by bde). All files that need to reference these system calls, should include namespace.h before any standard includes, then include un-namespace.h after the standard includes and before any local includes. <db.h> is an exception and shouldn't be included in between namespace.h and un-namespace.h namespace.h will define foo to _foo, and un-namespace.h will undefine foo. Try to eliminate some of the recursive calls to MT-safe functions in libc/stdio in preparation for adding a mutex to FILE. We have recursive mutexes, but would like to avoid using them if possible. Remove uneeded includes of <errno.h> from a few files. Add $FreeBSD$ to a few files in order to pass commitprep. Approved by: -arch
* vfsload maps into kldload only now, no more fork/exec of modload(8).peter1999-04-191-85/+1
|
* A feeble attempt at kld compatability. The mount_* programs assume thatpeter1998-11-031-1/+10
| | | | | | | | | | | they cannot mount a filesystem that they cannot see in getvfsbyname(). Part 1 of this is a hack, make vfsisloadable() always return true - the ultimate decider of whether it's loadable or not is kldload() or mount(). Part 2 of this is to have vfsload() call kldload(2) and return success if it works. This means that we will use a viable kld module in preference to an LKM! Ultimately, the thing to do is remove the hacks to do a vfsload in all the mount_* commands and let the kernel do it by itself in mount(2).
* Moved most of the (source-level) compatibility hacks for the vfsconfbde1998-01-201-2/+4
| | | | | interface from sys/mount.h to libc/getvfsent.c The new interface is now the default.
* Started getting rid of the compatibility cruft for the Lite1 mount()bde1998-01-171-0/+2
| | | | | | | | and the pre-Lite2 vfsconf interfaces. For getvfsent.c, just define _OLD_VFSCONF. This will give the current default macro hacks in <sys/mount.h> when the default is reversed. This is an intermediate step.
* Changed vfc_typenum back to vfc_index. The old vfsconf struct is nowbde1997-03-031-1/+1
| | | | visible again, and the new vfsconf struct didn't match reality.
* lite2 remame: vfc_index --> vfc_typenumadam1997-02-121-1/+1
|
* Fix an off-by-one error in getvfsent().joerg1996-10-261-1/+1
| | | | Detected by: phkmalloc :)
* Fix for vfsload(3):wollman1996-05-171-7/+7
| | | | | | - Don't allow non-root users to specify LKMDIR. - Don't allow any users to specify TMPDIR. - Call /sbin/modload using execl() rather than execlp().
* From Lite2: rename fs to vfs.hsu1996-03-111-1/+1
|
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
|
* Fix so that people who don't have LKMs compiled in their kernels don'twollman1994-09-251-0/+8
| | | | | get hosed: vfsisloadable() always returns false if /dev/lkm cannot be opened for writing.
* Pass -q and -u flags to modload so that it shuts up and doesn't leavewollman1994-09-221-1/+1
| | | | modules lying around.
* Fix stupid memory-allocation error.wollman1994-09-221-3/+9
|
* Added VFS functions: getvfsvbyname, getvfsbytype, getvfsent, setvfsent,wollman1994-09-221-0/+234
endvfsent, vfsisloadable, vfsload. Someday these will even be documented.
OpenPOWER on IntegriCloud