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