summaryrefslogtreecommitdiff
path: root/lib/libc/gen/fstab.c
Commit message (Collapse)AuthorAgeFilesLines
* - Add setfstab() and getfstab().Matthew N. Dodd2003-04-071-2/+39
| | | | | | | | - Use the environment variable 'PATH_FSTAB' if set rather than the hardcoded '/etc/fstab' (fstab.h:_PATH_FSTAB) Notes: svn path=/head/; revision=113219
* * Remove __P and convert to ANSI prototypes.David E. O'Brien2002-02-011-10/+7
| | | | | | | | * Remove 'register'. (some functions had 7+ register functions...) * Fix SCM ID's. Notes: svn path=/head/; revision=90045
* Compensate for "Compensate for header dethreading" by backing it out.Bruce Evans2001-10-101-2/+0
| | | | Notes: svn path=/head/; revision=84768
* Removed duplicate VCS ID tags, as per style(9).Ruslan Ermilov2001-08-131-2/+0
| | | | Notes: svn path=/head/; revision=81586
* Compensate for header dethreading.Mark Murray2001-05-011-0/+2
| | | | Notes: svn path=/head/; revision=76178
* Remove _THREAD_SAFE and make libc thread-safe by default byDaniel Eischen2001-01-241-0/+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 Notes: svn path=/head/; revision=71579
* Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(),Jason Evans2000-01-271-6/+6
| | | | | | | | | | | | | | | | | | | | just use _foo() <-- foo(). In the case of a libpthread that doesn't do call conversion (such as linuxthreads and our upcoming libpthread), this is adequate. In the case of libc_r, we still need three names, which are now _thread_sys_foo() <-- _foo() <-- foo(). Convert all internal libc usage of: aio_suspend(), close(), fsync(), msync(), nanosleep(), open(), fcntl(), read(), and write() to _foo() instead of foo(). Remove all internal libc usage of: creat(), pause(), sleep(), system(), tcdrain(), wait(), and waitpid(). Make thread cancellation fully POSIX-compliant. Suggested by: deischen Notes: svn path=/head/; revision=56698
* Add three-tier symbol naming in support of POSIX thread cancellationJason Evans2000-01-121-6/+8
| | | | | | | | | points. For library functions, the pattern is __sleep() <-- _libc_sleep() <-- sleep(). The arrows represent weak aliases. For system calls, the pattern is _read() <-- _libc_read() <-- read(). Notes: svn path=/head/; revision=55837
* Fix the fixfsfile() so that it works for both block and character devicesPeter Wemm1999-12-231-1/+7
| | | | | | | | | as root. This could fix the "filesystem still dirty after fsck" problem. Submitted by: bde Notes: svn path=/head/; revision=55028
* Ignore the fs_spec entry for "/" in /etc/fstab if the device whichBruce Evans1999-01-011-0/+29
| | | | | | | | | | | is actually mounted on "/" can be determined using statfs() and is in /dev. This fixes fsck operating on the wrong device when the fs_spec entry is only an alias. The aliased case became more dangerous when the ROOTSLICE_HUNT hack was committed in mount(8). ROOTSLICE_HUNT may be unnecessary now. Notes: svn path=/head/; revision=42232
* Minor cleanup, mostly unused vars and missing #includes.Poul-Henning Kamp1995-10-221-8/+9
| | | | Notes: svn path=/head/; revision=11659
* Change strtok() to strsep(), using strtok() can cause memory corruptionAndrey A. Chernov1995-03-241-16/+29
| | | | | | | if user program use it too in the same time. Notes: svn path=/head/; revision=7327
* Make errors in /etc/fstab print the line numbers where they occured.Jordan K. Hubbard1994-09-081-2/+13
| | | | | | | | Also be more tolerant of blank lines and comments in the file. Submitted by: jkh Notes: svn path=/head/; revision=2569
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+202
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573