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
160e1e90
Commit
160e1e90
authored
Oct 23, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
c0611d70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
wcfs/internal/wcfs_misc.cpp
wcfs/internal/wcfs_misc.cpp
+3
-1
wcfs/internal/wcfs_misc.h
wcfs/internal/wcfs_misc.h
+2
-2
No files found.
wcfs/internal/wcfs_misc.cpp
View file @
160e1e90
...
...
@@ -46,6 +46,7 @@ error File::close() {
int
err
=
::
close
(
f
->
_fd
);
if
(
err
!=
0
)
return
f
->
_errno
(
"close"
);
f
->
_fd
=
-
1
;
return
nil
;
}
...
...
@@ -59,7 +60,7 @@ error File::stat(struct stat *st) {
}
// _errno returns error corresponding to op and errno.
// _errno returns error corresponding to
file->
op and errno.
error
File
::
_errno
(
const
char
*
op
)
{
File
*
f
=
this
;
char
ebuf
[
128
];
...
...
@@ -73,6 +74,7 @@ error File::_errno(const char *op) {
// fmt::
namespace
fmt
{
static
string
_vsprintf
(
const
string
&
format
,
va_list
argp
)
{
// based on https://stackoverflow.com/a/26221725/9456786
va_list
argp2
;
...
...
wcfs/internal/wcfs_misc.h
View file @
160e1e90
...
...
@@ -17,7 +17,7 @@
// See COPYING file for full licensing terms.
// See https://www.nexedi.com/licensing for rationale and options.
// wcfs_misc.{h,cpp} provide miscel
an
neous utilities for other wcfs_* files.
// wcfs_misc.{h,cpp} provide miscel
la
neous utilities for other wcfs_* files.
#ifndef _NXD_WCFS_MISC_H_
#define _NXD_WCFS_MISC_H_
...
...
@@ -30,7 +30,7 @@ using std::tuple;
using
std
::
make_tuple
;
using
std
::
tie
;
// nil is synon
i
m for nullptr and NULL.
// nil is synon
y
m for nullptr and NULL.
const
nullptr_t
nil
=
nullptr
;
// error mimics error from Go.
...
...
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