diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:41:07 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:41:07 +0000 |
commit | 3af6d22bb3850ab2bac67287e3a3d3b0e32868e5 (patch) | |
tree | 3ee7a3ec64525911fa865bb984c86d997d855527 /man3/makedev.3 | |
parent | Adding debian version 6.05.01-1. (diff) | |
download | manpages-3af6d22bb3850ab2bac67287e3a3d3b0e32868e5.tar.xz manpages-3af6d22bb3850ab2bac67287e3a3d3b0e32868e5.zip |
Merging upstream version 6.7.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'man3/makedev.3')
-rw-r--r-- | man3/makedev.3 | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/man3/makedev.3 b/man3/makedev.3 index af44a79..dbf851a 100644 --- a/man3/makedev.3 +++ b/man3/makedev.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH makedev 3 2023-07-20 "Linux man-pages 6.05.01" +.TH makedev 3 2023-10-31 "Linux man-pages 6.7" .SH NAME makedev, major, minor \- manage a device number .SH LIBRARY @@ -13,9 +13,9 @@ Standard C library .SH SYNOPSIS .nf .B #include <sys/sysmacros.h> -.PP +.P .BI "dev_t makedev(unsigned int " maj ", unsigned int " min ); -.PP +.P .BI "unsigned int major(dev_t " dev ); .BI "unsigned int minor(dev_t " dev ); .fi @@ -25,14 +25,14 @@ a major ID, identifying the class of the device, and a minor ID, identifying a specific instance of a device in that class. A device ID is represented using the type .IR dev_t . -.PP +.P Given major and minor device IDs, .BR makedev () combines these to produce a device ID, returned as the function result. This device ID can be given to .BR mknod (2), for example. -.PP +.P The .BR major () and @@ -58,7 +58,6 @@ T{ .BR minor () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS The BSDs expose the definitions for these macros via .IR <sys/types.h> . @@ -68,7 +67,7 @@ None. BSD, HP-UX, Solaris, AIX, Irix. .\" The header location is inconsistent: .\" Could be sys/mkdev.h, sys/sysmacros.h, or sys/types.h. -.PP +.P These interfaces are defined as macros. Since glibc 2.3.3, they have been aliases for three GNU-specific functions: @@ -77,7 +76,7 @@ they have been aliases for three GNU-specific functions: and .BR gnu_dev_minor (). The latter names are exported, but the traditional names are more portable. -.PP +.P Depending on the version, glibc also exposes definitions for these macros from .I <sys/types.h> |