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
244e4d53
Commit
244e4d53
authored
27 years ago
by
Henrik (Grubba) Grubbström
Browse files
Options
Downloads
Patches
Plain Diff
Minor change.
Rev: src/modules/files/configure.in:1.21 Rev: src/modules/files/efuns.c:1.26
parent
7c77829e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/modules/files/configure.in
+1
-0
1 addition, 0 deletions
src/modules/files/configure.in
src/modules/files/efuns.c
+5
-3
5 additions, 3 deletions
src/modules/files/efuns.c
with
6 additions
and
3 deletions
src/modules/files/configure.in
+
1
−
0
View file @
244e4d53
...
@@ -135,6 +135,7 @@ int main()
...
@@ -135,6 +135,7 @@ int main()
AC_MSG_CHECKING(if the struct statfs has the member f_bavail)
AC_MSG_CHECKING(if the struct statfs has the member f_bavail)
AC_CACHE_VAL(pike_cv_struct_statfs_f_bavail, [
AC_CACHE_VAL(pike_cv_struct_statfs_f_bavail, [
AC_TRY_COMPILE([
AC_TRY_COMPILE([
#include <sys/stat.h>
#ifdef HAVE_SYS_MOUNT_H
#ifdef HAVE_SYS_MOUNT_H
#include <sys/mount.h>
#include <sys/mount.h>
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
src/modules/files/efuns.c
+
5
−
3
View file @
244e4d53
...
@@ -189,11 +189,9 @@ void f_filesystem_stat(INT32 args)
...
@@ -189,11 +189,9 @@ 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
);
push_text
(
"bavail"
);
#ifdef HAVE_STATFS_F_BAVAIL
#ifdef HAVE_STATFS_F_BAVAIL
push_text
(
"bavail"
);
push_int
(
st
.
f_bavail
);
push_int
(
st
.
f_bavail
);
#else
push_int
(
st
.
f_bfree
);
#endif
/* HAVE_STATFS_F_BAVAIL */
#endif
/* HAVE_STATFS_F_BAVAIL */
push_text
(
"files"
);
push_text
(
"files"
);
push_int
(
st
.
f_files
);
push_int
(
st
.
f_files
);
...
@@ -201,7 +199,11 @@ void f_filesystem_stat(INT32 args)
...
@@ -201,7 +199,11 @@ 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_ffree
);
push_int
(
st
.
f_ffree
);
#ifdef HAVE_STATFS_F_BAVAIL
f_aggregate_mapping
(
7
*
2
);
f_aggregate_mapping
(
7
*
2
);
#else
f_aggregate_mapping
(
6
*
2
);
#endif
/* HAVE_STATFS_F_BAVAIL */
#else
#else
#ifdef HAVE_USTAT
#ifdef HAVE_USTAT
push_text
(
"bfree"
);
push_text
(
"bfree"
);
...
...
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