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
fa745fa2
Commit
fa745fa2
authored
Jun 17, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Function to print backup moved from 3.9
parent
3fdde0b6
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
495 additions
and
7 deletions
+495
-7
src/exe/rt_bck/src/rt_bck.c
src/exe/rt_bck/src/rt_bck.c
+15
-7
src/exe/rt_bck/src/rt_bck_print.c
src/exe/rt_bck/src/rt_bck_print.c
+480
-0
No files found.
src/exe/rt_bck/src/rt_bck.c
View file @
fa745fa2
...
...
@@ -61,6 +61,8 @@
#include "rt_qcom_msg.h"
#include "rt_ini_event.h"
pwr_tStatus
bck_print
(
char
*
);
#define check4a(sts,str) if((sts)==-1)perror(str)
#if defined OS_VMS || defined OS_ELN
...
...
@@ -1355,13 +1357,25 @@ pwr_tUInt32 bck_init ()
/* This is the main program of backup. It initializes backup
and then waits for forced activation... */
int
main
(
)
int
main
(
int
argc
,
char
*
argv
[]
)
{
pwr_tStatus
sts
;
pwr_tInt32
sts4a
;
pwr_tUInt32
c
;
int
i
;
qcom_sQid
my_q
=
qcom_cNQid
;
for
(
i
=
1
;
i
<
argc
;
i
++
)
{
if
(
strcmp
(
argv
[
i
],
"-p"
)
==
0
)
{
bck_print
(
"$pwrp_load/bck.txt"
);
exit
(
1
);
}
else
if
(
strcmp
(
argv
[
i
],
"-h"
)
==
0
)
{
printf
(
"Usage:
\n
rt_bck -p
\n
Print content of backuped objects to $pwrp_load/bck.txt
\n
"
);
exit
(
1
);
}
}
errh_Init
(
"pwr_bck"
,
errh_eAnix_bck
);
errh_SetStatus
(
PWR__SRVSTARTUP
);
...
...
@@ -1422,9 +1436,3 @@ int main ()
}
}
src/exe/rt_bck/src/rt_bck_print.c
0 → 100644
View file @
fa745fa2
This diff is collapsed.
Click to expand it.
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