Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cookbook
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
redox-os
cookbook
Commits
a57a25da
Commit
a57a25da
authored
1 year ago
by
Chocimier
Browse files
Options
Downloads
Patches
Plain Diff
add gdbm
parent
1b7bf57b
No related branches found
Branches containing commit
No related tags found
1 merge request
!350
add apache-httpd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
recipes/wip/libs/gdbm/recipe.toml
+7
-0
7 additions, 0 deletions
recipes/wip/libs/gdbm/recipe.toml
recipes/wip/libs/gdbm/redox.patch
+77
-0
77 additions, 0 deletions
recipes/wip/libs/gdbm/redox.patch
with
84 additions
and
0 deletions
recipes/wip/libs/gdbm/recipe.toml
0 → 100644
+
7
−
0
View file @
a57a25da
[source]
tar
=
"https://ftp.gnu.org/gnu/gdbm/gdbm-1.23.tar.gz"
patches
=
[
"redox.patch"
,
]
[build]
template
=
"configure"
This diff is collapsed.
Click to expand it.
recipes/wip/libs/gdbm/redox.patch
0 → 100644
+
77
−
0
View file @
a57a25da
diff --git a/build-aux/config.sub b/build-aux/config.sub
index 7ffe373..e2368e0 100755
--- a/build-aux/config.sub
+++ b/build-aux/config.sub
@@ -1393,7 +1393,7 @@
case $os in
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
- | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
+ | -skyos* | -haiku* | -rdos* | -redox* | -toppers* | -drops* | -es* | -tirtos*)
# Remember, each alternative MUST END IN *, to match a version number.
;;
-qnx*)
diff --git a/tools/gdbmshell.c b/tools/gdbmshell.c
index 22c4938..bf75dc8 100644
--- a/tools/gdbmshell.c
+++ b/tools/gdbmshell.c
@@ -2890,16 +2890,6 @@
struct timing
struct timeval sys;
};
-void
-timing_start (struct timing *t)
-{
- struct rusage r;
- gettimeofday (&t->real, NULL);
- getrusage (RUSAGE_SELF, &r);
- t->user = r.ru_utime;
- t->sys = r.ru_stime;
-}
-
static inline struct timeval
timeval_sub (struct timeval a, struct timeval b)
{
@@ -2916,19 +2906,6 @@
timeval_sub (struct timeval a, struct timeval b)
return diff;
}
-void
-timing_stop (struct timing *t)
-{
- struct rusage r;
- struct timeval now;
-
- gettimeofday (&now, NULL);
- getrusage (RUSAGE_SELF, &r);
- t->real = timeval_sub (now, t->real);
- t->user = timeval_sub (r.ru_utime, t->user);
- t->sys = timeval_sub (r.ru_stime, t->sys);
-}
-
static int
argsprep (struct command *cmd, struct gdbmarglist *arglist,
struct command_param *param)
@@ -3047,22 +3024,12 @@
run_command (struct command *cmd, struct gdbmarglist *arglist)
else
cenv.fp = stdout;
- timing_start (&tm);
rc = cmd->handler (¶m, &cenv);
- timing_stop (&tm);
if (cmd->end)
cmd->end (cenv.data);
else if (cenv.data)
free (cenv.data);
- if (variable_is_true ("timing"))
- {
- fprintf (cenv.fp, "[%s r=%lu.%06lu u=%lu.%06lu s=%lu.%06lu]\n",
- cmd->name,
- tm.real.tv_sec, tm.real.tv_usec,
- tm.user.tv_sec, tm.user.tv_usec,
- tm.sys.tv_sec, tm.sys.tv_usec);
- }
if (pagfp)
pclose (pagfp);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment