36 references to Interop
System.Formats.Tar (36)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (6)
123
_error =
Interop
.Sys.ConvertErrorPlatformToPal(errno);
140
get { return _rawErrno == -1 ? (_rawErrno =
Interop
.Sys.ConvertErrorPalToPlatform(_error)) : _rawErrno; }
145
return
Interop
.Sys.StrError(RawErrno);
219
public static
Interop
.ErrorInfo Info(this
Interop
.Error error)
221
return new
Interop
.ErrorInfo(error);
src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (4)
16
throw
Interop
.GetExceptionForIoErrno(errorInfo, path, isDirError);
21
if (error !=
Interop
.Error.SUCCESS)
99
Exception e =
Interop
.GetExceptionForIoErrno(Sys.GetLastErrorInfo(), path, isDirError);
179
internal static Exception GetIOException(
Interop
.ErrorInfo errorInfo, string? path = null)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (5)
36
const int BufLen =
Interop
.Sys.Passwd.InitialBufferSize;
63
Interop
.Sys.Passwd passwd;
64
int error =
Interop
.Sys.GetPwUidR(uid, out passwd, buf, bufLen);
82
var errorInfo = new
Interop
.ErrorInfo(error);
86
if (errorInfo.Error ==
Interop
.Error.ERANGE)
System\Formats\Tar\TarEntry.Unix.cs (8)
17
Interop
.CheckIo(
Interop
.Sys.CreateBlockDevice(destinationFileName, (uint)Mode, (uint)_header._devMajor, (uint)_header._devMinor), destinationFileName);
24
Interop
.CheckIo(
Interop
.Sys.CreateCharacterDevice(destinationFileName, (uint)Mode, (uint)_header._devMajor, (uint)_header._devMinor), destinationFileName);
31
Interop
.CheckIo(
Interop
.Sys.MkFifo(destinationFileName, (uint)Mode), destinationFileName);
40
Interop
.CheckIo(
Interop
.Sys.Link(targetFilePath, hardLinkFilePath), hardLinkFilePath);
System\Formats\Tar\TarWriter.Unix.cs (13)
23
Interop
.Sys.FileStatus status = default;
26
Interop
.CheckIo(
Interop
.Sys.LStat(fullPath, out status));
28
TarEntryType entryType = (status.Mode & (uint)
Interop
.Sys.FileTypes.S_IFMT) switch
32
Interop
.Sys.FileTypes.S_IFBLK => TarEntryType.BlockDevice,
33
Interop
.Sys.FileTypes.S_IFCHR => TarEntryType.CharacterDevice,
34
Interop
.Sys.FileTypes.S_IFIFO => TarEntryType.Fifo,
35
Interop
.Sys.FileTypes.S_IFLNK => TarEntryType.SymbolicLink,
36
Interop
.Sys.FileTypes.S_IFREG => Format is TarEntryFormat.V7 ? TarEntryType.V7RegularFile : TarEntryType.RegularFile,
37
Interop
.Sys.FileTypes.S_IFDIR => TarEntryType.Directory,
58
Interop
.Sys.GetDeviceIdentifiers((ulong)status.RDev, &major, &minor);
76
uName =
Interop
.Sys.GetUserNameFromPasswd(status.Uid);
85
if (
Interop
.Sys.TryGetGroupName(status.Gid, out gName))