FOSSology  4.4.0
Open Source License Compliance by Open Source Software
ununpack-iso.c File Reference

The universal unpacker code to unpack an ISO file system. More...

#include "ununpack.h"
#include "externs.h"
Include dependency graph for ununpack-iso.c:

Go to the source code of this file.

Functions

mode_t GetISOMode (char *Line)
 Given a line in drwxrwxrwx format, convert it to a numeric mode. More...
 
int ExtractISO (char *Source, char *Destination)
 Given an ISO image and a directory, extract the image to the directory. More...
 

Detailed Description

The universal unpacker code to unpack an ISO file system.

Definition in file ununpack-iso.c.

Function Documentation

◆ ExtractISO()

int ExtractISO ( char *  Source,
char *  Destination 
)

Given an ISO image and a directory, extract the image to the directory.

ISO images have magic type "application/x-iso". This can unpack any known ISO9660 format including: ISO9660, Rock Ridge, Joliet, and El Torrito.

Uses the following external commands: isoinfo grep

Note
This spawns multiple processes.
Parameters
Source
Destination
Returns
0 on success, non-zero on failure.

Definition at line 68 of file ununpack-iso.c.

◆ GetISOMode()

mode_t GetISOMode ( char *  Line)

Given a line in drwxrwxrwx format, convert it to a numeric mode.

Note
ISO are always read-only! (They may be saved with write bits, but they can never be written to!)
Parameters
Line
Returns
UGO mode bits.

Definition at line 24 of file ununpack-iso.c.