File: getpt.3

package info (click to toggle)
manpages-ja 0.5.0.0.20080615-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 20,508 kB
  • ctags: 1
  • sloc: sh: 13,690; perl: 157; makefile: 114
file content (52 lines) | stat: -rw-r--r-- 1,319 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
.\" 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 "GNU" "Linux Programmer's Manual"
.SH ̾
getpt \- üޥ (PTM) 򥪡ץ󤹤
.SH 
.nf
.B #define _GNU_SOURCE
.B #include <stdlib.h>
.sp
.B "int getpt(void);"
.fi
.SH 
.BR getpt ()
ϡüޥ򥪡ץ󤷡Υե롦ǥץ֤
ϡ Linux ƥˤƤ
.nf

    open(/dev/ptmx, O_RDWR | O_NOCTTY);

.fi
Ǥ롣â GNU Libc ѤƤƤ⡢
üޥɤ¾ξˤ륷ƥ⤢롣
.SH ֤
.BR getpt ()
ϥץ󤷤եΥǥץ֤
Ǥʤ硢\-1 ֤
.I errno
˥顼򼨤ͤåȤ롣
.\" FIXME The above line mentiones that errno is set on error,
.\" but this page has no ERRORS section.
.SH 
.BR getpt ()
 GNU Libc ȼǤ롣
.SH Ϣ
.BR grantpt (3),
.BR ptsname (3),
.BR posix_openpt (3),
.BR unlockpt (3),
.BR ptmx (4),
.BR pty (7)