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
7770f9fa
Commit
7770f9fa
authored
Jun 24, 2008
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optionfile created
parent
a7dd855f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
2 deletions
+42
-2
wb/lib/wb/src/wb_lfu.cpp
wb/lib/wb/src/wb_lfu.cpp
+40
-1
wb/lib/wb/src/wb_lfu.h
wb/lib/wb/src/wb_lfu.h
+2
-1
No files found.
wb/lib/wb/src/wb_lfu.cpp
View file @
7770f9fa
/*
* Proview $Id: wb_lfu.cpp,v 1.1
5 2008-06-02 14:57:07
claes Exp $
* Proview $Id: wb_lfu.cpp,v 1.1
6 2008-06-24 07:48:18
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -1273,6 +1273,7 @@ pwr_tStatus lfu_SaveDirectoryVolume(
lfu_check_appl_file
(
nodename_ptr
,
*
bus_number_ptr
);
lfu_check_opt_file
(
nodename_ptr
,
*
bus_number_ptr
,
(
pwr_mOpSys
)
os
);
/* Find the volumes in this node */
sts
=
ldh_GetChild
(
ldhses
,
nodeobjid
,
&
volobjid
);
...
...
@@ -2667,5 +2668,43 @@ pwr_tStatus lfu_check_appl_file( char *nodename, int bus_number)
return
LFU__SUCCESS
;
}
pwr_tStatus
lfu_check_opt_file
(
char
*
nodename
,
int
bus_number
,
pwr_mOpSys
opsys
)
{
pwr_tFileName
fname
;
pwr_tTime
t
;
char
dir
[
80
];
sprintf
(
dir
,
"$pwrp_root/%s/exe/"
,
cdh_OpSysToStr
(
opsys
));
sprintf
(
fname
,
load_cNameOpt
,
dir
,
nodename
,
bus_number
);
dcli_translate_filename
(
fname
,
fname
);
if
(
ODD
(
dcli_file_time
(
fname
,
&
t
)))
return
LFU__SUCCESS
;
strcat
(
fname
,
"_template"
);
if
(
ODD
(
dcli_file_time
(
fname
,
&
t
)))
return
LFU__SUCCESS
;
// Create a template file
ofstream
fp
(
fname
);
if
(
!
fp
)
return
LFU__SUCCESS
;
switch
(
opsys
)
{
case
pwr_mOpSys_PPC_LYNX
:
case
pwr_mOpSys_X86_LYNX
:
case
pwr_mOpSys_PPC_LINUX
:
case
pwr_mOpSys_X86_LINUX
:
case
pwr_mOpSys_AXP_LINUX
:
fp
<<
"$pwr_obj/rt_io_user.o -lpwr_rt -lpwr_usbio_dummy"
<<
endl
;
break
;
default
:
;
}
fp
.
close
();
return
LFU__SUCCESS
;
}
wb/lib/wb/src/wb_lfu.h
View file @
7770f9fa
/*
* Proview $Id: wb_lfu.h,v 1.
9 2008-06-02 14:57:07
claes Exp $
* Proview $Id: wb_lfu.h,v 1.
10 2008-06-24 07:48:18
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -135,6 +135,7 @@ pwr_tStatus lfu_ParseDbmsServer( char *server, char *user, char *passw,
unsigned
int
*
port
,
char
*
host
);
pwr_tStatus
lfu_check_appl_file
(
char
*
nodename
,
int
bus_number
);
pwr_tStatus
lfu_check_opt_file
(
char
*
nodename
,
int
bus_number
,
pwr_mOpSys
opsys
);
#ifdef __cplusplus
}
...
...
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