A -incorrect- variant that uses EM_DIR/ERR_PATH etc.
This commit is contained in:
parent
711ccf4466
commit
ae1e8c0d97
@ -33,8 +33,11 @@
|
|||||||
|
|
||||||
#define void int
|
#define void int
|
||||||
|
|
||||||
char *pc_path = PEM_PATH ;
|
char def_pc_path[200] ;
|
||||||
char *err_path = ERR_PATH;
|
char def_err_path[200] ;
|
||||||
|
|
||||||
|
char *pc_path = def_pc_path ;
|
||||||
|
char *err_path = def_err_path ;
|
||||||
|
|
||||||
int toterr;
|
int toterr;
|
||||||
int parent;
|
int parent;
|
||||||
@ -340,12 +343,18 @@ donewith(p) char *p; {
|
|||||||
}
|
}
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
register char *p;
|
register char *p,*s ;
|
||||||
register i,fd;
|
register i,fd;
|
||||||
|
|
||||||
if ((fd = open(tmp_dir,0)) < 0)
|
if ((fd = open(tmp_dir,0)) < 0)
|
||||||
tmp_dir = ".";
|
tmp_dir = ".";
|
||||||
close(fd);
|
close(fd);
|
||||||
|
p= def_pc_path ;
|
||||||
|
s= EM_DIR ; while ( *p++ = *s++ ) ; *p='/' ;
|
||||||
|
s= PEM_PATH ; while ( *p++ = *s++ ) ;
|
||||||
|
p= def_err_path ;
|
||||||
|
s= EM_DIR ; while ( *p++ = *s++ ) ; *p='/' ;
|
||||||
|
s= ERR_PATH ; while ( *p++ = *s++ ) ;
|
||||||
p = unique+2;
|
p = unique+2;
|
||||||
parent = i = getpid();
|
parent = i = getpid();
|
||||||
do
|
do
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user