• Navigation überspringen
  • Zur Navigation
  • Zum Seitenende
Organisationsmenü öffnen Organisationsmenü schließen
Friedrich-Alexander-Universität Lehrstuhl für Informatik 4 (Systemsoftware)
  • FAUZur zentralen FAU Website
  1. Friedrich-Alexander-Universität
  2. Technische Fakultät
  3. Department Informatik
Suche öffnen
  • English
  • Campo
  • StudOn
  • FAUdir
  • Stellenangebote
  • Lageplan
  • Hilfe im Notfall
  1. Friedrich-Alexander-Universität
  2. Technische Fakultät
  3. Department Informatik
Friedrich-Alexander-Universität Lehrstuhl für Informatik 4 (Systemsoftware)
Menu Menu schließen
  • Lehrstuhl
    • Team
    • Aktuelles
    • Kontakt und Anfahrt
    • Leitbild
    • 50-jähriges Jubiläum
    Portal Lehrstuhl
  • Forschung
    • Forschungsbereiche
      • Betriebssysteme
      • Confidential Computing
      • Eingebettete Systemsoftware
      • Verteilte Systeme
    • Projekte
      • AIMBOS
      • BALu
      • BFT2Chain
      • DOSS
      • Mirador
      • NEON
      • PAVE
      • ResPECT
      • Watwa
    • Projektkampagnen
      • maRE
    • Seminar
      • Systemsoftware
    Portal Forschung
  • Publikationen
  • Lehre
    • Sommersemester 2025
      • Applied Software Architecture
      • Ausgewählte Kapitel der Systemsoftware
      • Betriebssystemtechnik
      • Projekt angewandte Systemsoftwaretechnik
      • System-Level Programming
      • Systemnahe Programmierung in C
      • Systemprogrammierung 1
      • Verteilte Systeme
    • Wintersemester 2024/25
      • Betriebssysteme
      • Middleware – Cloud Computing
      • Systemprogrammierung 2
      • Verlässliche Echtzeitsysteme
      • Virtuelle Maschinen
      • Web-basierte Systeme
    Portal Lehre
  • Examensarbeiten
  1. Startseite
  2. Extern

Extern

Bereichsnavigation: Lehre
  • Betriebssystemtechnik
    • Vorlesung
      • Folien
      • Glossar
    • Übung
      • Aufgaben
      • Dokumentation
        • Blog
          • Entwicklungsumgebung
            • Assembler Crashkurs
              • C++ Crashkurs
                • 🔗 Testrechnerverwaltung
                • Kontakt
              • Evaluation

              Dokumentation

              • Tar
              • File
              Public Member Functions | Public Attributes | List of all members
              Tar::File Struct Reference

              File Entry. More...

              #include <utils/tar.h>

              Public Member Functions

              uint64_t getSize ()
               Get file size. More...
               
              bool isUstar ()
               Entry with Ustar extension? More...
               
              bool isValid ()
               Valid checksum? More...
               
              void * getData ()
               Get pointer to file data. More...
               
              File * next ()
               Get a pointer to the next file entry. More...
               

              Public Attributes

              char name [100]
               File name ('\0' terminated string)
               
              char mode [8]
               Permission bits (octal characters)
               
              char uid [8]
               User ID (octal characters)
               
              char gid [8]
               Group ID (octal characters)
               
              char size [12]
               File size (octal characters)
               
              char mtime [12]
               Timestamp of last modification (octal characters)
               
              char checksum [8]
               check sum (octal characters)
               
              Type type
               File type.
               
              char link [100]
               File name with identical content for TYPE_HARD_LINK.
               
              char magic [8]
               Magic header "ustar".
               
              char user [32]
               User.
               
              char group [32]
               Group.
               
              char majordevid [8]
               Major device ID.
               
              char minordevid [8]
               Minor device ID.
               
              char prefix [155]
               File prefix.
               
              char padding [12]
               Padding (unused)
               
              char data []
               File contents with size bytes, 512 bytes aligned.
               

              Detailed Description

              File Entry.

              Contains 512 bytes of meta information as well as the content of the file with a variable size (512 bytes aligned).

              Numbers are encoded as zero-filled octal numbers in ASCII characters.

              Member Function Documentation

              uint64_t Tar::File::getSize ( )

              Get file size.

              Returns
              Size of actual file (without padding)
              bool Tar::File::isUstar ( )

              Entry with Ustar extension?

              Returns
              'true' if entry uses the extension
              bool Tar::File::isValid ( )

              Valid checksum?

              Returns
              'true' if header has a correct checksum
              void * Tar::File::getData ( )

              Get pointer to file data.

              Returns
              Pointer to file data (use getSize() for length)
              Tar::File * Tar::File::next ( )

              Get a pointer to the next file entry.

              Returns
              Pointer to next file entry or 'nullptr' if there is none.

              The documentation for this struct was generated from the following files:
              • utils/tar.h
              • utils/tar.cc
              Friedrich-Alexander-Universität
              Erlangen-Nürnberg

              Schlossplatz 4
              91054 Erlangen
              • Impressum
              • Datenschutz
              • Barrierefreiheit
              • Facebook
              • RSS Feed
              • Xing
              Nach oben