Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
5625e5d5
Commit
5625e5d5
authored
18 years ago
by
Yang Tse
Browse files
Options
Downloads
Patches
Plain Diff
add debug message and expand comment
parent
8a529bd9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/libtest/lib518.c
+11
-2
11 additions, 2 deletions
tests/libtest/lib518.c
tests/libtest/lib537.c
+11
-2
11 additions, 2 deletions
tests/libtest/lib537.c
with
22 additions
and
4 deletions
tests/libtest/lib518.c
+
11
−
2
View file @
5625e5d5
...
...
@@ -77,6 +77,8 @@ static int fopen_works(void)
for
(
i
=
0
;
i
<
3
;
i
++
)
{
fpa
[
i
]
=
fopen
(
DEV_NULL
,
"r"
);
if
(
fpa
[
i
]
==
NULL
)
{
store_errmsg
(
"fopen() failed"
,
ERRNO
);
fprintf
(
stderr
,
"%s
\n
"
,
msgbuff
);
ret
=
0
;
break
;
}
...
...
@@ -394,11 +396,18 @@ static int rlimit(int keep_open)
#endif
/* using a FD_SETSIZE bound select() */
/* test stdio's capability to fopen() SAFETY_MARGIN additional files */
/*
* Old or 'backwards compatible' implementations of stdio do not allow
* handling of streams with an underlying file descriptor number greater
* than 255, even when allowing high numbered file descriptors for sockets.
* At this point we have a big number of file descriptors which have been
* opened using dup(), so lets test the stdio implementation and discover
* if it is capable of fopen()ing some additional files.
*/
if
(
!
fopen_works
())
{
sprintf
(
strbuff1
,
fmt
,
num_open
.
rlim_max
);
sprintf
(
strbuff
,
"stdio fopen() fails with %s open()
files
"
,
sprintf
(
strbuff
,
"stdio fopen() fails with %s
fds
open()"
,
strbuff1
);
store_errmsg
(
strbuff
,
0
);
fprintf
(
stderr
,
"%s
\n
"
,
msgbuff
);
...
...
This diff is collapsed.
Click to expand it.
tests/libtest/lib537.c
+
11
−
2
View file @
5625e5d5
...
...
@@ -78,6 +78,8 @@ static int fopen_works(void)
for
(
i
=
0
;
i
<
3
;
i
++
)
{
fpa
[
i
]
=
fopen
(
DEV_NULL
,
"r"
);
if
(
fpa
[
i
]
==
NULL
)
{
store_errmsg
(
"fopen() failed"
,
ERRNO
);
fprintf
(
stderr
,
"%s
\n
"
,
msgbuff
);
ret
=
0
;
break
;
}
...
...
@@ -397,11 +399,18 @@ static int rlimit(int keep_open)
#endif
/* using a FD_SETSIZE bound select() */
/* test stdio's capability to fopen() SAFETY_MARGIN additional files */
/*
* Old or 'backwards compatible' implementations of stdio do not allow
* handling of streams with an underlying file descriptor number greater
* than 255, even when allowing high numbered file descriptors for sockets.
* At this point we have a big number of file descriptors which have been
* opened using dup(), so lets test the stdio implementation and discover
* if it is capable of fopen()ing some additional files.
*/
if
(
!
fopen_works
())
{
sprintf
(
strbuff1
,
fmt
,
num_open
.
rlim_max
);
sprintf
(
strbuff
,
"stdio fopen() fails with %s open()
files
"
,
sprintf
(
strbuff
,
"stdio fopen() fails with %s
fds
open()"
,
strbuff1
);
store_errmsg
(
strbuff
,
0
);
fprintf
(
stderr
,
"%s
\n
"
,
msgbuff
);
...
...
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