summaryrefslogtreecommitdiff
path: root/usr.sbin/getpmac/getpmac.c
Commit message (Collapse)AuthorAgeFilesLines
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=326276
* Style tweak.Robert Watson2009-07-301-2/+1
| | | | | | | | Approved by: re (kib) MFC after: 3 days Notes: svn path=/head/; revision=195971
* If the label being printed by getpmac(8) is empty, then don't print aRobert Watson2009-06-201-1/+2
| | | | | | | | | | carriage return. Obtained from: TrustedBSD Project MFC after: 3 days Notes: svn path=/head/; revision=194555
* WARNS?=6 cleanup for [gs]et[fp]mac:Xin LI2005-01-271-1/+1
| | | | | | | | | | | | | | - Constify structure members that should not be changed during process. - Apply static where needed - signed/unsigned madness - Bump WARNS?= levels from 2 to 6 (this is a diff reduction for a subsequent commit against these Makefile's) Notes: svn path=/head/; revision=140907
* Userland signed char fixes for PPC build. Problems were using a charPeter Grehan2004-01-221-2/+2
| | | | | | | | | | | | return for getopt() and comparing to -1, ditto with fgetc() and EOF, and using the kg_nice value from <sys/user.h> Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> Reviewed by: obrien, bde (a while back) Tested lightly on: ppc, i386, make universe Notes: svn path=/head/; revision=124830
* Introduce simple command line tools to manage MAC labels on processes andRobert Watson2002-10-231-0/+127
files. Basically wrappers for mac_{get,set}_{file,link,pid,proc}(3). Man pages to be updated shortly. Approved by: re Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=105756