Pedro F. Giffuni
1de7b4b805
various: general adoption of SPDX licensing ID tags.
...
Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.
The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.
No functional change intended.
2017-11-27 15:37:16 +00:00
Marcelo Araujo
07c1d44f87
Use nitems instead of "sizeof ypaliases/sizeof ypaliases[0]".
...
Make the if statement more expressive.
Differential Revision: D3366
Reviewed by: ed
Approved by: bapt, rodrigc (mentor)
2015-08-13 02:36:37 +00:00
Marcelo Araujo
c52bab1135
Get it closes to style(9).
...
Staticization usage() and printit().
Fix the usage of err(3).
Reviewed by: bde
2015-08-04 07:04:36 +00:00
Marcelo Araujo
c1f70e3747
Remove the 3rd clause of BSD LICENSE.
...
Sync the code with the OpenBSD version.
Small style(9) fix up.
Differential Revision: D3212
Reviewed by: rodrigc, bapt
Obtained from: OpenBSD
Sponsored by: gandi.net
2015-08-04 02:41:14 +00:00
Marcelo Araujo
006a388bb6
Compilers will complain the usage of obsolescent variable declarations.
...
Also it will fix the build problem with sparc64.
Submitted by: ed@
2015-07-29 02:21:35 +00:00
Marcelo Araujo
033af09de1
Staticfy and constify some variables and clean up the code a bit to make it
...
more readable. No functional change.
Differential Revision: D3166
Reviewed by: kib
Sponsored by: gandi.net
2015-07-28 02:32:40 +00:00
Xin LI
821df508e8
Revert most part of 200420 as requested, as more review and polish is
...
needed.
2009-12-13 03:14:06 +00:00
Xin LI
6f2d322192
Remove unneeded header includes from usr.bin/ except contributed code.
...
Tested with: make universe
2009-12-11 23:35:38 +00:00
Brian Somers
53c405786b
Support shadow.byname and shadow.byuid maps, protecting them by
...
insisting on privileged port access.
Include /var/yp/Makefile.local if it exists and suggest using
it to override /var/yp/Makefile behaviour.
Approved by: re (kib)
MFC after: 3 weeks
2009-06-25 16:15:39 +00:00
Ruslan Ermilov
f682f10c76
Sync program's usage() with manpage's SYNOPSIS.
2005-05-21 09:55:10 +00:00
Peter Wemm
ba7887c77f
Stop gcc warnings
2003-10-26 05:28:01 +00:00
Dag-Erling Smørgrav
ed4d1c46a2
Apply the following mechanical transformations in preparation for
...
ansification and constification:
s{\s+__P\((\(.*?\))\)}{$1}g;
s{\(\s+}{\(}g;
s{\s+\)}{\)}g;
s{\s+,}{,}g;
s{(\s+)(for|if|switch|while)\(}{$1$2 \(}g;
s{return ([^\(].*?);}{return ($1);}g;
s{([\w\)])([!=+/\*-]?=)([\w\(+-])}{$1 $2 $3}g;
s{\s+$}{\n};g
Also add $FreeBSD$ where needed.
MFC after: 1 week
2002-02-06 13:30:31 +00:00
Mark Murray
082d8262b0
WARNS=2 fixes
...
__FBSDID() additions
some include file sorting.
Some Makefile sorting.
WARNS?=2 is not added to the Makefile, because it is going to be
default for usr.bin/
NO_WERROR is set because there are rpc*.h file issues.
2001-12-11 22:08:58 +00:00
Dima Dorfman
7a19d1bbb9
Include missing header files which define functions for which gcc has
...
builtins (e.g., exit, strcmp).
2001-06-24 19:50:42 +00:00
Peter Wemm
c3aac50f28
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
Philippe Charnier
c1f84cc129
Use err(3). Add references to others man pages. Wait for the user to
...
supply the domain before computing a default one.
Obtained from: OpenBSD
1997-08-29 11:48:50 +00:00
Peter Wemm
d228e65cdc
Add an alias for master.passwd -> master.passwd.byname to the list
...
of convenience map aliases.
1997-07-12 14:34:26 +00:00
Garrett Wollman
73407b3433
Move more YP user programs over.
1994-08-08 01:13:35 +00:00