File: bindresvport.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 (77 lines) | stat: -rw-r--r-- 2,091 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
77
.\" This page was initially taken from the 4.4BSD-Lite CDROM (BSD license)
.\" with substantial updates
.\" Copyright (C) 2007, Michael Kerrisk <mtk.manpages@gmail.com>
.\"
.\" @(#)bindresvport.3n	2.2 88/08/02 4.0 RPCSRC; from 1.7 88/03/14 SMI
.\"
.\" 2007-05-31, mtk: Rewrite and substantial additional text.
.\"
.\" Japanese Version Copyright (c) 1999 Shouichi Saito all rights reserved.
.\" Translated 1999-08-28, Shouichi Saito <ss236rx@ymg.urban.ne.jp>
.\" Proofed 1999-09-25, NAKANO Takeo <nakano@apm.seikei.ac.jp>
.\" Updated 2007-06-11, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v2.54
.\"
.TH BINDRESVPORT 3  2007-05-31 "" "Linux Programmer's Manual"
.SH ̾
bindresvport \- åȤø IP ݡȤ˥Хɤ
.SH 
.nf
.B #include <sys/types.h>
.B #include <netinet/in.h>
.LP
.BI "int bindresvport(int " sd ", struct sockaddr_in **" sin );
.fi
.SH 
.LP
.BR bindresvport ()
ϡåȡǥץø
IP ݡȤ˥ХɤΤ˻Ȥ
øݡȤȤϡݡֹ椬 0  1023 ϰϤˤݡȤǤ롣

.I in\->sin_port
 0 ξ硢600  1023 ϰϤˤ̵̾ݡ (anonymous port)
򤵤롣
.BR bindresvport ()
ˤäƼ¹Ԥ줿
.BR bind (2)
ȡºݤ˳Ƥ줿ݡֹ椬
.I sin\->sin_port
֤롣

.I sin
ˤ NULL ꤹ뤳ȤǤξˤ
.I sin\->sin_family
ϰۤΤ
.B AF_INET
Ȥߤʤ졢(嵭̤) ̵̾ݡȤƤ롣
ξˤϡ
.BR bindresvport ()
ϼºݤ˳Ƥ줿ݡֹ֤ʤʤ
.SH ֤
.BR bindresvport ()
 0 ֤ʳξ硢\-1 ֤
.I errno
˥顼θ򼨤ͤꤹ롣
.SH 顼
.BR bindresvport ()

.BR bind (2)
ƱǼԤǽ롣
.SH 
POSIX.1-2001 ˤϤʤ
BSD, Solaris Ӥ¾¿Υƥ¸ߤ롣
.SH 
.LP
øݡȤ˥ХɤǤΤ root Ǥ롣
ʳΥ桼ΥԤäƤ⼺Ԥ롣
ˡʲΥ顼ȯ뤳Ȥ:
.TP
.B EPFNOSUPPORT
.I sin
 NULL ʳǡ
.I sin\->sin_family

.B AF_INET
Ǥʤä
.SH Ϣ
.BR bind (2)