OSDN Git Service

Update release for LDP 3.67
[linuxjm/LDP_man-pages.git] / release / man3 / makedev.3
index 094a350..4a7d842 100644 (file)
@@ -1,6 +1,7 @@
 .\" Copyright (c) 2008 Linux Foundation, written by Michael Kerrisk
 .\"     <mtk.manpages@gmail.com>
 .\"
+.\" %%%LICENSE_START(VERBATIM)
 .\" Permission is granted to make and distribute verbatim copies of this
 .\" manual provided the copyright notice and this permission notice are
 .\" preserved on all copies.
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
 .\"
 .\"*******************************************************************
 .\"
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
-.TH MAKEDEV 3 2010\-09\-10 Linux "Linux Programmer's Manual"
+.\"
+.\" Japanese Version Copyright (c) 2012  Akihiro MOTOKI
+.\"         all rights reserved.
+.\" Translated 2012-05-08, Akihiro MOTOKI <amotoki@gmail.com>
+.\"
+.TH MAKEDEV 3 2012\-05\-10 Linux "Linux Programmer's Manual"
 .SH 名前
-makedev, major, minor \- manage a device number
+makedev, major, minor \- デバイス番号の操作
 .SH 書式
 .nf
-\fB#define _BSD_SOURCE\fP             /* See feature_test_macros(7) */
+\fB#define _BSD_SOURCE\fP             /* feature_test_macros(7) 参照 */
 \fB#include <sys/types.h>\fP
 
 \fBdev_t makedev(int \fP\fImaj\fP\fB, int \fP\fImin\fP\fB);\fP
 
-\fBint major(dev_t \fP\fIdev\fP\fB);\fP
-\fBint minor(dev_t \fP\fIdev\fP\fB);\fP
-
+\fBunsigned int major(dev_t \fP\fIdev\fP\fB);\fP
+\fBunsigned int minor(dev_t \fP\fIdev\fP\fB);\fP
 .fi
 .SH 説明
-A device ID consists of two parts: 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 \fIdev_t\fP.
+デバイス ID は、メジャー ID とマイナー ID の二つの部分から構成される。
+メジャー ID はデバイスクラスの識別に使用され、マイナー ID は
+そのクラス内の特定のデバイスインスタンスの識別に使用される。
+デバイス ID は \fIdev_t\fP 型を用いて表現される。
 
-Given major and minor device IDs, \fBmakedev\fP()  combines these to produce a
-device ID, returned as the function result.  This device ID can be given to
-\fBmknod\fP(2), for example.
+\fBmakedev\fP() は、指定されたメジャー ID とマイナー ID を組み合わせて
+デバイス ID を生成し、関数の結果として返す。
+このデバイス ID は \fBmknod\fP(2) などに渡すことができる。
 
-The \fBmajor\fP()  and \fBminor\fP()  functions perform the converse task: given a
-device ID, they return, respectively, the major and minor components.  These
-macros can be useful to, for example, decompose the device IDs in the
-structure returned by \fBstat\fP(2).
+関数 \fBmajor\fP() と \fBminor\fP() は \fBmakedev\fP() と反対の処理を行う。
+つまり、device ID を渡すと、それぞれメジャー ID 部分とマイナー ID 部分
+を返す。これらのマクロは、例えば、 \fBstat\fP(2) が返す構造体に含まれる
+デバイス ID を分解する場合などで役に立つ。
 .SH 準拠
 .\" The BSDs, HP-UX, Solaris, AIX, Irix
-The \fBmakedev\fP(), \fBmajor\fP(), and \fBminor\fP()  functions are not specified in
-POSIX.1, but are present on many other systems.
+関数 \fBmakedev\fP(), \fBmajor\fP(), \fBminor\fP() は
+POSIX.1 では規定されていないが、他の多くのシステムにも存在する。
 .SH 注意
-These interfaces are defined as macros.  Since glibc 2.3.3, they have been
-aliases for three GNU\-specific functions: \fBgnu_dev_makedev\fP(),
-\fBgnu_dev_major\fP(), and \fBgnu_dev_minor\fP().  The latter names are exported,
-but the traditional names are more portable.
+これらのインタフェースはマクロとして定義されている。
+glibc 2.3.3 以降では、これらは GNU 固有の 3 つの関数
+\fBgnu_dev_makedev\fP(), \fBgnu_dev_major\fP(), \fBgnu_dev_minor\fP() の
+エイリアス (別名) となっている。後者の名前がエクスポートされるが、
+以前から使われている前者の名前の方が移植性がある。
 .SH 関連項目
 \fBmknod\fP(2), \fBstat\fP(2)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.67 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。