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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
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
Hide 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) {
}
error
_File
::
close
()
{
_File
&
f
=
*
this
;
_File
&
f
=
*
this
;
int
err
=
::
close
(
f
.
_fd
);
if
(
err
!=
0
)
...
...
@@ -79,7 +79,7 @@ error _File::close() {
}
tuple
<
int
,
error
>
_File
::
read
(
void
*
buf
,
size_t
count
)
{
_File
&
f
=
*
this
;
_File
&
f
=
*
this
;
int
n
;
n
=
::
read
(
f
.
_fd
,
buf
,
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
)
{
_File
&
f
=
*
this
;
_File
&
f
=
*
this
;
int
n
,
wrote
=
0
;
// 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) {
}
error
_File
::
stat
(
struct
stat
*
st
)
{
_File
&
f
=
*
this
;
_File
&
f
=
*
this
;
int
err
=
fstat
(
f
.
_fd
,
st
);
if
(
err
!=
0
)
...
...
@@ -121,7 +121,7 @@ error _File::stat(struct stat *st) {
// _errno returns error corresponding to op(file) and errno.
error
_File
::
_errno
(
const
char
*
op
)
{
_File
&
f
=
*
this
;
_File
&
f
=
*
this
;
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