summaryrefslogtreecommitdiffstats
path: root/install.c
diff options
context:
space:
mode:
Diffstat (limited to 'install.c')
-rw-r--r--install.c37
1 files changed, 6 insertions, 31 deletions
diff --git a/install.c b/install.c
index 244072f..f551187 100644
--- a/install.c
+++ b/install.c
@@ -1,5 +1,6 @@
1#include <sys/stat.h> 1#include <sys/stat.h>
2#include <unistd.h> 2#include <unistd.h>
3#include "install.h"
3#include "substdio.h" 4#include "substdio.h"
4#include "strerr.h" 5#include "strerr.h"
5#include "error.h" 6#include "error.h"
@@ -13,11 +14,7 @@ extern void hier();
13 14
14int fdsourcedir = -1; 15int fdsourcedir = -1;
15 16
16void h(home,uid,gid,mode) 17void h(const char *home, uid_t uid, gid_t gid, mode_t mode)
17char *home;
18int uid;
19int gid;
20int mode;
21{ 18{
22 if (mkdir(home,0700) == -1) 19 if (mkdir(home,0700) == -1)
23 if (errno != error_exist) 20 if (errno != error_exist)
@@ -28,12 +25,7 @@ int mode;
28 strerr_die4sys(111,FATAL,"unable to chmod ",home,": "); 25 strerr_die4sys(111,FATAL,"unable to chmod ",home,": ");
29} 26}
30 27
31void d(home,subdir,uid,gid,mode) 28void d(const char *home, const char *subdir, uid_t uid, gid_t gid, mode_t mode)
32char *home;
33char *subdir;
34int uid;
35int gid;
36int mode;
37{ 29{
38 if (chdir(home) == -1) 30 if (chdir(home) == -1)
39 strerr_die4sys(111,FATAL,"unable to switch to ",home,": "); 31 strerr_die4sys(111,FATAL,"unable to switch to ",home,": ");
@@ -46,12 +38,7 @@ int mode;
46 strerr_die6sys(111,FATAL,"unable to chmod ",home,"/",subdir,": "); 38 strerr_die6sys(111,FATAL,"unable to chmod ",home,"/",subdir,": ");
47} 39}
48 40
49void p(home,fifo,uid,gid,mode) 41void p(const char *home, const char *fifo, uid_t uid, gid_t gid, mode_t mode)
50char *home;
51char *fifo;
52int uid;
53int gid;
54int mode;
55{ 42{
56 if (chdir(home) == -1) 43 if (chdir(home) == -1)
57 strerr_die4sys(111,FATAL,"unable to switch to ",home,": "); 44 strerr_die4sys(111,FATAL,"unable to switch to ",home,": ");
@@ -69,13 +56,7 @@ char outbuf[SUBSTDIO_OUTSIZE];
69substdio ssin; 56substdio ssin;
70substdio ssout; 57substdio ssout;
71 58
72void c(home,subdir,file,uid,gid,mode) 59void c(const char *home, const char *subdir, const char *file, uid_t uid, gid_t gid, mode_t mode)
73char *home;
74char *subdir;
75char *file;
76int uid;
77int gid;
78int mode;
79{ 60{
80 int fdin; 61 int fdin;
81 int fdout; 62 int fdout;
@@ -119,13 +100,7 @@ int mode;
119 strerr_die6sys(111,FATAL,"unable to chmod .../",subdir,"/",file,": "); 100 strerr_die6sys(111,FATAL,"unable to chmod .../",subdir,"/",file,": ");
120} 101}
121 102
122void z(home,file,len,uid,gid,mode) 103void z(const char *home, const char *file, size_t len, uid_t uid, gid_t gid, mode_t mode)
123char *home;
124char *file;
125int len;
126int uid;
127int gid;
128int mode;
129{ 104{
130 int fdout; 105 int fdout;
131 106