- Timestamp:
- Sep 17, 2009, 9:26:26 AM (16 years ago)
- Branches:
- freewrt_1_0, freewrt_2_0
- Children:
- 83f943b
- Parents:
- a72a15a
- Location:
- tools/paxmirabilis/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/paxmirabilis/src/cpio.1
ra72a15a r8c0c060 1 .\" $MirOS: src/bin/pax/cpio.1,v 1.1 7 2008/03/14 17:05:06tg Exp $1 .\" $MirOS: src/bin/pax/cpio.1,v 1.18 2008/11/08 23:03:35 tg Exp $ 2 2 .\" $OpenBSD: cpio.1,v 1.26 2007/05/31 19:19:15 jmc Exp $ 3 3 .\" 4 .\" Copyright (c) 2005 Thorsten Glaser <tg@ 66h.42h.de>4 .\" Copyright (c) 2005 Thorsten Glaser <tg@mirbsd.org> 5 5 .\" Copyright (c) 1997 SigmaSoft, Th. Lockert 6 6 .\" All rights reserved. … … 62 62 .\" with -mandoc, it might implement .Mx itself, but we want to 63 63 .\" use our own definition. And .Dd must come *first*, always. 64 .Dd $Mdocdate: March 142008 $64 .Dd $Mdocdate: November 8 2008 $ 65 65 .\" 66 66 .\" Implement .Mx (MirBSD) -
tools/paxmirabilis/src/cpio.c
ra72a15a r8c0c060 1 /** $MirOS: src/bin/pax/cpio.c,v 1.1 2 2007/02/17 05:07:12tg Exp $ */1 /** $MirOS: src/bin/pax/cpio.c,v 1.13 2008/11/08 23:03:37 tg Exp $ */ 2 2 /* $OpenBSD: cpio.c,v 1.17 2004/04/16 22:50:23 deraadt Exp $ */ 3 3 /* $NetBSD: cpio.c,v 1.5 1995/03/21 09:07:13 cgd Exp $ */ 4 4 5 5 /*- 6 * Copyright (c) 2005 Thorsten Glaser <tg@ 66h.42h.de>6 * Copyright (c) 2005 Thorsten Glaser <tg@mirbsd.org> 7 7 * Copyright (c) 1992 Keith Muller. 8 8 * Copyright (c) 1992, 1993 … … 50 50 51 51 __SCCSID("@(#)cpio.c 8.1 (Berkeley) 5/31/93"); 52 __RCSID("$MirOS: src/bin/pax/cpio.c,v 1.1 2 2007/02/17 05:07:12tg Exp $");52 __RCSID("$MirOS: src/bin/pax/cpio.c,v 1.13 2008/11/08 23:03:37 tg Exp $"); 53 53 54 54 static int rd_nm(ARCHD *, int); -
tools/paxmirabilis/src/options.c
ra72a15a r8c0c060 3 3 4 4 /*- 5 * Copyright (c) 2005, 2006, 2007 Thorsten Glaser <tg@ 66h.42h.de>5 * Copyright (c) 2005, 2006, 2007 Thorsten Glaser <tg@mirbsd.org> 6 6 * Copyright (c) 1992 Keith Muller. 7 7 * Copyright (c) 1992, 1993 … … 57 57 58 58 __SCCSID("@(#)options.c 8.2 (Berkeley) 4/18/94"); 59 __RCSID("$MirOS: src/bin/pax/options.c,v 1.2 7 2008/10/29 17:00:07tg Exp $");59 __RCSID("$MirOS: src/bin/pax/options.c,v 1.29 2009/09/17 07:24:00 tg Exp $"); 60 60 61 61 #ifdef __GLIBC__ … … 75 75 static int c_frmt(const void *, const void *); 76 76 static off_t str_offt(char *); 77 static char *get line(FILE *fp);77 static char *get_line(FILE *fp); 78 78 static void pax_options(int, char **); 79 79 static void pax_usage(void) __attribute__((noreturn)); … … 88 88 static void process_M(const char *, void (*)(void)); 89 89 90 /* errors from get line */91 #define GET LINE_FILE_CORRUPT 192 #define GET LINE_OUT_OF_MEM 293 static int get line_error;90 /* errors from get_line */ 91 #define GET_LINE_FILE_CORRUPT 1 92 #define GET_LINE_OUT_OF_MEM 2 93 static int get_line_error; 94 94 95 95 … … 925 925 tar_usage(); 926 926 } 927 while ((str = get line(fp)) != NULL) {927 while ((str = get_line(fp)) != NULL) { 928 928 if (pat_add(str, dir) < 0) 929 929 tar_usage(); … … 932 932 if (strcmp(file, "-") != 0) 933 933 fclose(fp); 934 if (get line_error) {934 if (get_line_error) { 935 935 paxwarn(1, "Problem with file '%s'", file); 936 936 tar_usage(); … … 1022 1022 tar_usage(); 1023 1023 } 1024 while ((str = get line(fp)) != NULL) {1024 while ((str = get_line(fp)) != NULL) { 1025 1025 if (ftree_add(str, 0) < 0) 1026 1026 tar_usage(); … … 1028 1028 if (strcmp(file, "-") != 0) 1029 1029 fclose(fp); 1030 if (get line_error) {1030 if (get_line_error) { 1031 1031 paxwarn(1, "Problem with file '%s'", 1032 1032 file); … … 1253 1253 cpio_usage(); 1254 1254 } 1255 while ((str = get line(fp)) != NULL) {1255 while ((str = get_line(fp)) != NULL) { 1256 1256 pat_add(str, NULL); 1257 1257 } 1258 1258 fclose(fp); 1259 if (get line_error) {1259 if (get_line_error) { 1260 1260 paxwarn(1, "Problem with file '%s'", optarg); 1261 1261 cpio_usage(); … … 1365 1365 */ 1366 1366 maxflt = 0; 1367 while ((str = get line(stdin)) != NULL) {1367 while ((str = get_line(stdin)) != NULL) { 1368 1368 ftree_add(str, 0); 1369 1369 } 1370 if (get line_error) {1370 if (get_line_error) { 1371 1371 paxwarn(1, "Problem while reading stdin"); 1372 1372 cpio_usage(); … … 1594 1594 1595 1595 char * 1596 get line(FILE *f)1596 get_line(FILE *f) 1597 1597 { 1598 1598 char *name, *temp; … … 1601 1601 name = fgetln(f, &len); 1602 1602 if (!name) { 1603 get line_error = ferror(f) ? GETLINE_FILE_CORRUPT : 0;1603 get_line_error = ferror(f) ? GET_LINE_FILE_CORRUPT : 0; 1604 1604 return(0); 1605 1605 } … … 1608 1608 temp = malloc(len); 1609 1609 if (!temp) { 1610 get line_error = GETLINE_OUT_OF_MEM;1610 get_line_error = GET_LINE_OUT_OF_MEM; 1611 1611 return(0); 1612 1612 } -
tools/paxmirabilis/src/tables.c
ra72a15a r8c0c060 3 3 4 4 /*- 5 * Copyright (c) 2005 Thorsten Glaser <tg@ 66h.42h.de>5 * Copyright (c) 2005 Thorsten Glaser <tg@mirbsd.org> 6 6 * Copyright (c) 1992 Keith Muller. 7 7 * Copyright (c) 1992, 1993 … … 50 50 51 51 __SCCSID("@(#)tables.c 8.1 (Berkeley) 5/31/93"); 52 __RCSID("$MirOS: src/bin/pax/tables.c,v 1. 8 2007/10/23 20:07:42tg Exp $");52 __RCSID("$MirOS: src/bin/pax/tables.c,v 1.9 2008/11/08 23:03:38 tg Exp $"); 53 53 54 54 /* -
tools/paxmirabilis/src/tables.h
ra72a15a r8c0c060 1 /** $MirOS: src/bin/pax/tables.h,v 1. 3 2007/10/23 20:07:42tg Exp $ */1 /** $MirOS: src/bin/pax/tables.h,v 1.4 2008/11/08 23:03:39 tg Exp $ */ 2 2 /* $OpenBSD: tables.h,v 1.8 2006/08/05 23:05:13 ray Exp $ */ 3 3 /* $NetBSD: tables.h,v 1.3 1995/03/21 09:07:47 cgd Exp $ */ 4 4 5 5 /*- 6 * Copyright (c) 2005 Thorsten Glaser <tg@ 66h.42h.de>6 * Copyright (c) 2005 Thorsten Glaser <tg@mirbsd.org> 7 7 * Copyright (c) 1992 Keith Muller. 8 8 * Copyright (c) 1992, 1993
Note:
See TracChangeset
for help on using the changeset viewer.
