1 |
/* Halt the system |
/* Halt the system |
2 |
Copyright (C) 1994, 1996, 1997 Free Software Foundation, Inc. |
Copyright (C) 1994, 1996, 1997, 2002 Free Software Foundation, Inc. |
3 |
Written by Michael I. Bushnell. |
Written by Michael I. Bushnell. |
4 |
|
|
5 |
This file is part of the GNU Hurd. |
This file is part of the GNU Hurd. |
34 |
struct argp argp = {0, 0, 0, "Halt the system"}; |
struct argp argp = {0, 0, 0, "Halt the system"}; |
35 |
argp_parse (&argp, argc, argv, 0, 0, 0); |
argp_parse (&argp, argc, argv, 0, 0, 0); |
36 |
reboot (RB_HALT); |
reboot (RB_HALT); |
37 |
perror ("reboot"); |
error (1, errno, "reboot"); |
38 |
return 1; |
return 1; |
39 |
} |
} |