OSDN Git Service

(split) LDP v3.24 -> v3.29 の定型的な変更内容を反映。
[linuxjm/LDP_man-pages.git] / draft / man3 / getumask.3
1 .\" Copyright (C) 2002 Andries Brouwer <aeb@cwi.nl>
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .\" This replaces an earlier man page written by Walter Harms
24 .\" <walter.harms@informatik.uni-oldenburg.de>.
25 .\"
26 .\" Japanese Version Copyright (c) 2002 Akihiro MOTOKI all rights reserved.
27 .\" Translated Thu 05 Dec 2002 by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
28 .\"
29 .TH GETUMASK 3 2010-09-10 "GNU" "Linux Programmer's Manual"
30 .\"O .SH NAME
31 .SH Ì¾Á°
32 .\"O getumask \- get file creation mask
33 getumask \- ¥Õ¥¡¥¤¥ëºîÀ®¥Þ¥¹¥¯¤ò¼èÆÀ¤¹¤ë
34 .\"O .SH SYNOPSIS
35 .SH ½ñ¼°
36 .nf
37 .\"O .BR "#define _GNU_SOURCE" "             /* See feature_test_macros(7) */"
38 .BR "#define _GNU_SOURCE" "             /* feature_test_macros(7) »²¾È */"
39 .br
40 .B "#include <sys/types.h>"
41 .br
42 .B "#include <sys/stat.h>"
43 .sp
44 .B "mode_t getumask(void);"
45 .fi
46 .\"O .SH DESCRIPTION
47 .SH ÀâÌÀ
48 .\"O This function returns the current file creation mask.
49 ¤³¤Î´Ø¿ô¤Ï¸½ºß¤Î¥Õ¥¡¥¤¥ëºîÀ®¥Þ¥¹¥¯¤òÊÖ¤¹¡£
50 .\"O It is equivalent to
51 ´ðËÜŪ¤Ë¤Ï°Ê²¼¤ÈÅù²Á¤Ç¤¢¤ë¡£
52 .in +4n
53 .nf
54
55 mode_t getumask(void)
56 {
57     mode_t mask = umask( 0 );
58     umask(mask);
59     return mask;
60 }
61
62 .fi
63 .in
64 .\"O except that it is documented to be thread-safe (that is, shares
65 .\"O a lock with the
66 .\"O .BR umask (2)
67 .\"O library call).
68 ¥É¥­¥å¥á¥ó¥È¤Ë¤è¤ë¤È¡¢¤³¤Î´Ø¿ô¤Ï
69 ¥¹¥ì¥Ã¥É¡¦¥»¡¼¥Õ¤Ç¤¢¤ë
70 .RB ( umask (2)
71 ¥é¥¤¥Ö¥é¥ê¡¦¥³¡¼¥ë¤È¥í¥Ã¥¯¤ò¶¦Í­¤¹¤ë)
72 ÅÀ¤¬°Û¤Ê¤ë¡£
73 .\"O .SH "CONFORMING TO"
74 .SH ½àµò
75 .\"O This is a vaporware GNU extension.
76 ¥É¥­¥å¥á¥ó¥È¤Ë½ñ¤¤¤Æ¤¢¤ë¤À¤±¤Î GNU ³ÈÄ¥¤Ç¤¢¤ë¡£
77 .\"O .SH NOTES
78 .SH Ãí°Õ
79 .\"O This function is documented but not implemented yet in glibc,
80 .\"O as at version 2.9.
81 ¥Ð¡¼¥¸¥ç¥ó 2.9 »þÅÀ¤Î glibc ¤Ç¤Ï¡¢
82 ¤³¤Î´Ø¿ô¤Ë¤Ä¤¤¤Æ¤Îµ­ºÜ¤Ï¤¢¤ë¤¬¡¢¤Þ¤À¼ÂÁõ¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
83 .\"O .SH "SEE ALSO"
84 .SH ´ØÏ¢¹àÌÜ
85 .BR umask (2)