Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
0f724956
Commit
0f724956
authored
Mar 10, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
c70438d5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
wcfs/client/wcfs_misc.cpp
wcfs/client/wcfs_misc.cpp
+5
-5
No files found.
wcfs/client/wcfs_misc.cpp
View file @
0f724956
...
@@ -69,7 +69,7 @@ tuple<File, error> open(const string &path, int flags, mode_t mode) {
...
@@ -69,7 +69,7 @@ tuple<File, error> open(const string &path, int flags, mode_t mode) {
}
}
error
_File
::
close
()
{
error
_File
::
close
()
{
_File
&
f
=
*
this
;
_File
&
f
=
*
this
;
int
err
=
::
close
(
f
.
_fd
);
int
err
=
::
close
(
f
.
_fd
);
if
(
err
!=
0
)
if
(
err
!=
0
)
...
@@ -79,7 +79,7 @@ error _File::close() {
...
@@ -79,7 +79,7 @@ error _File::close() {
}
}
tuple
<
int
,
error
>
_File
::
read
(
void
*
buf
,
size_t
count
)
{
tuple
<
int
,
error
>
_File
::
read
(
void
*
buf
,
size_t
count
)
{
_File
&
f
=
*
this
;
_File
&
f
=
*
this
;
int
n
;
int
n
;
n
=
::
read
(
f
.
_fd
,
buf
,
count
);
n
=
::
read
(
f
.
_fd
,
buf
,
count
);
...
@@ -92,7 +92,7 @@ tuple<int, error> _File::read(void *buf, size_t count) {
...
@@ -92,7 +92,7 @@ tuple<int, error> _File::read(void *buf, size_t count) {
}
}
tuple
<
int
,
error
>
_File
::
write
(
const
void
*
buf
,
size_t
count
)
{
tuple
<
int
,
error
>
_File
::
write
(
const
void
*
buf
,
size_t
count
)
{
_File
&
f
=
*
this
;
_File
&
f
=
*
this
;
int
n
,
wrote
=
0
;
int
n
,
wrote
=
0
;
// NOTE contrary to write(2) we have to write all data as io.Writer requires.
// NOTE contrary to write(2) we have to write all data as io.Writer requires.
...
@@ -110,7 +110,7 @@ tuple <int, error> _File::write(const void *buf, size_t count) {
...
@@ -110,7 +110,7 @@ tuple <int, error> _File::write(const void *buf, size_t count) {
}
}
error
_File
::
stat
(
struct
stat
*
st
)
{
error
_File
::
stat
(
struct
stat
*
st
)
{
_File
&
f
=
*
this
;
_File
&
f
=
*
this
;
int
err
=
fstat
(
f
.
_fd
,
st
);
int
err
=
fstat
(
f
.
_fd
,
st
);
if
(
err
!=
0
)
if
(
err
!=
0
)
...
@@ -121,7 +121,7 @@ error _File::stat(struct stat *st) {
...
@@ -121,7 +121,7 @@ error _File::stat(struct stat *st) {
// _errno returns error corresponding to op(file) and errno.
// _errno returns error corresponding to op(file) and errno.
error
_File
::
_errno
(
const
char
*
op
)
{
error
_File
::
_errno
(
const
char
*
op
)
{
_File
&
f
=
*
this
;
_File
&
f
=
*
this
;
return
_pathError
(
op
,
f
.
_path
,
errno
);
return
_pathError
(
op
,
f
.
_path
,
errno
);
}
}
...
...
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