doc/ja_JP.eucJP/man/man3/bindresvport.3
Kazuo Horikawa cb5d1a9147 Replace jpman project specific RCS keyword with $FreeBSD.
jpman project specific RCS keyword (jpman %Id) is obsolete,
after manual entries are stored in freefall CVS repository.
This old Id is useless and more worse it confuses users and bug reporters.
So, this old Id is removed.

Submitted by:jpman project <man-jp@jp.FreeBSD.org>
2001-05-14 01:10:24 +00:00

32 lines
849 B
Groff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.\" @(#)bindresvport.3n 2.2 88/08/02 4.0 RPCSRC; from 1.7 88/03/14 SMI
.\" $FreeBSD$
.Dd November 22, 1987
.Dt BINDRESVPORT 3
.Os
.Sh 名称
.Nm bindresvport
.Nd 特権 IP ポートにソケットをバインドする
.Sh 書式
.Fd #include <sys/types.h>
.Fd #include <netinet/in.h>
.Ft int
.Fn bindresvport "int sd" "struct sockaddr_in **sin"
.Sh 解説
.Nm bindresvport
は、ソケット記述子を、特権
.Tn IP
ポート、すなわち範囲 0 1023 のポートに結合するために使用されます。
このルーチンは処理が正常に終了すると
0 を返し、そうでない場合は -1 を返し、エラーの原因を反映するように
.Va errno
が設定されます。
.Pp
ルートだけが特権ポートに結合できます。この呼び出しは他のユーザについては
処理失敗します。
.Pp
sin->sin_port の値がゼロでない場合、
.Fn bindresvport
は、その特定のポートを
使用しようとします。それに失敗すると、別の特権付きポートを自動的に
選択します。
.\" kuma