OpenGrok
Cross Reference: getdevmajor.c
xref
: /
src
/
lib
/
libc
/
gen
/
getdevmajor.c
Home
|
History
|
Annotate
|
Download
|
only in
gen
History log of
/src/lib/libc/gen/getdevmajor.c
Revision
Date
Author
Comments
1.7
20-Jan-2024
christos
Catch up with all the lint warnings since exit on warning was disabled.
Disable 'missing header declaration' and 'nested extern' warnings for now.
1.6
13-Mar-2012
christos
PR/45989: Martin Husemann: lint invocation does include -w only on i386
- turn lint -w for all the platforms after fixing the lint warnings.
- add _DIAGASSERTS() for casts that would assign values to types that
would not fit.
- change types, add casts
- change into ansii prototypes
- turn on _DIAGNOSTIC for libc (during current, to be eliminated for release
builds)
approved by core@
1.5
20-Jan-2009
drochner
branches: 1.5.8;
cleanup after devmajor_t:
-since getdevmajor(3) is now binary compatible again with <=5.0
there is no need to rename, I've just left a __getdevmajor50 symbol
temporarily for those who track -current
-update manpage
1.4
20-Jan-2009
drochner
Change major()/minor() to return 32-bit types again, called
devmajor_t/devminor_t, as proposed on tech-kern.
This avoids 64-bit arithmetics and 64-bit printf formats in parts
of the kernel where it is not really useful, and helps clarity.
1.3
16-Dec-2004
atatat
Fix a whitespace nit and make this compile again. So there.
1.2
16-Dec-2004
christos
knf fixes.
1.1
16-Dec-2004
atatat
Add a function called getdevmajor().
It tells you the major device number for whatever character or block
device you ask it. This is sort of the inverse of devname(3) but not
quite, since it's backed by the kernel (sysctl's kern.drivers
information) and not a database cobbled together from the contents of
the filesystem.
1.5.8.1
17-Apr-2012
yamt
sync with head
Indexes created Fri Sep 26 20:09:58 GMT 2025