51 references to Gnu
System.Formats.Tar (51)
System\Formats\Tar\GnuTarEntry.cs (4)
9
/// <remarks>Even though the <see cref="TarEntryFormat.
Gnu
"/> format is not POSIX compatible, it implements and supports the Unix-specific fields that were defined in the POSIX IEEE P1003.1 standard from 1988: <c>devmajor</c>, <c>devminor</c>, <c>gname</c> and <c>uname</c>.</remarks>
14
: base(header, readerOfOrigin, TarEntryFormat.
Gnu
)
34
: base(entryType, entryName, TarEntryFormat.
Gnu
, isGea: false)
47
: base(other, TarEntryFormat.
Gnu
)
System\Formats\Tar\PosixTarEntry.cs (2)
9
/// Abstract class that represents a tar entry from an archive of a format that is based on the POSIX IEEE P1003.1 standard from 1988. This includes the formats <see cref="TarEntryFormat.Ustar"/> (represented by the <see cref="UstarTarEntry"/> class), <see cref="TarEntryFormat.Pax"/> (represented by the <see cref="PaxTarEntry"/> class) and <see cref="TarEntryFormat.
Gnu
"/> (represented by the <see cref="GnuTarEntry"/> class).
12
/// Even though the <see cref="TarEntryFormat.
Gnu
"/> format is not POSIX compatible, it implements and supports the Unix-specific fields that were defined in that POSIX standard.</remarks>
System\Formats\Tar\TarEntry.cs (1)
15
/// <remarks>All the properties exposed by this class are supported by the <see cref="TarEntryFormat.V7"/>, <see cref="TarEntryFormat.Ustar"/>, <see cref="TarEntryFormat.Pax"/> and <see cref="TarEntryFormat.
Gnu
"/> formats.</remarks>
System\Formats\Tar\TarEntryType.cs (7)
14
/// <para>This entry type is specific to the <see cref="TarEntryFormat.Ustar"/>, <see cref="TarEntryFormat.Pax"/> and <see cref="TarEntryFormat.
Gnu
"/> formats.</para>
46
/// <para>This entry type is specific to the <see cref="TarEntryFormat.
Gnu
"/> format, and is treated as a <see cref="RegularFile"/> entry type.</para>
62
/// <para>This entry type is specific to the <see cref="TarEntryFormat.
Gnu
"/> format, and is treated as a <see cref="Directory"/> entry type that contains a data section.</para>
77
/// <para>This entry type is specific to the <see cref="TarEntryFormat.
Gnu
"/> format and is not supported for writing.</para>
87
/// <para>This entry type is specific to the <see cref="TarEntryFormat.
Gnu
"/> format. It is considered unsafe and is ignored by other tools.</para>
92
/// <para>This entry type is specific to the <see cref="TarEntryFormat.
Gnu
"/> format and is not supported for writing.</para>
97
/// <para>This entry type is specific to the <see cref="TarEntryFormat.
Gnu
"/> format and is not supported for writing.</para>
System\Formats\Tar\TarHeader.cs (2)
142
TarEntryFormat.
Gnu
=> GnuMagic,
149
TarEntryFormat.
Gnu
=> GnuVersion,
System\Formats\Tar\TarHeader.Read.cs (5)
78
Debug.Assert(header._format is TarEntryFormat.Ustar or TarEntryFormat.Pax or TarEntryFormat.
Gnu
);
83
else if (header._format == TarEntryFormat.
Gnu
)
410
TarEntryType.TapeVolume => TarEntryFormat.
Gnu
,
443
_format = TarEntryFormat.
Gnu
;
490
case TarEntryFormat.
Gnu
:
System\Formats\Tar\TarHeader.Write.cs (16)
31
Debug.Assert(format is > TarEntryFormat.Unknown and <= TarEntryFormat.
Gnu
);
47
Debug.Assert(format is > TarEntryFormat.Unknown and <= TarEntryFormat.
Gnu
);
75
TarEntryFormat.
Gnu
=> FieldLocations.GnuData,
124
TarEntryFormat.
Gnu
=> FieldLocations.GnuData,
359
longLinkHeader.WriteWithSeekableDataStream(TarEntryFormat.
Gnu
, archiveStream, buffer);
368
longPathHeader.WriteWithSeekableDataStream(TarEntryFormat.
Gnu
, archiveStream, buffer);
375
WriteWithUnseekableDataStream(TarEntryFormat.
Gnu
, archiveStream, buffer, shouldAdvanceToEnd: true);
379
WriteWithSeekableDataStream(TarEntryFormat.
Gnu
, archiveStream, buffer);
395
await longLinkHeader.WriteWithSeekableDataStreamAsync(TarEntryFormat.
Gnu
, archiveStream, buffer, cancellationToken).ConfigureAwait(false);
404
await longPathHeader.WriteWithSeekableDataStreamAsync(TarEntryFormat.
Gnu
, archiveStream, buffer, cancellationToken).ConfigureAwait(false);
411
await WriteWithUnseekableDataStreamAsync(TarEntryFormat.
Gnu
, archiveStream, buffer, shouldAdvanceToEnd: true, cancellationToken).ConfigureAwait(false);
415
await WriteWithSeekableDataStreamAsync(TarEntryFormat.
Gnu
, archiveStream, buffer, cancellationToken).ConfigureAwait(false);
424
return new(TarEntryFormat.
Gnu
)
440
tmpChecksum += WriteCommonFields(buffer, TarHelpers.GetCorrectTypeFlagForFormat(TarEntryFormat.
Gnu
, _typeFlag));
504
case TarEntryFormat.
Gnu
:
652
if (_format is not TarEntryFormat.Pax and not TarEntryFormat.
Gnu
)
System\Formats\Tar\TarHelpers.cs (1)
357
case TarEntryFormat.
Gnu
:
System\Formats\Tar\TarReader.cs (7)
140
TarEntryFormat.
Gnu
=> new GnuTarEntry(header, this),
293
TarEntryFormat.
Gnu
=> new GnuTarEntry(header, this),
468
finalHeader = new(TarEntryFormat.
Gnu
);
470
TarHeader? secondHeader = TarHeader.TryGetNextHeader(_archiveStream, copyData, TarEntryFormat.
Gnu
, processDataBlock: true);
488
TarHeader? thirdHeader = TarHeader.TryGetNextHeader(_archiveStream, copyData, TarEntryFormat.
Gnu
, processDataBlock: true);
547
TarHeader? secondHeader = await TarHeader.TryGetNextHeaderAsync(_archiveStream, copyData, TarEntryFormat.
Gnu
, processDataBlock: true, cancellationToken).ConfigureAwait(false);
566
TarHeader? thirdHeader = await TarHeader.TryGetNextHeaderAsync(_archiveStream, copyData, TarEntryFormat.
Gnu
, processDataBlock: true, cancellationToken).ConfigureAwait(false);
System\Formats\Tar\TarWriter.cs (5)
68
if (format is not TarEntryFormat.V7 and not TarEntryFormat.Ustar and not TarEntryFormat.Pax and not TarEntryFormat.
Gnu
)
203
/// <para><see cref="TarEntryFormat.Ustar"/>, <see cref="TarEntryFormat.Pax"/> and <see cref="TarEntryFormat.
Gnu
"/></para>
247
/// <para><see cref="TarEntryFormat.Ustar"/>, <see cref="TarEntryFormat.Pax"/> and <see cref="TarEntryFormat.
Gnu
"/></para>
305
case TarEntryFormat.
Gnu
:
332
TarEntryFormat.
Gnu
=> entry._header.WriteAsGnuAsync(_archiveStream, buffer, cancellationToken),
System\Formats\Tar\TarWriter.Unix.cs (1)
48
TarEntryFormat.
Gnu
=> new GnuTarEntry(entryType, entryName),