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