Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
margo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
sds
margo
Commits
2cdc9566
Commit
2cdc9566
authored
Mar 29, 2016
by
Philip Carns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hush warning and update commented out io example
parent
b636e253
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
examples/my-rpc.c
examples/my-rpc.c
+6
-5
No files found.
examples/my-rpc.c
View file @
2cdc9566
...
...
@@ -30,8 +30,10 @@ static void my_rpc_ult(void *_arg)
void
*
buffer
;
hg_bulk_t
bulk_handle
;
struct
hg_info
*
hgi
;
#if 0
int fd;
char filename[256];
#endif
margo_instance_id
mid
;
ret
=
HG_Get_input
(
*
handle
,
&
in
);
...
...
@@ -60,17 +62,16 @@ static void my_rpc_ult(void *_arg)
bulk_handle
,
0
,
size
);
assert
(
ret
==
0
);
/* write to a file; would be done with abt-io if we enabled it */
#if 0
/* write to a file */
sprintf(filename, "/tmp/hg-fiber-%d.txt", in.input_val);
fd =
fbr_eio_open(fctx, filename, O_WRONLY|O_CREAT, S_IWUSR|S_IRUSR, 0
);
fd =
abt_io_open(aid, filename, O_WRONLY|O_CREAT, S_IWUSR|S_IRUSR
);
assert(fd > -1);
ret =
fbr_eio_write(fctx, fd, buffer, 512, 0
, 0);
ret =
abt_io_pwrite(aid, fd, buffer, 512
, 0);
assert(ret == 512);
fbr_eio_close(fctx, fd, 0
);
abt_io_close(aid, fd
);
#endif
hret
=
HG_Respond
(
*
handle
,
NULL
,
NULL
,
&
out
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment