Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zipr_callbacks
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
Service Desk
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Open Source Software
zipr_callbacks
Commits
c5ebfe59
Commit
c5ebfe59
authored
10 years ago
by
an7s
Browse files
Options
Downloads
Patches
Plain Diff
Use read/write cgc libc wrappers
parent
935406ab
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
inferfn/infer.c
+2
-2
2 additions, 2 deletions
inferfn/infer.c
inferfn/infercallback.c
+2
-2
2 additions, 2 deletions
inferfn/infercallback.c
with
4 additions
and
4 deletions
inferfn/infer.c
+
2
−
2
View file @
c5ebfe59
...
...
@@ -12,7 +12,7 @@ void print_str2(char *s)
static
void
send_response
(
const
int
fd
,
struct
response
*
res
)
{
cgc_transm
it
(
fd
,
res
,
sizeof
(
struct
response
));
wr
it
e
(
fd
,
res
,
sizeof
(
struct
response
));
}
static
void
send_error_response
(
const
int
fd
)
...
...
@@ -233,7 +233,7 @@ void commandLoop()
do
{
clear_request
(
&
req
);
int
bytes_read
=
cgc_receive
(
fdin
,
&
req
,
sizeof
(
struct
request
));
int
bytes_read
=
read
(
fdin
,
&
req
,
sizeof
(
struct
request
));
itox
(
bytes_read
,
s
);
print_str2
(
"commandLoop(): ... bytes read:
\n
"
);
...
...
This diff is collapsed.
Click to expand it.
inferfn/infercallback.c
+
2
−
2
View file @
c5ebfe59
...
...
@@ -38,13 +38,13 @@
#define write_fd 1
void
print_str
(
char
*
s
)
{
wr
it
e
(
write_fd
,
s
,
strlen
(
s
));
cgc_transm
it
(
write_fd
,
s
,
strlen
(
s
));
}
void
print_int
(
int
x
)
{
char
buf
[
100
];
itox
(
x
,
buf
);
wr
it
e
(
write_fd
,
buf
,
strlen
(
buf
));
cgc_transm
it
(
write_fd
,
buf
,
strlen
(
buf
));
}
#endif
...
...
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