53 references to Gnu
System.Formats.Tar (53)
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)
144
TarEntryFormat.
Gnu
=> GnuMagic,
151
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
)
411
TarEntryType.TapeVolume => TarEntryFormat.
Gnu
,
444
_format = TarEntryFormat.
Gnu
;
491
case TarEntryFormat.
Gnu
:
System\Formats\Tar\TarHeader.Write.cs (18)
35
Debug.Assert(format is > TarEntryFormat.Unknown and <= TarEntryFormat.
Gnu
);
51
Debug.Assert(format is > TarEntryFormat.Unknown and <= TarEntryFormat.
Gnu
);
79
TarEntryFormat.
Gnu
=> FieldLocations.GnuData,
131
TarEntryFormat.
Gnu
=> FieldLocations.GnuData,
369
longLinkHeader.WriteWithSeekableDataStream(TarEntryFormat.
Gnu
, archiveStream, buffer);
378
longPathHeader.WriteWithSeekableDataStream(TarEntryFormat.
Gnu
, archiveStream, buffer);
385
WriteWithUnseekableDataStream(TarEntryFormat.
Gnu
, archiveStream, buffer, shouldAdvanceToEnd: true);
389
WriteWithSeekableDataStream(TarEntryFormat.
Gnu
, archiveStream, buffer);
405
await longLinkHeader.WriteWithSeekableDataStreamAsync(TarEntryFormat.
Gnu
, archiveStream, buffer, cancellationToken).ConfigureAwait(false);
414
await longPathHeader.WriteWithSeekableDataStreamAsync(TarEntryFormat.
Gnu
, archiveStream, buffer, cancellationToken).ConfigureAwait(false);
421
await WriteWithUnseekableDataStreamAsync(TarEntryFormat.
Gnu
, archiveStream, buffer, shouldAdvanceToEnd: true, cancellationToken).ConfigureAwait(false);
425
await WriteWithSeekableDataStreamAsync(TarEntryFormat.
Gnu
, archiveStream, buffer, cancellationToken).ConfigureAwait(false);
434
return new(TarEntryFormat.
Gnu
)
450
tmpChecksum += WriteCommonFields(buffer, TarHelpers.GetCorrectTypeFlagForFormat(TarEntryFormat.
Gnu
, _typeFlag));
514
case TarEntryFormat.
Gnu
:
649
if (_format is not TarEntryFormat.Pax and not TarEntryFormat.
Gnu
)
1074
else if (_format == TarEntryFormat.
Gnu
)
1100
else if (_format == TarEntryFormat.
Gnu
)
System\Formats\Tar\TarHelpers.cs (1)
379
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),