OSDN Git Service

cf6d6902f2dbe792ee9f78b29b021c4d56579c7b
[linuxjm/LDP_man-pages.git] / release / 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 .SH Ì¾Á°
31 getumask \- ¥Õ¥¡¥¤¥ëºîÀ®¥Þ¥¹¥¯¤ò¼èÆÀ¤¹¤ë
32 .SH ½ñ¼°
33 .nf
34 .BR "#define _GNU_SOURCE" "             /* feature_test_macros(7) »²¾È */"
35 .br
36 .B "#include <sys/types.h>"
37 .br
38 .B "#include <sys/stat.h>"
39 .sp
40 .B "mode_t getumask(void);"
41 .fi
42 .SH ÀâÌÀ
43 ¤³¤Î´Ø¿ô¤Ï¸½ºß¤Î¥Õ¥¡¥¤¥ëºîÀ®¥Þ¥¹¥¯¤òÊÖ¤¹¡£
44 ´ðËÜŪ¤Ë¤Ï°Ê²¼¤ÈÅù²Á¤Ç¤¢¤ë¡£
45 .in +4n
46 .nf
47
48 mode_t getumask(void)
49 {
50     mode_t mask = umask( 0 );
51     umask(mask);
52     return mask;
53 }
54
55 .fi
56 .in
57 ¥É¥­¥å¥á¥ó¥È¤Ë¤è¤ë¤È¡¢¤³¤Î´Ø¿ô¤Ï
58 ¥¹¥ì¥Ã¥É¡¦¥»¡¼¥Õ¤Ç¤¢¤ë
59 .RB ( umask (2)
60 ¥é¥¤¥Ö¥é¥ê¡¦¥³¡¼¥ë¤È¥í¥Ã¥¯¤ò¶¦Í­¤¹¤ë)
61 ÅÀ¤¬°Û¤Ê¤ë¡£
62 .SH ½àµò
63 ¥É¥­¥å¥á¥ó¥È¤Ë½ñ¤¤¤Æ¤¢¤ë¤À¤±¤Î GNU ³ÈÄ¥¤Ç¤¢¤ë¡£
64 .SH Ãí°Õ
65 ¥Ð¡¼¥¸¥ç¥ó 2.9 »þÅÀ¤Î glibc ¤Ç¤Ï¡¢
66 ¤³¤Î´Ø¿ô¤Ë¤Ä¤¤¤Æ¤Îµ­ºÜ¤Ï¤¢¤ë¤¬¡¢¤Þ¤À¼ÂÁõ¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
67 .SH ´ØÏ¢¹àÌÜ
68 .BR umask (2)