getdomainname.2yp

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 2YP 代码 · 共 72 行

2YP
72
字号
.\" SCCSID: @(#)getdomainname.2yp	8.1	9/11/90.TH getdomainname 2yp.SH Namegetdomainname, setdomainname \- get or set name of current domain.SH Syntax.nf.ft Bgetdomainname(\fIname\fR, \fInamelen\fR)char *\fIname\fR;int \fInamelen\fR;.sp .5.ft Bsetdomainname(name, namelen)char *name;int namelen;.fi.SH Description.NXR "getdomainname system call".NXR "setdomainname system call".NXAM "getdomainname system call" "domainname command".NXR "domain" "getting name".NXR "domain" "setting name".PPThe .PN getdomainnamesystem call returns the domain name of the current processor,as set by.PN setdomainname ..PPThe.PN setdomainnamesystem call sets the domain of the host machine to be.I name,which has a length specified by.I namelen.This system call is restricted to the superuserand is normally used onlywhen the system is bootstrapped..PPThe purpose of domains is to allow merging of two distinct networksthat have common host names.  Each network can bedistinguished by having a different domain name.  At the current time,only the Yellow Pages service makes use of domains..PPThe .I nameargument is the address where the name of the current domain isstored..PPThe .I namelenargument specifies the size of the.I namearray.  The returned name is null-terminated unless insufficient spaceis provided..SH RestrictionsDomain names are limited to 31 characters..SH Return ValuesIf the call succeeds, a value of 0 is returned.  If the call fails, a value of \-1 is returned and an error code is placed in the globallocation, \fIerrno\fP..SH Diagnostics.TP 15[EFAULT]The \fIname\fP parameter contains an invalid address..TP 15[EPERM]The caller was not the superuser.  This error message onlyapplies to the .PN setdomainnamesystem call.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?