Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
1d34d224
Commit
1d34d224
authored
Apr 17, 1999
by
Per Cederqvist
Browse files
(parameters): Added "Status file".
(read_configuration): Handle param.status_file.
parent
69c73176
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/server-config.c
View file @
1d34d224
/*
* $Id: server-config.c,v 0.5
1
1999/0
1
/1
3 12:08:39 by
er
s
Exp $
* $Id: server-config.c,v 0.5
2
1999/0
4
/1
7 00:13:21 ced
er Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -37,7 +37,7 @@
#endif
static
const
char
*
rcsid
=
"$Id: server-config.c,v 0.5
1
1999/0
1
/1
3 12:08:39 by
er
s
Exp $"
;
rcsid
=
"$Id: server-config.c,v 0.5
2
1999/0
4
/1
7 00:13:21 ced
er Exp $"
;
#include
"rcs.h"
USE
(
rcsid
);
...
...
@@ -132,6 +132,8 @@ static const struct parameter parameters[] = {
/* Other files. */
{
"Aux-item definition file"
,
assign_string
,
0
,
1
,
"etc/aux-items.conf"
,
&
param
.
aux_def_file
},
{
"Status file"
,
assign_string
,
0
,
1
,
"etc/status"
,
&
param
.
status_file
},
/* Where to dump core. */
{
"Core directory"
,
assign_string
,
0
,
1
,
"cores"
,
&
param
.
core_dir
},
...
...
@@ -384,6 +386,7 @@ read_configuration(const char *conf_file)
assert
(
param
.
memuse_name
!=
NULL
);
assert
(
param
.
logfile_name
!=
NULL
);
assert
(
param
.
aux_def_file
!=
NULL
);
assert
(
param
.
status_file
!=
NULL
);
assert
(
param
.
core_dir
!=
NULL
);
if
(
strlen
(
param
.
dbase_dir
)
>
0
)
...
...
@@ -404,6 +407,7 @@ read_configuration(const char *conf_file)
add_prefix
(
&
param
.
memuse_name
);
add_prefix
(
&
param
.
logfile_name
);
add_prefix
(
&
param
.
aux_def_file
);
add_prefix
(
&
param
.
status_file
);
add_prefix
(
&
param
.
core_dir
);
}
else
...
...
@@ -418,6 +422,7 @@ read_configuration(const char *conf_file)
err
|=
check_abs_path
(
&
param
.
memuse_name
);
err
|=
check_abs_path
(
&
param
.
logfile_name
);
err
|=
check_abs_path
(
&
param
.
aux_def_file
);
err
|=
check_abs_path
(
&
param
.
status_file
);
err
|=
check_abs_path
(
&
param
.
core_dir
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment