From b500ef6a1846b52a0c8d4ca770fe616c36dc074a Mon Sep 17 00:00:00 2001 From: ericm Date: Fri, 21 Jan 2000 18:52:07 +0000 Subject: * unix/mkLinks: * doc/GetHostName.3: Man page for Tcl_GetHostName (bug #1817). --- doc/GetHostName.3 | 28 ++++++++++++++++++++++++++++ unix/mkLinks | 4 ++++ 2 files changed, 32 insertions(+) create mode 100644 doc/GetHostName.3 diff --git a/doc/GetHostName.3 b/doc/GetHostName.3 new file mode 100644 index 0000000..6cb786f --- /dev/null +++ b/doc/GetHostName.3 @@ -0,0 +1,28 @@ +'\" +'\" Copyright (c) 1998-2000 by Scriptics Corporation. +'\" All rights reserved. +'\" +'\" RCS: @(#) $Id: GetHostName.3,v 1.1 2000/01/21 18:52:07 ericm Exp $ +'\" +.so man.macros +.TH Tcl_GetHostName 3 8.3 Tcl "Tcl Library Procedures" +.BS +.SH NAME +Tcl_GetHostName \- get the name of the local host +.SH SYNOPSIS +.nf +\fB#include \fR +.sp +char * +\fBTcl_GetHostName\fR() + +.SH DESCRIPTION +.PP +\fBTcl_GetHostName\fR is a utility procedure used by some of the +Tcl commands. It returns a pointer to a string containing the name +for the current machine, or an empty string if the name cannot be +determined. The string is statically allocated, and the caller must +not modify of free it. +.PP +.SH KEYWORDS +hostname diff --git a/unix/mkLinks b/unix/mkLinks index 71924e6..62116c6 100644 --- a/unix/mkLinks +++ b/unix/mkLinks @@ -131,6 +131,10 @@ if test -r Concat.3; then rm -f Tcl_Concat.3 ln Concat.3 Tcl_Concat.3 fi +if test -r GetHostName.3; then + rm -f Tcl_GetHostName.3 + ln GetHostName.3 Tcl_GetHostName.3 +fi if test -r StringObj.3; then rm -f Tcl_ConcatObj.3 ln StringObj.3 Tcl_ConcatObj.3 -- cgit v0.12