All paths moved to path.h.

Cleanup in curses.h: removed reg definition.
All include files reformatted for 4-space indent.
This commit is contained in:
Serge Vakulenko
2015-06-24 20:57:08 -07:00
parent 81a8a8379d
commit 9d39282ae9
84 changed files with 1420 additions and 1447 deletions

View File

@@ -28,6 +28,7 @@
#include <strings.h>
#include <stdlib.h>
#include <unistd.h>
#include <paths.h>
#include "chpass.h"
char e1[] = ": ";

View File

@@ -19,6 +19,7 @@
#include <unistd.h>
#include <fstab.h>
#include <pwd.h>
#include <paths.h>
#include "fsck.h"
extern int returntosingle;
@@ -269,7 +270,7 @@ main(argc, argv)
* for stdio. There may be other problems like this. Enjoy.
*/
if (!getfsent())
errexit("Can't open checklist file: %s\n",FSTAB);
errexit("Can't open checklist file: %s\n", _PATH_FSTAB);
setpassent(1);
memsize = (char*) sbrk(0) - (char*) &_start;
@@ -296,7 +297,7 @@ main(argc, argv)
do {
anygtr = 0;
if (setfsent() == 0)
errexit("Can't open %s\n", FSTAB);
errexit("Can't open %s\n", _PATH_FSTAB);
while ((fsp = getfsent()) != 0) {
if (strcmp(fsp->fs_vfstype, "ufs") ||
(strcmp(fsp->fs_type, FSTAB_RW) &&

View File

@@ -27,6 +27,7 @@
#include <string.h>
#include <strings.h>
#include <unistd.h>
#include <paths.h>
uid_t uid;

View File

@@ -38,6 +38,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <paths.h>
typedef enum { MNTON, MNTFROM } mntwhat;

View File

@@ -28,6 +28,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <limits.h>
#include <paths.h>
char *passwd, *temp;