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
d5231b6b
Commit
d5231b6b
authored
Apr 28, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handling and control of dbs-files in volref
parent
4c76db92
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
5 deletions
+23
-5
src/lib/co/src/co_dbs.c
src/lib/co/src/co_dbs.c
+22
-5
src/lib/co/src/co_dbs.pdr
src/lib/co/src/co_dbs.pdr
+1
-0
No files found.
src/lib/co/src/co_dbs.c
View file @
d5231b6b
...
...
@@ -74,6 +74,28 @@ dbs_VolRef(pwr_tStatus *sts, pwr_tUInt32 index, dbs_sVolRef *vp, const dbs_sEnv
return
vp
;
}
dbs_sVolume
*
dbs_Volume
(
pwr_tStatus
*
sts
,
dbs_sVolume
*
vp
,
const
dbs_sEnv
*
ep
)
{
dbs_sSect
sect
;
fseek
(
ep
->
f
,
ep
->
file
.
offset
+
(
dbs_eSect_volume
*
dbs_dAlign
(
sizeof
(
sect
))),
SEEK_SET
);
if
(
fread
(
&
sect
,
sizeof
(
sect
),
1
,
ep
->
f
)
==
0
)
{
*
sts
=
errno_GetStatus
();
return
NULL
;
}
fseek
(
ep
->
f
,
sect
.
offset
,
SEEK_SET
);
if
(
fread
(
vp
,
sizeof
(
*
vp
),
1
,
ep
->
f
)
==
0
)
{
*
sts
=
errno_GetStatus
();
return
NULL
;
}
return
vp
;
}
pwr_tBoolean
dbs_Close
(
pwr_tStatus
*
sts
,
dbs_sEnv
*
ep
)
{
...
...
@@ -478,11 +500,6 @@ dbs_nVolRef(pwr_tStatus *sts, const dbs_sMenv *mep)
}
static
dbs_sVolRef
*
findVolref
(
dbs_sMenv
*
mep
,
pwr_tVid
vid
)
{
return
NULL
;
}
void
dbs_Split
(
pwr_tStatus
*
sts
,
dbs_sMenv
*
mep
,
char
*
dirName
)
{
...
...
src/lib/co/src/co_dbs.pdr
View file @
d5231b6b
...
...
@@ -600,6 +600,7 @@ struct dbs_sScObject {
%dbs_sEnv *dbs_Open(pwr_tStatus *sts, dbs_sEnv *ep, const char *filename);
%#if defined(OS_LINUX) || defined(OS_LYNX)
%dbs_sVolRef *dbs_VolRef(pwr_tStatus *sts, pwr_tUInt32 index, dbs_sVolRef *vp, const dbs_sEnv *ep);
%dbs_sVolume *dbs_Volume(pwr_tStatus *sts, dbs_sVolume *vp, const dbs_sEnv *ep);
%void *dbs_Address(pwr_tStatus*, const dbs_sVenv*, dbs_tRef);
%void dbs_Dump(pwr_tStatus*, const dbs_sEnv*);
%dbs_tRef dbs_InDbs(pwr_tStatus*, const dbs_sEnv*, void*, pwr_tUInt32);
...
...
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