File: getpt.3

package info (click to toggle)
manpages-ja 0.5.0.0.20050315-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 18,620 kB
  • ctags: 4
  • sloc: sh: 12,675; perl: 157; makefile: 106
file content (44 lines) | stat: -rw-r--r-- 1,182 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
.\" Hey Emacs! This file is -*- nroff -*- source.
.\" This man page was written by Jeremy Phelps <jphelps@notreached.net>.
.\" Redistribute and modify at will.
.\"
.\" Japanese Version Copyright (c) 2003  Akihiro MOTOKI
.\"         all rights reserved.
.\" Translated Tue Jul  8 01:44:54 JST 2003
.\"         by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
.\" 
.\"WORD:	pseudo-terminal		ü
.\"WORD:	specific		ȼ
.\" 
.TH GETPT 3 "2002-10-09" "PTY Control" "Linux Programmer's Manual"
.SH ̾
getpt \- üޥ (PTM) 򥪡ץ󤹤
.SH 
.nf
.B #include <stdlib.h>
.sp
.B "int getpt(void)"
.fi
.SH 
.B getpt()
ϡüޥ򥪡ץ󤷡Υե롦ǥץ֤
ϡ Linux ƥˤƤ
.BI "open(" \fI"/dev/ptmx" , O_RDWR|O_NOCTTY ) 
Ǥ롣â GNU Libc ѤƤƤ⡢
üޥɤ¾ξˤ륷ƥ⤢롣
.SH ֤
.B getpt()
ϥץ󤷤եΥǥץ֤
Ǥʤ硢\-1 ֤
.I errno
˥顼򼨤ͤåȤ롣
.SH 
.B getpt()
 GNU Libc ȼǤ롣
.SH Ϣ
.BR grantpt (3),
.BR ptsname (3),
.BR posix_openpt (3),
.BR unlockpt (3),
.BR ptmx (4)