dart-sdk/sdk/lib/io/io_service.dart
Brian Quinlan 2ead86ab9d Implement anonymous pipes and the ability to transmit them between processes using Unix Domain Sockets.
Change-Id: I9c9f4ec0e99075a29c6f4d97c503e759134eb094
TESTED=Unit tests
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/257804
Commit-Queue: Brian Quinlan <bquinlan@google.com>
Reviewed-by: Lasse Nielsen <lrn@google.com>
Reviewed-by: Alexander Aprelev <aam@google.com>
2022-09-13 21:16:28 +00:00

56 lines
2.1 KiB
Dart

// Copyright (c) 2013, 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.
part of dart.io;
class _IOService {
// This list must be kept in sync with the list in runtime/bin/io_service.h
static const int fileExists = 0;
static const int fileCreate = 1;
static const int fileDelete = 2;
static const int fileRename = 3;
static const int fileCopy = 4;
static const int fileOpen = 5;
static const int fileResolveSymbolicLinks = 6;
static const int fileClose = 7;
static const int filePosition = 8;
static const int fileSetPosition = 9;
static const int fileTruncate = 10;
static const int fileLength = 11;
static const int fileLengthFromPath = 12;
static const int fileLastAccessed = 13;
static const int fileSetLastAccessed = 14;
static const int fileLastModified = 15;
static const int fileSetLastModified = 16;
static const int fileFlush = 17;
static const int fileReadByte = 18;
static const int fileWriteByte = 19;
static const int fileRead = 20;
static const int fileReadInto = 21;
static const int fileWriteFrom = 22;
static const int fileCreateLink = 23;
static const int fileDeleteLink = 24;
static const int fileRenameLink = 25;
static const int fileLinkTarget = 26;
static const int fileType = 27;
static const int fileIdentical = 28;
static const int fileStat = 29;
static const int fileLock = 30;
static const int fileCreatePipe = 31;
static const int socketLookup = 32;
static const int socketListInterfaces = 33;
static const int socketReverseLookup = 34;
static const int directoryCreate = 35;
static const int directoryDelete = 36;
static const int directoryExists = 37;
static const int directoryCreateTemp = 38;
static const int directoryListStart = 39;
static const int directoryListNext = 40;
static const int directoryListStop = 41;
static const int directoryRename = 42;
static const int sslProcessFilter = 43;
external static Future<Object?> _dispatch(int request, List data);
}