25 references to Sys
System.Formats.Tar (25)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (3)
123
_error = Interop.
Sys
.ConvertErrorPlatformToPal(errno);
140
get { return _rawErrno == -1 ? (_rawErrno = Interop.
Sys
.ConvertErrorPalToPlatform(_error)) : _rawErrno; }
145
return Interop.
Sys
.StrError(RawErrno);
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\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (3)
36
const int BufLen = Interop.
Sys
.Passwd.InitialBufferSize;
63
Interop.
Sys
.Passwd passwd;
64
int error = Interop.
Sys
.GetPwUidR(uid, out passwd, buf, bufLen);
System\Formats\Tar\TarEntry.Unix.cs (4)
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 (12)
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))