summaryrefslogtreecommitdiff
path: root/sbin/shutdown/shutdown.c
AgeCommit message (Collapse)Author
2002-12-08GNU semantics say that if optstring begins with '-' thenTodd C. Miller
each non-option shall be treated as arguments to option '\1'. BSD getopt match '-' in optstring with a '-' on the command line. This is used to support deprecated options like "su -" that would otherwise prevent the use of getopt(). Resolving this simply requires that the leading '-' be moved somewhere else (I moved it to the end of optstring) since position within optstring is not meaningful.
2002-07-03ansiTheo de Raadt
2002-05-26pid_t cleanupTheo de Raadt
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-11-05kill more registers;Mike Pechkin
millert@ ok
2001-07-09correct type on last arg to execl(); nordin@cse.ogi.eduTheo de Raadt
2001-07-07major -Wall cleanup, almost completeTheo de Raadt
2001-01-19mark signal races i cannot fix at the momentTheo de Raadt
2001-01-15use _exit() in term handler if real signalTheo de Raadt
2000-01-15add 'd' to usage. mention rc.shutdown in the man page.Eric Jackson
1999-09-03have shutdown code run /etc/rc with arg of "shutdown"; rc.shutdown becomes ↵Theo de Raadt
completely admin-editable
1999-07-19if we run /etc/rc.shutdown ourselves, do it on /dev/consoleTheo de Raadt
1999-04-29Y2K fix: allow 'shutdown yymmddhhmm' to work in the next century.Alex Feldman
1998-04-25run rc.shutdown even if -r or -h is not specifiedTodd C. Miller
1997-09-04use err()/warn()/__progname where appropriate, consolidate string, some -WallMichael Shalayeff
1997-08-24give shutdown daemon own session; dima@tejblum.dnttm.rssi.ruTheo de Raadt
1997-07-25do -d for reboot and haltMichael Shalayeff
1997-07-25-WallMichael Shalayeff
1997-06-23Slightly cleaner. (Change nosync to an int, like the rest.)Jason Downs
1997-06-22Support halt -p.Jason Downs
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!Todd C. Miller
1996-12-22MAXHOSTNAMELEN, not +1Theo de Raadt
1996-09-20call execle with the correct params; netbsd pr#2737, augustss@cs.chalmers.seTheo de Raadt
1996-09-02whoopsTheo de Raadt
1996-09-02bad environ init; from brian@saturn.netTheo de Raadt
1996-06-23update rcsidTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt