Commit 9815d101 authored by Max Kellermann's avatar Max Kellermann

system/FileDescriptor: move to io/

parent 97f7270a
......@@ -331,6 +331,7 @@ endif
subdir('src/util')
subdir('src/time')
subdir('src/io')
subdir('src/system')
subdir('src/thread')
subdir('src/net')
......
......@@ -19,7 +19,7 @@
#include "InotifySource.hxx"
#include "InotifyDomain.hxx"
#include "system/FileDescriptor.hxx"
#include "io/FileDescriptor.hxx"
#include "system/FatalError.hxx"
#include "system/Error.hxx"
#include "Log.hxx"
......
......@@ -21,7 +21,7 @@
#define MPD_FS_FILESYSTEM_HXX
#include "Path.hxx"
#include "system/UniqueFileDescriptor.hxx"
#include "io/UniqueFileDescriptor.hxx"
#ifdef _WIN32
#include <fileapi.h>
......
......@@ -35,7 +35,7 @@
#include "util/Compiler.h"
#ifndef _WIN32
#include "system/FileDescriptor.hxx"
#include "io/FileDescriptor.hxx"
#endif
#include <cassert>
......
......@@ -30,7 +30,7 @@
#include "FileReader.hxx"
#include "fs/FileInfo.hxx"
#include "system/Error.hxx"
#include "system/Open.hxx"
#include "io/Open.hxx"
#include <cassert>
......
......@@ -37,7 +37,7 @@
#ifdef _WIN32
#include <windows.h>
#else
#include "system/UniqueFileDescriptor.hxx"
#include "io/UniqueFileDescriptor.hxx"
#endif
class Path;
......
......@@ -48,6 +48,7 @@ fs = static_library(
fs_dep = declare_dependency(
link_with: fs,
dependencies: [
io_dep,
system_dep,
icu_dep,
shlwapi_dep,
......
......@@ -22,7 +22,7 @@
#include "fs/Path.hxx"
#include "fs/FileInfo.hxx"
#include "fs/io/FileReader.hxx"
#include "system/FileDescriptor.hxx"
#include "io/FileDescriptor.hxx"
#include "util/RuntimeError.hxx"
#include <sys/stat.h>
......
......@@ -28,8 +28,8 @@
*/
#include "Open.hxx"
#include "Error.hxx"
#include "UniqueFileDescriptor.hxx"
#include "system/Error.hxx"
#include <fcntl.h>
......
io = static_library(
'io',
'FileDescriptor.cxx',
'Open.cxx',
include_directories: inc,
)
io_dep = declare_dependency(
link_with: io,
)
......@@ -19,7 +19,7 @@
#include "mixer/MixerInternal.hxx"
#include "config/Block.hxx"
#include "system/FileDescriptor.hxx"
#include "io/FileDescriptor.hxx"
#include "system/Error.hxx"
#include "util/ASCII.hxx"
#include "util/Domain.hxx"
......
......@@ -31,7 +31,7 @@
#define SOCKET_DESCRIPTOR_HXX
#include "Features.hxx"
#include "system/FileDescriptor.hxx"
#include "io/FileDescriptor.hxx"
#include <type_traits>
......
......@@ -20,7 +20,7 @@
#include "OssOutputPlugin.hxx"
#include "../OutputAPI.hxx"
#include "mixer/MixerList.hxx"
#include "system/UniqueFileDescriptor.hxx"
#include "io/UniqueFileDescriptor.hxx"
#include "system/Error.hxx"
#include "util/ConstBuffer.hxx"
#include "util/Domain.hxx"
......
......@@ -19,7 +19,7 @@
#include "SolarisOutputPlugin.hxx"
#include "../OutputAPI.hxx"
#include "system/FileDescriptor.hxx"
#include "io/FileDescriptor.hxx"
#include "system/Error.hxx"
#include <cerrno>
......
/*
* Copyright 2013-2019 Max Kellermann <max.kellermann@gmail.com>
* Copyright 2013-2020 Max Kellermann <max.kellermann@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
......@@ -30,7 +30,7 @@
#ifndef EPOLL_FD_HXX
#define EPOLL_FD_HXX
#include "UniqueFileDescriptor.hxx"
#include "io/UniqueFileDescriptor.hxx"
#include <cstdint>
......
......@@ -30,7 +30,7 @@
#ifndef EVENT_FD_HXX
#define EVENT_FD_HXX
#include "UniqueFileDescriptor.hxx"
#include "io/UniqueFileDescriptor.hxx"
/**
* A class that wraps eventfd().
......
......@@ -18,7 +18,7 @@
*/
#include "EventPipe.hxx"
#include "FileDescriptor.hxx"
#include "io/FileDescriptor.hxx"
#include "system/Error.hxx"
#include "util/Compiler.h"
......
......@@ -30,7 +30,7 @@
#ifndef SIGNAL_FD_HXX
#define SIGNAL_FD_HXX
#include "UniqueFileDescriptor.hxx"
#include "io/UniqueFileDescriptor.hxx"
#include <csignal>
......
system_sources = [
'FatalError.cxx',
'FileDescriptor.cxx',
'Open.cxx',
'EventPipe.cxx',
'Clock.cxx',
]
......@@ -29,6 +27,7 @@ endif
system_dep = declare_dependency(
link_with: system,
dependencies: [
io_dep,
winsock_dep,
],
)
......@@ -28,7 +28,7 @@
#include "pcm/Volume.hxx"
#include "mixer/MixerControl.hxx"
#include "system/Error.hxx"
#include "system/FileDescriptor.hxx"
#include "io/FileDescriptor.hxx"
#include "util/ConstBuffer.hxx"
#include "util/StringBuffer.hxx"
#include "util/RuntimeError.hxx"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment