summaryrefslogtreecommitdiffstats
path: root/gcc/ada/g-socket.ads
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-08 11:49:44 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2004-12-08 11:49:44 +0000
commit2866d595072ed6d9048ce7dec6263e1cdf1c7975 (patch)
tree356a0ddde24c2878297f41885b557aa46dd9d566 /gcc/ada/g-socket.ads
parent3801805db246eb5c472c4a2a86c47e700490b537 (diff)
downloadppe42-gcc-2866d595072ed6d9048ce7dec6263e1cdf1c7975.tar.gz
ppe42-gcc-2866d595072ed6d9048ce7dec6263e1cdf1c7975.zip
* g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
documentation of the behaviour of these functions when passed an IP address that has no record in the system hosts database and no reverse record in the DNS. * cstand.adb, a-tags.ads: Fix typos in comment. * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb, exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb, sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb, s-poosiz.ads: Minor reformatting * make.adb: Minor reformatting Add some ??? comments asking for more comments * s-poosiz.adb: Minor reformatting Add comments on alignment requirement * sinfo.ads: Remove obsolete comment and fix typo. * gnat_ugn.texi: Update the section "The GNAT Driver and Project Files" with the new tool and package names. Reformatting to suppress most of the warnings for line too long Document the new section "Project Search Path:" in the output of gnatls -v. Add gnatmetric section * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps and -eit to -ept. Added qualifier /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91896 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/g-socket.ads')
-rw-r--r--gcc/ada/g-socket.ads8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ada/g-socket.ads b/gcc/ada/g-socket.ads
index c2c447992ac..f56b4cc01c8 100644
--- a/gcc/ada/g-socket.ads
+++ b/gcc/ada/g-socket.ads
@@ -502,12 +502,16 @@ package GNAT.Sockets is
function Get_Host_By_Address
(Address : Inet_Addr_Type;
Family : Family_Type := Family_Inet) return Host_Entry_Type;
- -- Return host entry structure for the given inet address
+ -- Return host entry structure for the given Inet address.
+ -- Note that no result will be returned if there is no mapping of this
+ -- IP address to a host name in the system tables (host database,
+ -- DNS or otherwise).
function Get_Host_By_Name
(Name : String) return Host_Entry_Type;
-- Return host entry structure for the given host name. Here name
- -- is either a host name, or an IP address.
+ -- is either a host name, or an IP address. If Name is an IP address,
+ -- this is equivalent to Get_Host_By_Address (Inet_Addr (Name)).
function Host_Name return String;
-- Return the name of the current host
OpenPOWER on IntegriCloud