40 references to Sys
System.Formats.Tar (40)
_generated\0\LibraryImports.g.cs (15)
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 (3)
124
_error = Interop.
Sys
.ConvertErrorPlatformToPal(errno);
141
get { return _rawErrno == -1 ? (_rawErrno = Interop.
Sys
.ConvertErrorPalToPlatform(_error)) : _rawErrno; }
146
return Interop.
Sys
.StrError(RawErrno);
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.IOErrors.cs (3)
42
ThrowExceptionForIoErrno(
Sys
.GetLastErrorInfo(), path, isDirError);
53
ThrowExceptionForIoErrno(
Sys
.GetLastErrorInfo(), path: null, isDirError: false);
99
Exception e = Interop.GetExceptionForIoErrno(
Sys
.GetLastErrorInfo(), path, isDirError);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (3)
37
const int BufLen = Interop.
Sys
.Passwd.InitialBufferSize;
64
Interop.
Sys
.Passwd passwd;
65
int error = Interop.
Sys
.GetPwUidR(uid, out passwd, buf, bufLen);
System\Formats\Tar\TarEntry.Unix.cs (3)
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 (13)
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))