Commit | Line | Data |
---|---|---|
fc00dba4 KM |
1 | .\" Copyright (c) 1983 Regents of the University of California. |
2 | .\" All rights reserved. The Berkeley software License Agreement | |
3 | .\" specifies the terms and conditions for redistribution. | |
4 | .\" | |
95f51977 | 5 | .\" @(#)hostnm.3f 6.1 (Berkeley) 5/15/85 |
fc00dba4 | 6 | .\" |
95f51977 | 7 | .TH HOSTNM 3F "May 15, 1985" |
fc00dba4 KM |
8 | .UC 5 |
9 | .SH NAME | |
10 | hostnm \- get name of current host | |
11 | .SH SYNOPSIS | |
12 | .B integer function hostnm (name) | |
13 | .br | |
14 | .B character*(*) name | |
15 | .SH DESCRIPTION | |
16 | This function puts the name of the current host into | |
17 | character string | |
18 | .IR name . | |
19 | The return value should be 0; any other value indicates an error. | |
20 | .SH FILES | |
21 | .ie \nM /usr/ucb/lib/libU77.a | |
22 | .el /usr/lib/libU77.a | |
23 | .SH "SEE ALSO" | |
24 | gethostname(2) |