aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/login/login_fbtab.c
Commit message (Collapse)AuthorAgeFilesLines
* usr.bin: Automated cleanup of cdefs and other formattingWarner Losh2023-11-271-1/+0
| | | | | | | | | | | | | | | | Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* Use NULL instead of 0.Marcelo Araujo2016-04-181-3/+3
| | | | | | | | | strtok(3) will return NULL when no more tokens remain. MFC after: 2 weeks. Notes: svn path=/head/; revision=298181
* login.c doesn't really need libutil.h, don't include it.Xin LI2015-09-101-2/+1
| | | | | | | | | | login_fbtab.c includes paths.h and pathnames.h, and pathnames.h includes paths.h. Eliminate the paths.h inclusion in login_fbtab.c. MFC after: 2 weeks Notes: svn path=/head/; revision=287634
* Remove unnecessary castKevin Lo2012-02-141-3/+3
| | | | Notes: svn path=/head/; revision=231651
* Spelling fixes for usr.bin/Ulrich Spörlein2011-12-301-1/+1
| | | | Notes: svn path=/head/; revision=228992
* ANSIfy various tools in usr.bin/.Ed Schouten2010-01-021-10/+2
| | | | | | | | Most of these tools properly build at WARNS=6, except for their K&R function declarations. Fix this, so we can bump WARNS as well. Notes: svn path=/head/; revision=201382
* Revert most part of 200420 as requested, as more review and polish isXin LI2009-12-131-0/+1
| | | | | | | needed. Notes: svn path=/head/; revision=200462
* Remove unneeded header includes from usr.bin/ except contributed code.Xin LI2009-12-111-1/+0
| | | | | | | Tested with: make universe Notes: svn path=/head/; revision=200420
* Use NULL instead of 0 for the return value of fopen().Kevin Lo2007-09-211-2/+2
| | | | | | | Approved by: re (kensmith) Notes: svn path=/head/; revision=172261
* Fix some warnings by making things const, adding missing headers,David Malone2007-05-071-1/+1
| | | | | | | | | removing some unused variables and making a variable unsigned. MFC after: 3 weeks Notes: svn path=/head/; revision=169342
* remove __PWarner Losh2002-03-221-1/+1
| | | | Notes: svn path=/head/; revision=92920
* Style improvements recommended by Bruce as a follow up to someDavid Malone2001-12-101-1/+0
| | | | | | | | | | | of the recent WARNS commits. The idea is: 1) FreeBSD id tags should follow vendor tags. 2) Vendor tags should not be compiled (though copyrights probably should). 3) There should be no blank line between including cdefs and __FBSDIF. Notes: svn path=/head/; revision=87628
* Use __FBSDID(). Also do a bit of cosmetic #if and header-orderMark Murray2001-12-021-1/+4
| | | | | | | cleaning-up. Notes: svn path=/head/; revision=87233
* Sort includes.Mark Murray2001-12-021-3/+3
| | | | Notes: svn path=/head/; revision=87180
* WARNS=2 fixes.Mark Murray2001-12-011-4/+5
| | | | | | | Reviewed by: bde (a while back) Notes: svn path=/head/; revision=87173
* o Restore previous inconsistent style to login_fbtab.c, following itsRobert Watson2001-10-281-21/+21
| | | | | | | | | | modification to add glob support. The submitted patch used a degraded form of KNF. Reviewed by: bde Notes: svn path=/head/; revision=85645
* o Modify format of /etc/fbtab to accept glob matching patterns forRobert Watson2001-10-251-34/+22
| | | | | | | | | | | | | | | | | target devices, not just individual devices and directories. This permits activities such as: ttyv0 0600 /dev/dsp* Whereas previously that was not supported. This change is backwards-compatible, except where device names included globbing characters, which is not the case for any devices listed in MAKEDEV. Submitted by: Maxime Henrion <mux@qualys.com> MFC after: 3 weeks Notes: svn path=/head/; revision=85504
* Add `_PATH_DEVZERO'.David E. O'Brien2000-12-091-1/+2
| | | | | | | Use _PATH_* where where possible. Notes: svn path=/head/; revision=69793
* Fix excessive use of parenthesis in previous commit.Sheldon Hearn2000-04-251-1/+1
| | | | | | | Requested by: bde Notes: svn path=/head/; revision=59621
* Do not issue a warning when chflags() fails with EOPNOTSUPP.Sheldon Hearn2000-04-131-1/+2
| | | | | | | | PR: 17875 Submitted by: Bjoern Fischer <bfischer@Techfak.Uni-Bielefeld.DE> Notes: svn path=/head/; revision=59198
* Clear all file flags when taking ownership of devices. Do not ignoreWarner Losh1999-08-211-0/+3
| | | | | | | | chown failures in some places, but instead log them like we do all other errors. Notes: svn path=/head/; revision=50124
* gcc on alpha complains about nested comments. A comment in thisJohn Birrell1998-02-151-1/+1
| | | | | | | | | file referred to a path ending in "/*" which was reasonable to me, but gcc wasn't so sure. So now the comment refers to a path ending in "*". Notes: svn path=/head/; revision=33358
* Changes for KTH KerberosIV.Mark Murray1997-09-281-1/+3
| | | | | | | Also quieten -Wall a bit. Notes: svn path=/head/; revision=29922
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-1/+1
| | | | Notes: svn path=/head/; revision=8874
* Set copyright so we can actually distribute and use it.Guido van Rooij1995-05-191-0/+15
| | | | | | | | | Reviewed by: David Greenman Submitted by: Wietse Venema Obtained from: Notes: svn path=/head/; revision=8626
* Implemnet fbtab ala SunOS (thanks to WZV, see login_fbtab.c)Guido van Rooij1994-08-221-0/+138
Reviewed by: Submitted by: guido Notes: svn path=/head/; revision=2224