52 references to Interop
System.Formats.Tar (52)
_generated\0\LibraryImports.g.cs (17)
7internal static extern partial global::Interop.Error ConvertErrorPlatformToPal(int platformErrno); 15internal static extern partial int ConvertErrorPalToPlatform(global::Interop.Error error); 98internal static unsafe partial int GetPwUidR(uint uid, out global::Interop.Sys.Passwd pwd, byte* buf, int bufLen) 103fixed (global::Interop.Sys.Passwd* __pwd_native = &pwd) 111static extern unsafe int __PInvoke(uint __uid_native, global::Interop.Sys.Passwd* __pwd_native, byte* __buf_native, int __bufLen_native); 120internal static unsafe partial int GetPwNamR(string name, out global::Interop.Sys.Passwd pwd, byte* buf, int bufLen) 132fixed (global::Interop.Sys.Passwd* __pwd_native = &pwd) 148static extern unsafe int __PInvoke(byte* __name_native, global::Interop.Sys.Passwd* __pwd_native, byte* __buf_native, int __bufLen_native); 278internal static partial int FStat(global::System.Runtime.InteropServices.SafeHandle fd, out global::Interop.Sys.FileStatus output) 291fixed (global::Interop.Sys.FileStatus* __output_native = &output) 310static extern unsafe int __PInvoke(nint __fd_native, global::Interop.Sys.FileStatus* __output_native); 319internal static partial int Stat(string path, out global::Interop.Sys.FileStatus output) 332fixed (global::Interop.Sys.FileStatus* __output_native = &output) 351static extern unsafe int __PInvoke(byte* __path_native, global::Interop.Sys.FileStatus* __output_native); 360internal static partial int LStat(string path, out global::Interop.Sys.FileStatus output) 373fixed (global::Interop.Sys.FileStatus* __output_native = &output) 392static extern unsafe int __PInvoke(byte* __path_native, global::Interop.Sys.FileStatus* __output_native);
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (6)
124_error = Interop.Sys.ConvertErrorPlatformToPal(errno); 141get { return _rawErrno == -1 ? (_rawErrno = Interop.Sys.ConvertErrorPalToPlatform(_error)) : _rawErrno; } 146return Interop.Sys.StrError(RawErrno); 220public static Interop.ErrorInfo Info(this Interop.Error error) 222return new Interop.ErrorInfo(error);
src\runtime\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); 183internal static Exception GetIOException(Interop.ErrorInfo errorInfo, string? path = null)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (5)
37const int BufLen = Interop.Sys.Passwd.InitialBufferSize; 64Interop.Sys.Passwd passwd; 65int error = Interop.Sys.GetPwUidR(uid, out passwd, buf, bufLen); 83var errorInfo = new Interop.ErrorInfo(error); 87if (errorInfo.Error == Interop.Error.ERANGE)
System\Formats\Tar\TarEntry.Unix.cs (6)
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);
System\Formats\Tar\TarWriter.Unix.cs (14)
22Interop.Sys.FileStatus status = default; 25Interop.CheckIo(Interop.Sys.LStat(fullPath, out status)); 27int fileType = status.Mode & Interop.Sys.FileTypes.S_IFMT; 32if (_hardLinkMode == TarHardLinkMode.PreserveLink && (fileType == Interop.Sys.FileTypes.S_IFREG) && status.HardLinkCount > 1) 53Interop.Sys.FileTypes.S_IFBLK => TarEntryType.BlockDevice, 54Interop.Sys.FileTypes.S_IFCHR => TarEntryType.CharacterDevice, 55Interop.Sys.FileTypes.S_IFIFO => TarEntryType.Fifo, 56Interop.Sys.FileTypes.S_IFLNK => TarEntryType.SymbolicLink, 57Interop.Sys.FileTypes.S_IFREG => TarHelpers.GetRegularFileEntryTypeForFormat(Format), 58Interop.Sys.FileTypes.S_IFDIR => TarEntryType.Directory, 80Interop.Sys.GetDeviceIdentifiers((ulong)status.RDev, &major, &minor); 101uName = Interop.Sys.GetUserNameFromPasswd(status.Uid); 110if (Interop.Sys.TryGetGroupName(status.Gid, out gName))