File: grantpt.3

package info (click to toggle)
manpages-ja 0.5.0.0.20100315-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 21,156 kB
  • ctags: 1
  • sloc: sh: 13,935; perl: 157; makefile: 114
file content (76 lines) | stat: -rw-r--r-- 1,872 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
.\" Hey Emacs! This file is -*- nroff -*- source.
.\" This page is in the public domain. - aeb
.\"
.\" Japanese Version Copyright (c) 2003  Akihiro MOTOKI
.\"         all rights reserved.
.\" Translated Tue Jul  8 01:56:27 JST 2003
.\"         by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
.\"
.\"WORD:	pseudo-terminal		ü
.\"WORD:	pseudotty		ü
.\"
.TH GRANTPT 3 2008-06-14 "GNU" "Linux Programmer's Manual"
.SH ̾
grantpt \- 졼ֵüؤΥĤ
.SH 
.nf
.B #define _XOPEN_SOURCE
.br
.B #include <stdlib.h>
.sp
.BI "int grantpt(int " fd ");"
.fi
.SH 
.BR grantpt ()
ؿϡ
.I fd
ǻȤ줿ޥüб륹졼ֵüǥХ (pty)
Υ⡼ɤȽͭԤѹ롣
졼֤Υ桼ID ϸƤӽФץμ UID ꤵ롣
롼ID ȤꤵͤϵꤵƤʤ (㤨 \fItty\fP ˤʤ)
졼֤Υ⡼ɤ 0620 (crw\-\-w\-\-\-\-) ꤵ롣
.PP
.B SIGCHLD
ʥª뤿˥ʥ롦ϥɥ餬ꤵƤ
.BR grantpt ()
ưϵꤵƤʤ
.SH ֤
.BR grantpt ()
 0 ֤Ǥʤ硢\-1 ֤
.I errno
ŬڤͤåȤ롣
.SH 顼
.TP
.B EACCES
б륹졼ֵü˥Ǥʤä
.TP
.B EBADF

.I fd
ͭʥץ󤵤줿ե롦ǥץǤʤ
.TP
.B EINVAL

.I fd
ͭޥüбΤǤϤʤ
.SH С
.BR grantpt ()
ϡС 2.1 ʹߤ glibc 󶡤Ƥ롣
.SH 
POSIX.1-2001.
.SH 
 Unix98 pty ͤΰǤ롣
.BR pts (4)
򻲾ȤΤȡ
¿ΥƥǤϡδؿ "pt_chown" ȸƤФ set-user-ID 줿
ХʥѤƼƤ롣
Linux  devpts ǤϡΤ褦ХʥɬפȤʤ
.SH Ϣ
.BR open (2),
.BR posix_openpt (3),
.BR ptsname (3),
.BR unlockpt (3),
.BR pts (4),
.BR feature_test_macros (7),
.BR pty (7)