1*18b582acSuwe.\" $NetBSD: services.5,v 1.11 2023/02/12 22:48:02 uwe Exp $ 2b5930afcSjtc.\" 3b5930afcSjtc.\" Copyright (c) 1983, 1991, 1993 4b5930afcSjtc.\" The Regents of the University of California. All rights reserved. 561f28255Scgd.\" 661f28255Scgd.\" Redistribution and use in source and binary forms, with or without 761f28255Scgd.\" modification, are permitted provided that the following conditions 861f28255Scgd.\" are met: 961f28255Scgd.\" 1. Redistributions of source code must retain the above copyright 1061f28255Scgd.\" notice, this list of conditions and the following disclaimer. 1161f28255Scgd.\" 2. Redistributions in binary form must reproduce the above copyright 1261f28255Scgd.\" notice, this list of conditions and the following disclaimer in the 1361f28255Scgd.\" documentation and/or other materials provided with the distribution. 14075022b3Sagc.\" 3. Neither the name of the University nor the names of its contributors 1561f28255Scgd.\" may be used to endorse or promote products derived from this software 1661f28255Scgd.\" without specific prior written permission. 1761f28255Scgd.\" 1861f28255Scgd.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1961f28255Scgd.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2061f28255Scgd.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2161f28255Scgd.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2261f28255Scgd.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2361f28255Scgd.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2461f28255Scgd.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2561f28255Scgd.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2661f28255Scgd.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2761f28255Scgd.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2861f28255Scgd.\" SUCH DAMAGE. 2961f28255Scgd.\" 30b5930afcSjtc.\" @(#)services.5 8.1 (Berkeley) 6/5/93 3161f28255Scgd.\" 32*18b582acSuwe.Dd February 12, 2023 3361f28255Scgd.Dt SERVICES 5 347a1aea16Sgarbled.Os 3561f28255Scgd.Sh NAME 3661f28255Scgd.Nm services 3761f28255Scgd.Nd service name data base 3861f28255Scgd.Sh DESCRIPTION 3961f28255ScgdThe 4061f28255Scgd.Nm services 4161f28255Scgdfile contains information regarding 4261f28255Scgdthe known services available in the 4361f28255Scgd.Tn DARPA 4461f28255ScgdInternet. 4561f28255ScgdFor each service a single line should be present 4661f28255Scgdwith the following information: 4761f28255Scgd.Bd -unfilled -offset indent 4861f28255Scgdofficial service name 4961f28255Scgdport number 5061f28255Scgdprotocol name 5161f28255Scgdaliases 5261f28255Scgd.Ed 5361f28255Scgd.Pp 5461f28255ScgdItems are separated by any number of blanks and/or 556f389d10Swiztab characters. 566f389d10SwizThe port number and protocol name are considered a single 5761f28255Scgd.Em item ; 5871e62d7dSlukema slash 59*18b582acSuwe.Pq Ql / 60*18b582acSuweis used to separate the port and protocol 61*18b582acSuwe.Pq e.g. Ql 512/tcp . 6271e62d7dSlukemA hash 63*18b582acSuwe.Pq Ql # 6471e62d7dSlukemindicates the beginning of 6561f28255Scgda comment; subsequent characters up to the end of the line are 6661f28255Scgdnot interpreted by the routines which search the file. 6761f28255Scgd.Pp 686f389d10SwizService names may contain any printable character other than a 696f389d10Swizfield delimiter, newline, or comment character. 70f6667889Schristos.Pp 716f389d10SwizThe database in 72*18b582acSuwe.Pa /var/db/services.cdb 73f6667889Schristosneeds to be updated with 74f6667889Schristos.Xr services_mkdb 8 75f6667889Schristosafter changes to the services file have been applied. 7661f28255Scgd.Sh FILES 77*18b582acSuwe.Bl -tag -width Pa -compact 7861f28255Scgd.It Pa /etc/services 79*18b582acSuweThe current services file. 80*18b582acSuwe.It Pa /var/db/services.cdb 81*18b582acSuweThe current services database. 8261f28255Scgd.El 8361f28255Scgd.Sh SEE ALSO 846f389d10Swiz.Xr getservent 3 , 85f6667889Schristos.Xr services_mkdb 8 8661f28255Scgd.Sh HISTORY 8761f28255ScgdThe 8861f28255Scgd.Nm 8961f28255Scgdfile format appeared in 9061f28255Scgd.Bx 4.2 . 9142704c41Swiz.Sh BUGS 9242704c41SwizA name server should be used instead of a static file. 93