Files
sdk/runtime/bin/file_system_watcher_fuchsia.cc
Slava Egorov f434804f6b [io] Simplify Mac OS X FileSystemWatcher
Use a single dispach queue instead of manually managed threads with run
loops.

TEST=ci

Change-Id: I6a6a696489ebd41305027b5cef7fccb73b1f6731
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/452140
Reviewed-by: Alexander Aprelev <aam@google.com>
2025-10-01 11:28:05 -07:00

52 lines
1.2 KiB
C++

// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "platform/globals.h"
#if defined(DART_HOST_OS_FUCHSIA)
#include "bin/file_system_watcher.h"
#include <errno.h>
namespace dart {
namespace bin {
Dart_Handle FileSystemWatcher::ReadEvents(intptr_t id, intptr_t path_id) {
errno = ENOSYS;
return DartUtils::NewDartOSError();
}
intptr_t FileSystemWatcher::GetSocketId(intptr_t id, intptr_t path_id) {
errno = ENOSYS;
return -1;
}
bool FileSystemWatcher::IsSupported() {
return false;
}
void FileSystemWatcher::UnwatchPath(intptr_t id, intptr_t path_id) {}
void FileSystemWatcher::InitOnce() {}
void FileSystemWatcher::Cleanup() {}
intptr_t FileSystemWatcher::Init() {
return 0;
}
intptr_t FileSystemWatcher::WatchPath(intptr_t id,
Namespace* namespc,
const char* path,
int events,
bool recursive) {
errno = ENOSYS;
return -1;
}
} // namespace bin
} // namespace dart
#endif // defined(DART_HOST_OS_FUCHSIA)