@@ -53,7 +53,7 @@ bool async_fs_operation_result_error (std::shared_ptr<manapi::ev::fs> &w, typena
5353}
5454
5555template <typename T>
56- using async_fs_operation_event_cb = std::move_only_function<void (std::shared_ptr<manapi::ev::fs>, typename manapi::async::promise_sync<T>::resolve_t &, manapi::async::cancellation_action &cancellation)>;
56+ using async_fs_operation_event_cb = std::move_only_function<void (std::shared_ptr<manapi::ev::fs>, typename manapi::async::promise_sync<T>::resolve_t &, manapi::async::cancellation_action &cancellation)>;
5757
5858template <typename T>
5959void async_fs_operation_event_handler (std::shared_ptr<manapi::ev::fs> w, typename manapi::async::promise_sync<T>::resolve_t resolve, manapi::async::cancellation_action cancellation, async_fs_operation_event_cb<T> &event_cb) {
@@ -85,7 +85,7 @@ struct async_fs_operation_deleter {
8585template <typename T>
8686manapi::future<T> async_fs_operation (std::move_only_function<bool (std::shared_ptr<manapi::ev::fs> w)> start_cb,
8787 async_fs_operation_event_cb<T> event_cb, manapi::async::cancellation_action cancellation) {
88- using promise_sync = manapi::async::promise_sync<T>;
88+ typedef manapi::async::promise_sync<T> promise_sync ;
8989 async_fs_operation_deleter<T> t {};
9090
9191 t.c = &cancellation;
@@ -129,7 +129,7 @@ manapi::future<T> async_fs_operation (std::move_only_function<bool(std::shared_p
129129}
130130
131131manapi::future<manapi::sys_error::status> async_fs_simple_operation (std::move_only_function<bool (std::shared_ptr<manapi::ev::fs> w)> start_cb, manapi::async::cancellation_action cancellation) {
132- using promise_sync = manapi::async::promise_sync<manapi::sys_error::status>;
132+ typedef manapi::async::promise_sync<manapi::sys_error::status> promise_sync ;
133133
134134 co_return co_await async_fs_operation<manapi::sys_error::status>(std::move (start_cb),
135135 [](std::shared_ptr<manapi::ev::fs> w,
@@ -200,7 +200,7 @@ manapi::future<manapi::sys_error::status_or<std::chrono::system_clock::time_poin
200200}
201201
202202manapi::future<manapi::sys_error::status> manapi::filesystem::async_mkdir (std::string path, int mode, bool recursive, manapi::async::cancellation_action cancellation) {
203- using promise_sync = manapi::async::promise_sync<sys_error::status>;
203+ typedef manapi::async::promise_sync<sys_error::status> promise_sync ;
204204
205205 if (recursive) {
206206 auto parts = manapi::string::split (path, path::delimiter);
@@ -253,7 +253,7 @@ manapi::future<manapi::sys_error::status> manapi::filesystem::async_mkdir(std::s
253253}
254254
255255manapi::future<manapi::sys_error::status_or<manapi::ev::file>> manapi::filesystem::async_open (std::string path, int flags, int mode, manapi::async::cancellation_action cancellation) {
256- using promise_sync = manapi::async::promise_sync<manapi::sys_error::status_or<ev::file>>;
256+ typedef manapi::async::promise_sync<manapi::sys_error::status_or<ev::file>> promise_sync ;
257257
258258 auto fileno = co_await async_fs_operation<manapi::sys_error::status_or<ev::file>>([path = std::move (path), flags, mode] (std::shared_ptr<ev::fs> w)
259259 -> bool {
@@ -269,7 +269,7 @@ manapi::future<manapi::sys_error::status_or<manapi::ev::file>> manapi::filesyste
269269}
270270
271271manapi::future<manapi::sys_error::status> manapi::filesystem::async_close (ev::file file, async::cancellation_action cancellation) {
272- using promise_sync = manapi::async::promise_sync<manapi::sys_error::status>;
272+ typedef manapi::async::promise_sync<manapi::sys_error::status> promise_sync ;
273273
274274 manapi_log_trace (manapi::debug::LOG_TRACE_LOW, " fs:fd %d close" , file);
275275
@@ -422,7 +422,7 @@ manapi::future<manapi::sys_error::status_or<std::string>> manapi::filesystem::as
422422}
423423
424424manapi::future<manapi::sys_error::status_or<ssize_t >> manapi::filesystem::async_write (ev::file file, ev::buff_t *buff, uint32_t nbuff, int64_t offset, async::cancellation_action cancellation) {
425- using promise_sync = manapi::async::promise_sync<manapi::sys_error::status_or<ssize_t >>;
425+ typedef manapi::async::promise_sync<manapi::sys_error::status_or<ssize_t >> promise_sync ;
426426
427427 if (!nbuff)
428428 co_return 0 ;
@@ -559,7 +559,7 @@ manapi::future<manapi::sys_error::status_or<ssize_t>> manapi::filesystem::async_
559559}
560560
561561manapi::future<manapi::sys_error::status_or<ssize_t >> manapi::filesystem::async_read (ev::file file, ev::buff_t *buff, uint32_t nbuff, int64_t offset, async::cancellation_action cancellation) {
562- using promise_sync = manapi::async::promise_sync<manapi::sys_error::status_or<ssize_t >>;
562+ typedef manapi::async::promise_sync<manapi::sys_error::status_or<ssize_t >> promise_sync ;
563563
564564 if (!nbuff)
565565 co_return 0 ;
@@ -727,7 +727,7 @@ manapi::future<manapi::sys_error::status_or<ssize_t>> manapi::filesystem::async_
727727}
728728
729729manapi::future<manapi::sys_error::status> manapi::filesystem::async_stat (std::string path, std::move_only_function<void (ev::stat_t *data)> callback, async::cancellation_action cancellation) {
730- using promise_sync = manapi::async::promise_sync<manapi::sys_error::status>;
730+ typedef manapi::async::promise_sync<manapi::sys_error::status> promise_sync ;
731731
732732 co_return co_await async_fs_operation<manapi::sys_error::status>([path = std::move (path)] (std::shared_ptr<ev::fs> w)
733733 -> bool {
@@ -749,7 +749,7 @@ manapi::future<manapi::sys_error::status> manapi::filesystem::async_stat(std::st
749749}
750750
751751manapi::future<manapi::sys_error::status> manapi::filesystem::async_fstat (ev::file file, std::move_only_function<void (ev::stat_t *data)> callback, async::cancellation_action cancellation) {
752- using promise_sync = manapi::async::promise_sync<manapi::sys_error::status>;
752+ typedef manapi::async::promise_sync<manapi::sys_error::status> promise_sync ;
753753
754754 co_return co_await async_fs_operation<manapi::sys_error::status>([file] (std::shared_ptr<ev::fs> w)
755755 -> bool {
@@ -888,7 +888,7 @@ manapi::future<manapi::sys_error::status> manapi::filesystem::async_closedir (ma
888888}
889889
890890manapi::future<manapi::sys_error::status> manapi::filesystem::async_statfs (std::string path, std::move_only_function<void (ev::statfs_t *data)> callback, async::cancellation_action cancellation) {
891- using promise_sync = manapi::async::promise_sync<manapi::sys_error::status>;
891+ typedef manapi::async::promise_sync<manapi::sys_error::status> promise_sync ;
892892
893893 co_return co_await async_fs_operation<manapi::sys_error::status>([path = std::move (path)] (std::shared_ptr<ev::fs> w)
894894 -> bool {
@@ -930,7 +930,7 @@ manapi::future<manapi::sys_error::status> manapi::filesystem::async_fchmod (ev::
930930}
931931
932932manapi::future<manapi::sys_error::status> manapi::filesystem::async_access (std::string path, int mode, async::cancellation_action cancellation) {
933- using promise_sync = manapi::async::promise_sync<manapi::sys_error::status>;
933+ typedef manapi::async::promise_sync<manapi::sys_error::status> promise_sync ;
934934
935935 co_return co_await async_fs_operation<manapi::sys_error::status>([path = std::move (path), mode] (std::shared_ptr<ev::fs> w)
936936 -> bool {
@@ -976,7 +976,7 @@ manapi::future<manapi::sys_error::status> manapi::filesystem::async_fdatasync(ev
976976}
977977
978978manapi::future<manapi::sys_error::status_or<manapi::ev::dir_t *>> manapi::filesystem::async_opendir (std::string path, async::cancellation_action cancellation) {
979- using promise_sync = manapi::async::promise_sync<manapi::sys_error::status_or<manapi::ev::dir_t *>>;
979+ typedef manapi::async::promise_sync<manapi::sys_error::status_or<manapi::ev::dir_t *>> promise_sync ;
980980
981981 co_return co_await async_fs_operation<manapi::sys_error::status_or<manapi::ev::dir_t *>>([path = std::move (path)] (std::shared_ptr<ev::fs> w)
982982 -> bool {
@@ -991,7 +991,7 @@ manapi::future<manapi::sys_error::status_or<manapi::ev::dir_t *>> manapi::filesy
991991}
992992
993993manapi::future<manapi::sys_error::status_or<std::string>> manapi::filesystem::async_readlink (std::string path, async::cancellation_action cancellation) {
994- using promise_sync = manapi::async::promise_sync<sys_error::status_or<std::string>>;
994+ typedef manapi::async::promise_sync<sys_error::status_or<std::string>> promise_sync ;
995995
996996 co_return co_await async_fs_operation<manapi::sys_error::status_or<std::string>>([path = std::move (path)] (std::shared_ptr<ev::fs> w)
997997 -> bool {
@@ -1006,7 +1006,7 @@ manapi::future<manapi::sys_error::status_or<std::string>> manapi::filesystem::as
10061006}
10071007
10081008manapi::future<manapi::sys_error::status_or<std::string>> manapi::filesystem::async_realpath (std::string path, async::cancellation_action cancellation) {
1009- using promise_sync = manapi::async::promise_sync<sys_error::status_or<std::string>>;
1009+ typedef manapi::async::promise_sync<sys_error::status_or<std::string>> promise_sync ;
10101010
10111011 co_return co_await async_fs_operation<manapi::sys_error::status_or<std::string>>([path = std::move (path)] (std::shared_ptr<ev::fs> w)
10121012 -> bool {
@@ -1032,7 +1032,7 @@ manapi::future<manapi::sys_error::status> manapi::filesystem::async_fchown(ev::f
10321032}
10331033
10341034manapi::future<manapi::sys_error::status_or<std::string>> manapi::filesystem::async_mkdtemp (std::string tpl, async::cancellation_action cancellation) {
1035- using promise_sync = manapi::async::promise_sync<manapi::sys_error::status_or<std::string>>;
1035+ typedef manapi::async::promise_sync<manapi::sys_error::status_or<std::string>> promise_sync ;
10361036
10371037 co_return co_await async_fs_operation<manapi::sys_error::status_or<std::string>>([tpl = std::move (tpl)] (std::shared_ptr<ev::fs> w)
10381038 -> bool {
@@ -1048,8 +1048,8 @@ manapi::future<manapi::sys_error::status_or<std::string>> manapi::filesystem::as
10481048}
10491049
10501050manapi::future<manapi::sys_error::status_or<std::pair<std::string, manapi::ev::file>>> manapi::filesystem::async_mkstemp (std::string tpl, async::cancellation_action cancellation) {
1051- using val = sys_error::status_or<std::pair<std::string, manapi::ev::file>>;
1052- using promise_sync = manapi::async::promise_sync<val>;
1051+ typedef sys_error::status_or<std::pair<std::string, manapi::ev::file>> val ;
1052+ typedef manapi::async::promise_sync<val> promise_sync ;
10531053
10541054 co_return co_await async_fs_operation<val>([tpl = std::move (tpl)] (std::shared_ptr<ev::fs> w)
10551055 -> bool {
@@ -1064,7 +1064,7 @@ manapi::future<manapi::sys_error::status_or<std::pair<std::string, manapi::ev::f
10641064}
10651065
10661066manapi::future<manapi::sys_error::status_or<std::size_t >> manapi::filesystem::async_scandir (std::string path, int flags, std::move_only_function<void (ev::dir_t *dir, std::size_t result)> callback, async::cancellation_action cancellation) {
1067- using promise_sync = manapi::async::promise_sync<sys_error::status_or<std::size_t >>;
1067+ typedef manapi::async::promise_sync<sys_error::status_or<std::size_t >> promise_sync ;
10681068
10691069 co_return co_await async_fs_operation<sys_error::status_or<std::size_t >>([path = std::move (path), flags] (std::shared_ptr<ev::fs> w)
10701070 -> bool {
@@ -1082,7 +1082,7 @@ manapi::future<manapi::sys_error::status_or<std::size_t>> manapi::filesystem::as
10821082}
10831083
10841084manapi::future<manapi::sys_error::status_or<std::size_t >> manapi::filesystem::async_readdir (ev::dir_t *dir, std::move_only_function<void (ev::dir_t *, std::size_t )> callback, async::cancellation_action cancellation) {
1085- using promise_sync = manapi::async::promise_sync<sys_error::status_or<std::size_t >>;
1085+ typedef manapi::async::promise_sync<sys_error::status_or<std::size_t >> promise_sync ;
10861086
10871087 co_return co_await async_fs_operation<sys_error::status_or<std::size_t >>([dir] (std::shared_ptr<ev::fs> w)
10881088 -> bool {
0 commit comments