#
303975 |
|
11-Aug-2016 |
gjb |
Copy stable/11@r303970 to releng/11.0 as part of the 11.0-RELEASE cycle.
Prune svn:mergeinfo from the new branch, and rename it to RC1.
Update __FreeBSD_version.
Use the quarterly branch for the default FreeBSD.conf pkg(8) repo and the dvd1.iso packages population.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
302408 |
|
08-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
#
298226 |
|
18-Apr-2016 |
avos |
libc: do not include <sys/types.h> where <sys/param.h> was already included
According to style(9): > normally, include <sys/types.h> OR <sys/param.h>, but not both. (<sys/param.h> already includes <sys/types.h> when LOCORE is not defined).
|
#
287332 |
|
31-Aug-2015 |
rodrigc |
Include stdlib.h to get devname() prototype.
Eliminates -Wmissing-prototypes warnings with gcc
|
#
225847 |
|
28-Sep-2011 |
ed |
Get rid of major/minor number distinction.
As of FreeBSD 6, devices can only be opened through devfs. These device nodes don't have major and minor numbers anymore. The st_rdev field in struct stat is simply based a copy of st_ino.
Simply display device numbers as hexadecimal, using "%#jx". This is allowed by POSIX, since it explicitly states things like the following (example taken from ls(1)):
"If the file is a character special or block special file, the size of the file may be replaced with implementation-defined information associated with the device in question."
This makes the output of these commands more compact. For example, ls(1) now uses approximately four columns less. While there, simplify the column length calculation from ls(1) by calling snprintf() with a NULL buffer.
Don't be afraid; if needed one can still obtain individual major/minor numbers using stat(1).
|
#
203290 |
|
31-Jan-2010 |
ed |
Perform some cleanups to devname(3).
- Make sure the mode argument is either a character or a block device. - Use S_IS*() instead of checking S_IF*-flags by hand. - Don't use kern.devname when the argument is already NODEV. - Always call snprintf with the proper amount of arguments corresponding with the format. - Perform some whitespace fixes. Tabs instead of 4 spaces, missing space for return statement. - Remove unneeded includes.
|
#
165903 |
|
09-Jan-2007 |
imp |
Per Regents of the University of Calfornia letter, remove advertising clause.
# If I've done so improperly on a file, please let me know.
|
#
150065 |
|
12-Sep-2005 |
stefanf |
Include a couple of headers to ensure consistency between the prototype and the function definition.
|
#
116610 |
|
20-Jun-2003 |
phk |
Add devname_r(3) which takes a buffer as argument.
|
#
115881 |
|
05-Jun-2003 |
phk |
Recognize the magic NODEV value. Format other unknown devices consistently in hex.
|
#
90039 |
|
01-Feb-2002 |
obrien |
Fix SCM ID's.
|
#
80552 |
|
29-Jul-2001 |
tmm |
Correct the old length argument passed to sysctlbyname to be a pointer to a size_t (not to an int).
MFC after: 2 days
|
#
71579 |
|
24-Jan-2001 |
deischen |
Remove _THREAD_SAFE and make libc thread-safe by default by 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
|
#
65955 |
|
16-Sep-2000 |
phk |
Pickup SPECNAMELEN from <sys/param.h> and use it.
A missing _PATH_DEVDB ("/var/run/dev.db") is not cause for a warning anymore, the file is effectively optional these days.
|
#
65632 |
|
09-Sep-2000 |
phk |
Add code to devname(3) so it can find the names of devices which were not present when dev_mkdb(8) was run.
First the dev_mkdb(8) database is searched, this caters for non-DEVFS cases where people have renamed a device.
If that fails we ask the kernel using sysctl kern.devname if the device driver has put a name in the dev_t. This covers DEVFS cloned devices.
If that also fails we format a string which isn't entirely useless.
|
#
48882 |
|
18-Jul-1999 |
phk |
Make devname(3) return something more intelligent than NULL if it doesn't find anything in the database.
|
#
23659 |
|
11-Mar-1997 |
peter |
This commit was generated by cvs2svn to compensate for changes in r23658, which included commits to RCS files with non-trunk default branches.
|
#
23658 |
|
11-Mar-1997 |
peter |
Import CSRG 4.4BSD-Lite2 lib/libc onto vendor branch
|
#
1573 |
|
27-May-1994 |
rgrimes |
BSD 4.4 Lite Lib Sources
|