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
097d449c
Commit
097d449c
authored
20 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
remove curl_ prefix from functions not present in libcurl
parent
7f447134
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
docs/examples/fopen.c
+7
-7
7 additions, 7 deletions
docs/examples/fopen.c
with
7 additions
and
7 deletions
docs/examples/fopen.c
+
7
−
7
View file @
097d449c
...
...
@@ -124,7 +124,7 @@ write_callback(char *buffer,
/* use to attempt to fill the read buffer up to requested number of bytes */
static
int
curl_
fill_buffer
(
URL_FILE
*
file
,
int
want
,
int
waittime
)
fill_buffer
(
URL_FILE
*
file
,
int
want
,
int
waittime
)
{
fd_set
fdread
;
fd_set
fdwrite
;
...
...
@@ -179,7 +179,7 @@ curl_fill_buffer(URL_FILE *file,int want,int waittime)
/* use to remove want bytes from the front of a files buffer */
static
int
curl_
use_buffer
(
URL_FILE
*
file
,
int
want
)
use_buffer
(
URL_FILE
*
file
,
int
want
)
{
/* sort out buffer */
if
((
file
->
buffer_pos
-
want
)
<=
0
)
...
...
@@ -333,9 +333,9 @@ url_fread(void *ptr, size_t size, size_t nmemb, URL_FILE *file)
case
CFTYPE_CURL
:
want
=
nmemb
*
size
;
curl_
fill_buffer
(
file
,
want
,
1
);
fill_buffer
(
file
,
want
,
1
);
/* check if theres data in the buffer - if not
curl_
fill_buffer()
/* check if theres data in the buffer - if not fill_buffer()
* either errored or EOF */
if
(
!
file
->
buffer_pos
)
return
0
;
...
...
@@ -347,7 +347,7 @@ url_fread(void *ptr, size_t size, size_t nmemb, URL_FILE *file)
/* xfer data to caller */
memcpy
(
ptr
,
file
->
buffer
,
want
);
curl_
use_buffer
(
file
,
want
);
use_buffer
(
file
,
want
);
want
=
want
/
size
;
/* number of items - nb correct op - checked
* with glibc code*/
...
...
@@ -377,7 +377,7 @@ url_fgets(char *ptr, int size, URL_FILE *file)
break
;
case
CFTYPE_CURL
:
curl_
fill_buffer
(
file
,
want
,
1
);
fill_buffer
(
file
,
want
,
1
);
/* check if theres data in the buffer - if not fill either errored or
* EOF */
...
...
@@ -403,7 +403,7 @@ url_fgets(char *ptr, int size, URL_FILE *file)
memcpy
(
ptr
,
file
->
buffer
,
want
);
ptr
[
want
]
=
0
;
/* allways null terminate */
curl_
use_buffer
(
file
,
want
);
use_buffer
(
file
,
want
);
/*printf("(fgets) return %d bytes %d left\n", want,file->buffer_pos);*/
break
;
...
...
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