📄 getnetgrent.3yp
字号:
.\" SCCSID: @(#)getnetgrent.3yp 8.1 9/11/90.TH getnetgrent 3yp.SH Namegetnetgrent, setnetgrent, endnetgrent, innetgr \- get network group entry.SH Syntax.nf.ft Binnetgr(netgroup, machine, user, domain)char *netgroup, *machine, *user, *domain;.sp.5setnetgrent(netgroup)char *netgroup.sp.5endnetgrent().sp.5getnetgrent(machinep, userp, domainp)char **machinep, **userp, **domainp;.fi.SH Description.NXR "getnetgrent subroutine".NXR "setnetgrent subroutine".NXR "endnetgrent subroutine".NXR "innetgr subroutine".NXR "netgroup file" "getting member entry".NXA "netgroup file" "innetgr subroutine"The .PN innetgrroutine accesses the.PN netgroupfile and checks to see ifthe specified input parameters match an entry in thefile.The routinereturns 1 if it matches an entry, or 0 if it does not.Any of the three strings; .B machine, .B user, or .B domain can be NULL, which signifies any string in that position is valid..PPThe .PN getnetgrent routine returns the next member of a network group. After the call,.PN machinep will contain a pointer to a string containing the nameof the machine part of the network group member, and similarlyfor .B userp and .B domainp.If .B machinep, .B userp or .B domainp is returned as a NULL pointer, it signifies any string is valid.The .PN getnetgrentroutine allocates space for the nameby using the.PN malloc routine.This space is released when an .PN endnetgrentcall is made.The .PN getnetgrentroutine returns 1 if it succeeds in obtaining anothermember of the network group, or 0 if it reaches theend of the group..PPThe .PN setnetgrentroutine establishes the network group from which .PN getnetgrentwill obtain members, and also restarts calls to.PN getnetgrentfrom the beginning of the list. If the previous .PN setnetgrentcall was to a different network group, an .PN endnetgrentcall is implied..PPThe.PN endnetgrentroutine releases the space allocated during the .PN getnetgrentcalls..SH Files.nf/etc/netgroup/etc/yp/\fIdomain\fP/netgroup/etc/yp/\fIdomain\fP/netgroup.byuser/etc/yp/\fIdomain\fP/netgroup.byhost.fi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -