Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
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
pikelang
pike
Commits
9cf108e3
Commit
9cf108e3
authored
26 years ago
by
Henrik (Grubba) Grubbström
Browse files
Options
Downloads
Patches
Plain Diff
Check for struct statvfs member f_basetype.
Rev: src/modules/files/efuns.c:1.42
parent
d4a96074
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/modules/files/efuns.c
+8
-6
8 additions, 6 deletions
src/modules/files/efuns.c
with
8 additions
and
6 deletions
src/modules/files/efuns.c
+
8
−
6
View file @
9cf108e3
...
@@ -209,11 +209,15 @@ void f_filesystem_stat(INT32 args)
...
@@ -209,11 +209,15 @@ void f_filesystem_stat(INT32 args)
push_int
(
st
.
f_ffree
);
push_int
(
st
.
f_ffree
);
push_text
(
"favail"
);
push_text
(
"favail"
);
push_int
(
st
.
f_favail
);
push_int
(
st
.
f_favail
);
push_text
(
"fstype"
);
push_text
(
st
.
f_basetype
);
push_text
(
"fsname"
);
push_text
(
"fsname"
);
push_text
(
st
.
f_fstr
);
push_text
(
st
.
f_fstr
);
#ifdef HAVE_STATVFS_F_BASETYPE
push_text
(
"fstype"
);
push_text
(
st
.
f_basetype
);
f_aggregate_mapping
(
9
*
2
);
f_aggregate_mapping
(
9
*
2
);
#else
/* !HAVE_STATVFS_ST_BASETYPE */
f_aggregete_mapping
(
8
*
2
);
#endif
/* HAVE_STATVFS_ST_BASETYPE */
#else
/* !HAVE_STATVFS */
#else
/* !HAVE_STATVFS */
#ifdef HAVE_STATFS
#ifdef HAVE_STATFS
#ifdef HAVE_STRUCT_STATFS
#ifdef HAVE_STRUCT_STATFS
...
@@ -223,10 +227,6 @@ void f_filesystem_stat(INT32 args)
...
@@ -223,10 +227,6 @@ void f_filesystem_stat(INT32 args)
push_int
(
st
.
f_blocks
);
push_int
(
st
.
f_blocks
);
push_text
(
"bfree"
);
push_text
(
"bfree"
);
push_int
(
st
.
f_bfree
);
push_int
(
st
.
f_bfree
);
#ifdef HAVE_STATFS_F_BAVAIL
push_text
(
"bavail"
);
push_int
(
st
.
f_bavail
);
#endif
/* HAVE_STATFS_F_BAVAIL */
push_text
(
"files"
);
push_text
(
"files"
);
push_int
(
st
.
f_files
);
push_int
(
st
.
f_files
);
push_text
(
"ffree"
);
push_text
(
"ffree"
);
...
@@ -234,6 +234,8 @@ void f_filesystem_stat(INT32 args)
...
@@ -234,6 +234,8 @@ void f_filesystem_stat(INT32 args)
push_text
(
"favail"
);
push_text
(
"favail"
);
push_int
(
st
.
f_ffree
);
push_int
(
st
.
f_ffree
);
#ifdef HAVE_STATFS_F_BAVAIL
#ifdef HAVE_STATFS_F_BAVAIL
push_text
(
"bavail"
);
push_int
(
st
.
f_bavail
);
f_aggregate_mapping
(
7
*
2
);
f_aggregate_mapping
(
7
*
2
);
#else
#else
f_aggregate_mapping
(
6
*
2
);
f_aggregate_mapping
(
6
*
2
);
...
...
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