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
50e9554c
Commit
50e9554c
authored
Dec 22, 2003
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapted to 4.0
parent
99dc56ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
66 deletions
+2
-66
wb/lib/wb/src/wb_c_rootvolumeconfig.c
wb/lib/wb/src/wb_c_rootvolumeconfig.c
+2
-66
No files found.
wb/lib/wb/src/wb_c_rootvolumeconfig.c
View file @
50e9554c
...
...
@@ -28,90 +28,26 @@ static pwr_tStatus OpenDb (
ldh_sMenuCall
*
ip
)
{
#ifdef OS_VMS
int
size
;
char
*
db_id
;
int
sts
;
char
volume_name
[
80
];
char
parent_name
[
80
];
static
char
cmd
[
100
];
$
DESCRIPTOR
(
cmd_desc
,
cmd
);
unsigned
long
cli_flag
=
CLI
$
M_NOWAIT
;
pwr_tObjid
parent
;
sts
=
ldh_ObjidToName
(
ip
->
PointedSession
,
ip
->
Pointed
.
Objid
,
ldh_eName_Object
,
volume_name
,
sizeof
(
volume_name
),
&
size
);
if
(
EVEN
(
sts
))
return
sts
;
sts
=
ldh_GetParent
(
ip
->
PointedSession
,
ip
->
Pointed
.
Objid
,
&
parent
);
if
(
EVEN
(
sts
))
return
sts
;
/* ???? Check that this is a DbConfig or DbTrace object... */
sts
=
ldh_GetObjectPar
(
ip
->
PointedSession
,
parent
,
"RtBody"
,
"Id"
,
(
char
**
)
&
db_id
,
&
size
);
if
(
EVEN
(
sts
))
return
sts
;
sts
=
ldh_ObjidToName
(
ip
->
PointedSession
,
parent
,
ldh_eName_Object
,
parent_name
,
sizeof
(
parent_name
),
&
size
);
if
(
EVEN
(
sts
))
return
sts
;
sprintf
(
cmd
,
"@pwr_exe:wb_open_db
\"
%s
\"
\"
%s
\"
\"
%s
\"
\"
%s
\"
\"
%s
\"
"
,
db_id
,
login_prv
.
username
,
login_prv
.
password
,
volume_name
,
parent_name
);
free
(
db_id
);
sts
=
lib
$
spawn
(
&
cmd_desc
,
0
,
0
,
&
cli_flag
);
if
(
EVEN
(
sts
))
{
printf
(
"-- Error when creating subprocess.
\n
"
);
return
sts
;
}
#else
int
size
;
char
*
db_id_p
;
char
db_id
[
80
];
int
sts
;
char
volume_name
[
80
];
char
parent_name
[
80
];
char
filename
[
80
];
char
cmd
[
100
];
pwr_tObjid
parent
;
sts
=
ldh_ObjidToName
(
ip
->
PointedSession
,
ip
->
Pointed
.
Objid
,
ldh_eName_Object
,
volume_name
,
sizeof
(
volume_name
),
&
size
);
if
(
EVEN
(
sts
))
return
sts
;
sts
=
ldh_GetParent
(
ip
->
PointedSession
,
ip
->
Pointed
.
Objid
,
&
parent
);
if
(
EVEN
(
sts
))
return
sts
;
/* ???? Check that this is a DbConfig or DbTrace object... */
sts
=
ldh_GetObjectPar
(
ip
->
PointedSession
,
parent
,
"RtBody"
,
"Id"
,
(
char
**
)
&
db_id_p
,
&
size
);
if
(
EVEN
(
sts
))
return
sts
;
sts
=
ldh_ObjidToName
(
ip
->
PointedSession
,
parent
,
ldh_eName_Object
,
parent_name
,
sizeof
(
parent_name
),
&
size
);
if
(
EVEN
(
sts
))
return
sts
;
dcli_translate_filename
(
filename
,
"$pwr_exe/wb_open_db.sh"
);
cdh_ToLower
(
db_id
,
db_id_p
);
sprintf
(
cmd
,
"%s
\"
%s
\"
\"
%s
\"
\"
%s
\"
\"
%s
\"
\"
%s
\"
&"
,
filename
,
db_id
,
login_prv
.
username
,
login_prv
.
password
,
volume_name
,
parent_name
);
free
(
db_id_p
);
"%s
\"
%s
\"
\"
%s
\"
\"
%s
\"
\"
%s
\"
&"
,
filename
,
login_prv
.
username
,
login_prv
.
password
,
volume_name
,
volume_name
);
sts
=
system
(
cmd
);
if
(
sts
==
-
1
||
sts
==
127
)
{
printf
(
"-- Error when creating process.
\n
"
);
return
sts
;
}
#endif
return
1
;
}
...
...
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