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
9d107370
Commit
9d107370
authored
26 years ago
by
Henrik (Grubba) Grubbström
Browse files
Options
Downloads
Patches
Plain Diff
Fixed bug in readdir_r() check.
Rev: src/modules/files/efuns.c:1.52
parent
bb2da128
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
+3
-4
3 additions, 4 deletions
src/modules/files/efuns.c
with
3 additions
and
4 deletions
src/modules/files/efuns.c
+
3
−
4
View file @
9d107370
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
#include
"file_machine.h"
#include
"file_machine.h"
#include
"file.h"
#include
"file.h"
RCSID
(
"$Id: efuns.c,v 1.5
1
1998/06/2
2 20:07:08
grubba Exp $"
);
RCSID
(
"$Id: efuns.c,v 1.5
2
1998/06/2
8 16:15:26
grubba Exp $"
);
#ifdef HAVE_SYS_TYPES_H
#ifdef HAVE_SYS_TYPES_H
#include
<sys/types.h>
#include
<sys/types.h>
...
@@ -390,8 +390,8 @@ void f_mkdir(INT32 args)
...
@@ -390,8 +390,8 @@ void f_mkdir(INT32 args)
}
}
#undef HAVE_READDIR_R
#undef HAVE_READDIR_R
#if defined(HAVE_SOLARIS_READDIR_R) || defined(HAVE_
SOLARIS_HPUX
_R) || \
#if defined(HAVE_SOLARIS_READDIR_R) || defined(HAVE_
HPUX_READDIR
_R) || \
defined(HAVE_POSIX_R)
defined(HAVE_POSIX_
READDIR_
R)
#define HAVE_READDIR_R
#define HAVE_READDIR_R
#endif
#endif
...
@@ -441,7 +441,6 @@ void f_get_dir(INT32 args)
...
@@ -441,7 +441,6 @@ void f_get_dir(INT32 args)
while
(
1
)
while
(
1
)
{
{
/* Should have code for the POSIX variant here also */
#ifdef HAVE_SOLARIS_READDIR_R
#ifdef HAVE_SOLARIS_READDIR_R
/* Solaris readdir_r returns the second arg on success,
/* Solaris readdir_r returns the second arg on success,
* and returns NULL on error or at end of dir.
* and returns NULL on error or at end of dir.
...
...
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