Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
efa474f0
Commit
efa474f0
authored
Feb 10, 2003
by
ml
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed ini_RcReadAndSet
parent
0e5041b3
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
16 deletions
+11
-16
src/exe/rt_ini/src/ini.c
src/exe/rt_ini/src/ini.c
+1
-1
src/exe/rt_ini/src/ini_rc.c
src/exe/rt_ini/src/ini_rc.c
+3
-14
src/exe/rt_ini/src/ini_rc.h
src/exe/rt_ini/src/ini_rc.h
+2
-1
src/exe/rt_ini/src/rt_ini.c
src/exe/rt_ini/src/rt_ini.c
+5
-0
No files found.
src/exe/rt_ini/src/ini.c
View file @
efa474f0
...
@@ -1060,7 +1060,7 @@ ini_ReadBootFile (
...
@@ -1060,7 +1060,7 @@ ini_ReadBootFile (
/* Do we have this volume? */
/* Do we have this volume? */
vp
=
tree_Find
(
sts
,
cp
->
vid_t
,
&
vid
);
vp
=
tree_Find
(
sts
,
cp
->
vid_t
,
&
vid
);
if
(
vp
!=
NULL
)
{
if
(
vp
!=
NULL
)
{
errh_LogInfo
(
&
cp
->
log
,
"Volume al
l
ready defined: %s"
,
s
);
errh_LogInfo
(
&
cp
->
log
,
"Volume already defined: %s"
,
s
);
vp
->
isVolRef
=
0
;
vp
->
isVolRef
=
0
;
/* todo !!! check versions */
/* todo !!! check versions */
}
else
{
}
else
{
...
...
src/exe/rt_ini/src/ini_rc.c
View file @
efa474f0
...
@@ -55,7 +55,8 @@ setRcValue(
...
@@ -55,7 +55,8 @@ setRcValue(
pwr_tStatus
pwr_tStatus
ini_RcReadAndSet
(
ini_RcReadAndSet
(
char
*
nodename
,
const
char
*
dir
,
const
char
*
nodename
,
int
busid
int
busid
)
{
)
{
...
@@ -84,23 +85,11 @@ ini_RcReadAndSet(
...
@@ -84,23 +85,11 @@ ini_RcReadAndSet(
char
filename
[
128
];
char
filename
[
128
];
int
interval
;
int
interval
;
#ifdef OS_ELN
char
hostspec
[
32
];
#endif
for
(
rc
=
def_rc
;
rc
&&
rc
->
name
;
rc
++
)
for
(
rc
=
def_rc
;
rc
&&
rc
->
name
;
rc
++
)
*
rc
->
var
=
rc
->
val
;
*
rc
->
var
=
rc
->
val
;
#if defined OS_VMS
sprintf
(
filename
,
load_cNameRc
,
dir
,
nodename
,
busid
);
sprintf
(
filename
,
load_cNameRc
,
load_cNameDirectory
,
nodename
,
busid
);
#elif defined OS_ELN
ini_GetNodeInfo
(
NULL
,
NULL
,
NULL
,
hostspec
,
NULL
,
NULL
);
sprintf
(
filename
,
"%s::%s%s"
,
hostspec
,
load_cNameDirectory
,
name
);
#else
sprintf
(
filename
,
"%s/%s"
,
getenv
(
load_cNameDirectory
),
name
);
#endif
cdh_ToLower
(
filename
,
filename
);
cdh_ToLower
(
filename
,
filename
);
fp
=
fopen
(
filename
,
"r"
);
fp
=
fopen
(
filename
,
"r"
);
...
...
src/exe/rt_ini/src/ini_rc.h
View file @
efa474f0
...
@@ -13,7 +13,8 @@
...
@@ -13,7 +13,8 @@
pwr_tStatus
pwr_tStatus
ini_RcReadAndSet
(
ini_RcReadAndSet
(
char
*
nodename
,
const
char
*
dir
,
const
char
*
nodename
,
int
busid
int
busid
);
);
...
...
src/exe/rt_ini/src/rt_ini.c
View file @
efa474f0
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
#include "co_ver.h"
#include "co_ver.h"
#include "co_time.h"
#include "co_time.h"
#include "ini.h"
#include "ini.h"
#include "ini_rc.h"
#include "rt_ini_alias.h"
#include "rt_ini_alias.h"
#include "rt_ini_event.h"
#include "rt_ini_event.h"
#include "rt_bck_load.h"
#include "rt_bck_load.h"
...
@@ -147,6 +148,10 @@ start (
...
@@ -147,6 +148,10 @@ start (
}
}
}
}
sts
=
ini_RcReadAndSet
(
cp
->
dir
,
cp
->
nodename
,
cp
->
busid
);
if
(
EVEN
(
sts
))
errh_LogError
(
&
cp
->
log
,
"ini_RcReadAndSet, %m"
,
sts
);
sts
=
ini_SetAttribute
(
cp
->
aliasfile
.
name
,
cp
->
nodename
,
0
);
sts
=
ini_SetAttribute
(
cp
->
aliasfile
.
name
,
cp
->
nodename
,
0
);
if
(
EVEN
(
sts
))
if
(
EVEN
(
sts
))
errh_LogError
(
&
cp
->
log
,
"ini_SetAttribute, %m"
,
sts
);
errh_LogError
(
&
cp
->
log
,
"ini_SetAttribute, %m"
,
sts
);
...
...
Write
Preview
Markdown
is supported
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