projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
format-cpp: run clang-format in parallel
[lttng-tools.git]
/
src
/
common
/
file-descriptor.hpp
diff --git
a/src/common/file-descriptor.hpp
b/src/common/file-descriptor.hpp
index 164842f86ba8184d2cec46715a43be031ba8e606..b467e2e382d5bc293380ed880b779a2b02bc591b 100644
(file)
--- a/
src/common/file-descriptor.hpp
+++ b/
src/common/file-descriptor.hpp
@@
-15,7
+15,7
@@
namespace lttng {
/* RAII wrapper around a UNIX file descriptor. */
class file_descriptor {
public:
/* RAII wrapper around a UNIX file descriptor. */
class file_descriptor {
public:
- file_descriptor() noexcept;
+ file_descriptor() noexcept
= default
;
explicit file_descriptor(int raw_fd) noexcept;
file_descriptor(const file_descriptor&) = delete;
explicit file_descriptor(int raw_fd) noexcept;
file_descriptor(const file_descriptor&) = delete;
@@
-42,8
+42,9
@@
public:
*/
void write(const void *buffer, std::size_t size);
*/
void write(const void *buffer, std::size_t size);
+ int fd() const noexcept;
+
protected:
protected:
- int _fd() const noexcept;
void _cleanup() noexcept;
private:
void _cleanup() noexcept;
private:
This page took
0.023242 seconds
and
4
git commands to generate.