.\" Hey Emacs! This file is -*- nroff -*- source. .\" .\" Copyright 1993 Rickard E. Faith (faith@cs.unc.edu) .\" .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" .\" Modified 22 July 1995 by Michael Chastain : .\" 'gethostname' is real system call on Linux/Alpha. .\" Modified Fri Jan 31 16:30:53 1997 by Eric S. Raymond .TH GETHOSTNAME 2 "22 July 1995" "Linux 1.3.6" "Linux Programmeurs Handleiding" .SH NAAM gethostname, sethostname \- krijg/zet machinenaam .SH OVERZICHT .B #include .sp .BI "int gethostname(char *" naam ", size_t " len ); .br .BI "int sethostname(const char *" naam ", size_t " len ); .SH BESCHRIJVING Deze functies worden gebruikt om de machinenaam van de huidige processor te krijgen, of te veranderen. .SH "TERUGGEEF WAARDE" Bij success wordt nul teruggegeven. Bij falen wordt \-1 teruggegeven en .I errno wordt naar behoren gezet. .SH FOUTEN .TP .B EINVAL {ongeldig} .I len is negatief of, voor .BR sethostname , .I len is groter dat de maximum toegestane maat, of, voor .BR gethostname op Linux/i386 .I len is kleiner dan de feitelijke maat. .TP .B EPERM {toestemming} Voor .BR sethostname , de aanroeper was niet de supergebruiker. .TP .B EFAULT {fout} .I naam is een ongeldig adres. .SH "VOLDOET AAN" SVr4, 4.4BSD (deze functie verscheen voor het eerst in 4.2BSD). POSIX.1 bepaald deze functie niet, maar ISO/IEC 9945-1:1990 noemt ze in B.4.4.1. .SH BUGS Sommige andere verwezijnlijkingen van .B gethostname keren geslaagd terug met .I len bytes, zelfs als .I naam langer is. Linux/Alpha voldoet aan dit gedrag. Linux/i386, geeft echter .B EINVAL terug in dit geval. .SH OPMERKINGEN Onder Linux/Alpha is, .B gethostname een systeem aanroep .B gethostname is verwezijnlijkt op het bibliotheek niveau door .BR uname "(2) aan te roepen." .SH "ZIE" .BR getdomainname "(2) {krijg gebied naam}," .BR setdomainname (2) {zet gebied naam}," .BR uname "(2) {je (kernel, enz.) naam}" .\" Translated Mon Nov 13 12:55:17 CET 2000 by Jos Boersema .\" .SH VERTALING Dit is een handleiding uit \fBmanpages-dev 1.29\fR. Alles wat tussen `\fB{\fR'..`\fB}\fR' staat is \fBaanvullende vertaling\fR, en hoort \fBniet\fR bij de originele handleiding. .\" .\"Vertaling Jos Boersema .\" Email naar . $Id: sethostname.2,v 1.1 2003/04/28 18:43:35 bokkie Exp $