mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 07:20:55 +01:00
ircd: Fix std::ios::openmode name.
This commit is contained in:
parent
e1b9d69c21
commit
09529ae311
3 changed files with 6 additions and 6 deletions
|
@ -66,6 +66,6 @@ struct ircd::fs::fd::opts
|
||||||
bool nocreate {false};
|
bool nocreate {false};
|
||||||
|
|
||||||
/// Construct options from an std::ios::open_mode bitmask.
|
/// Construct options from an std::ios::open_mode bitmask.
|
||||||
opts(const std::ios::open_mode &);
|
opts(const std::ios::openmode &);
|
||||||
opts() = default;
|
opts() = default;
|
||||||
};
|
};
|
||||||
|
|
|
@ -3461,8 +3461,8 @@ try
|
||||||
{
|
{
|
||||||
fs::fd::opts ret
|
fs::fd::opts ret
|
||||||
{
|
{
|
||||||
std::ios_base::out |
|
std::ios::out |
|
||||||
(trunc? std::ios::trunc : 0)
|
(trunc? std::ios::trunc : std::ios::openmode(0))
|
||||||
};
|
};
|
||||||
|
|
||||||
ret.direct = this->env_opts.use_direct_writes;
|
ret.direct = this->env_opts.use_direct_writes;
|
||||||
|
|
|
@ -553,7 +553,7 @@ namespace ircd::fs
|
||||||
{
|
{
|
||||||
thread_local char path_buf[PATH_MAX];
|
thread_local char path_buf[PATH_MAX];
|
||||||
static const char *path_str(const string_view &);
|
static const char *path_str(const string_view &);
|
||||||
static uint posix_flags(const std::ios::open_mode &mode);
|
static uint posix_flags(const std::ios::openmode &mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_SYS_STAT_H
|
#ifdef HAVE_SYS_STAT_H
|
||||||
|
@ -612,7 +612,7 @@ ircd::fs::size(const fd &fd)
|
||||||
}
|
}
|
||||||
|
|
||||||
uint
|
uint
|
||||||
ircd::fs::posix_flags(const std::ios::open_mode &mode)
|
ircd::fs::posix_flags(const std::ios::openmode &mode)
|
||||||
{
|
{
|
||||||
static const auto rdwr
|
static const auto rdwr
|
||||||
{
|
{
|
||||||
|
@ -644,7 +644,7 @@ ircd::fs::path_str(const string_view &s)
|
||||||
// fd::opts
|
// fd::opts
|
||||||
//
|
//
|
||||||
|
|
||||||
ircd::fs::fd::opts::opts(const std::ios::open_mode &mode)
|
ircd::fs::fd::opts::opts(const std::ios::openmode &mode)
|
||||||
:flags
|
:flags
|
||||||
{
|
{
|
||||||
posix_flags(mode)
|
posix_flags(mode)
|
||||||
|
|
Loading…
Reference in a new issue