blob: 17b16d9be8679d6e2ffe1a1cb10f576848747cd1 [file] [edit]
// Copyright (c) 2025, 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.
import 'dart:io';
import 'package:errno/errno.dart';
int get eaccess => Platform.isMacOS ? DarwinErrors.eacces : LinuxErrors.eacces;
int get eexist => Platform.isMacOS ? DarwinErrors.eexist : LinuxErrors.eexist;
int get eisdir => Platform.isMacOS ? DarwinErrors.eisdir : LinuxErrors.eisdir;
int get enametoolong =>
Platform.isMacOS ? DarwinErrors.enametoolong : LinuxErrors.enametoolong;
int get enoent => Platform.isMacOS ? DarwinErrors.enoent : LinuxErrors.enoent;
int get enotdir =>
Platform.isMacOS ? DarwinErrors.enotdir : LinuxErrors.enotdir;
int get enotempty =>
Platform.isMacOS ? DarwinErrors.enotempty : LinuxErrors.enotempty;
int get eperm => Platform.isMacOS ? DarwinErrors.eperm : LinuxErrors.eperm;