cd9660.c (289601) | cd9660.c (289677) |
---|---|
1/* $NetBSD: cd9660.c,v 1.31 2011/08/06 23:25:19 christos Exp $ */ 2 3/* 4 * Copyright (c) 2005 Daniel Watt, Walter Deignan, Ryan Gabrys, Alan 5 * Perez-Rathke and Ram Vedam. All rights reserved. 6 * 7 * This code was written by Daniel Watt, Walter Deignan, Ryan Gabrys, 8 * Alan Perez-Rathke and Ram Vedam. --- 82 unchanged lines hidden (view full) --- 91 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 92 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 93 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 94 * SUCH DAMAGE. 95 * 96 */ 97 98#include <sys/cdefs.h> | 1/* $NetBSD: cd9660.c,v 1.31 2011/08/06 23:25:19 christos Exp $ */ 2 3/* 4 * Copyright (c) 2005 Daniel Watt, Walter Deignan, Ryan Gabrys, Alan 5 * Perez-Rathke and Ram Vedam. All rights reserved. 6 * 7 * This code was written by Daniel Watt, Walter Deignan, Ryan Gabrys, 8 * Alan Perez-Rathke and Ram Vedam. --- 82 unchanged lines hidden (view full) --- 91 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 92 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 93 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 94 * SUCH DAMAGE. 95 * 96 */ 97 98#include <sys/cdefs.h> |
99__FBSDID("$FreeBSD: head/usr.sbin/makefs/cd9660.c 289601 2015-10-19 18:45:14Z ngie $"); | 99__FBSDID("$FreeBSD: head/usr.sbin/makefs/cd9660.c 289677 2015-10-21 05:37:09Z eadler $"); |
100 101#include <string.h> 102#include <ctype.h> 103#include <sys/param.h> 104#include <sys/queue.h> 105 106#include "makefs.h" 107#include "cd9660.h" --- 50 unchanged lines hidden (view full) --- 158 int); 159static cd9660node *cd9660_create_file(const char *, cd9660node *, cd9660node *); 160static cd9660node *cd9660_create_directory(const char *, cd9660node *, 161 cd9660node *); 162static cd9660node *cd9660_create_special_directory(u_char, cd9660node *); 163 164 165/* | 100 101#include <string.h> 102#include <ctype.h> 103#include <sys/param.h> 104#include <sys/queue.h> 105 106#include "makefs.h" 107#include "cd9660.h" --- 50 unchanged lines hidden (view full) --- 158 int); 159static cd9660node *cd9660_create_file(const char *, cd9660node *, cd9660node *); 160static cd9660node *cd9660_create_directory(const char *, cd9660node *, 161 cd9660node *); 162static cd9660node *cd9660_create_special_directory(u_char, cd9660node *); 163 164 165/* |
166 * Allocate and initalize a cd9660node | 166 * Allocate and initialize a cd9660node |
167 * @returns struct cd9660node * Pointer to new node, or NULL on error 168 */ 169static cd9660node * 170cd9660_allocate_cd9660node(void) 171{ 172 cd9660node *temp; 173 174 if ((temp = calloc(1, sizeof(cd9660node))) == NULL) --- 1953 unchanged lines hidden --- | 167 * @returns struct cd9660node * Pointer to new node, or NULL on error 168 */ 169static cd9660node * 170cd9660_allocate_cd9660node(void) 171{ 172 cd9660node *temp; 173 174 if ((temp = calloc(1, sizeof(cd9660node))) == NULL) --- 1953 unchanged lines hidden --- |