Changeset 9ec66c9 in freewrt for tools/paxmirabilis/src
- Timestamp:
- Jul 16, 2006, 8:01:31 PM (19 years ago)
- Branches:
- freewrt_1_0, freewrt_2_0
- Children:
- 839dc39
- Parents:
- 32a1465
- Location:
- tools/paxmirabilis/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/paxmirabilis/src/Makefile
r32a1465 r9ec66c9 1 # $MirOS: src/bin/pax/Makefile,v 1. 2 2005/04/13 20:11:23tg Exp $1 # $MirOS: src/bin/pax/Makefile,v 1.3 2006/07/16 17:55:17 tg Exp $ 2 2 # $OpenBSD: Makefile,v 1.10 2001/05/26 00:32:20 millert Exp $ 3 3 … … 20 20 LINKS= ${BINDIR}/pax ${BINDIR}/tar ${BINDIR}/pax ${BINDIR}/cpio 21 21 22 .if ${OStype} == "Interix"22 .if (${OStype} == "Interix") || (${OStype} == "Linux") 23 23 CPPFLAGS+= -DLONG_OFF_T 24 24 .endif -
tools/paxmirabilis/src/cache.c
r32a1465 r9ec66c9 1 /** $MirOS: src/bin/pax/cache.c,v 1. 2 2005/04/13 20:03:35tg Exp $ */1 /** $MirOS: src/bin/pax/cache.c,v 1.3 2006/07/16 17:55:18 tg Exp $ */ 2 2 /* $OpenBSD: cache.c,v 1.17 2004/03/16 03:28:34 tedu Exp $ */ 3 3 /* $NetBSD: cache.c,v 1.4 1995/03/21 09:07:10 cgd Exp $ */ … … 51 51 52 52 __SCCSID("@(#)cache.c 8.1 (Berkeley) 5/31/93"); 53 __RCSID("$MirOS: src/bin/pax/cache.c,v 1. 2 2005/04/13 20:03:35tg Exp $");53 __RCSID("$MirOS: src/bin/pax/cache.c,v 1.3 2006/07/16 17:55:18 tg Exp $"); 54 54 55 55 /* -
tools/paxmirabilis/src/extern.h
r32a1465 r9ec66c9 1 /** $MirOS: src/bin/pax/extern.h,v 1. 6 2006/06/19 19:22:08tg Exp $ */1 /** $MirOS: src/bin/pax/extern.h,v 1.7 2006/07/16 17:56:29 tg Exp $ */ 2 2 /* $OpenBSD: extern.h,v 1.31 2005/04/28 06:58:07 otto Exp $ */ 3 3 /* $NetBSD: extern.h,v 1.5 1996/03/26 23:54:16 mrg Exp $ */ … … 43 43 44 44 #include <sys/cdefs.h> 45 #if ndef BSD45 #if defined(__GLIBC__) 46 46 #include <time.h> 47 47 #endif -
tools/paxmirabilis/src/gen_subs.c
r32a1465 r9ec66c9 1 /** $MirOS: src/bin/pax/gen_subs.c,v 1. 5 2005/04/29 18:34:44tg Exp $ */1 /** $MirOS: src/bin/pax/gen_subs.c,v 1.6 2006/07/16 17:58:08 tg Exp $ */ 2 2 /* $OpenBSD: gen_subs.c,v 1.18 2005/04/28 06:58:07 otto Exp $ */ 3 3 /* $NetBSD: gen_subs.c,v 1.5 1995/03/21 09:07:26 cgd Exp $ */ … … 50 50 #include <stdlib.h> 51 51 #include <string.h> 52 #if def BSD52 #ifndef __GLIBC__ 53 53 #include <vis.h> 54 54 #endif … … 57 57 58 58 __SCCSID("@(#)gen_subs.c 8.1 (Berkeley) 5/31/93"); 59 __RCSID("$MirOS: src/bin/pax/gen_subs.c,v 1.5 2005/04/29 18:34:44 tg Exp $"); 60 61 void strmode(mode_t mode, char *p); 59 __RCSID("$MirOS: src/bin/pax/gen_subs.c,v 1.6 2006/07/16 17:58:08 tg Exp $"); 60 61 #ifdef __GLIBC__ 62 void strmode(mode_t, char *); 63 #endif 62 64 63 65 /* … … 201 203 safe_print(const char *str, FILE *fp) 202 204 { 203 #if def BSD205 #ifndef __GLIBC__ 204 206 char visbuf[5]; 205 207 const char *cp; -
tools/paxmirabilis/src/options.c
r32a1465 r9ec66c9 1 /** $MirOS: src/bin/pax/options.c,v 1.1 8 2006/07/16 16:14:50tg Exp $ */1 /** $MirOS: src/bin/pax/options.c,v 1.19 2006/07/16 17:58:39 tg Exp $ */ 2 2 /* $OpenBSD: options.c,v 1.64 2006/04/09 03:35:34 jaredy Exp $ */ 3 3 /* $NetBSD: options.c,v 1.6 1996/03/26 23:54:18 mrg Exp $ */ … … 58 58 59 59 __SCCSID("@(#)options.c 8.2 (Berkeley) 4/18/94"); 60 __RCSID("$MirOS: src/bin/pax/options.c,v 1.1 8 2006/07/16 16:14:50tg Exp $");60 __RCSID("$MirOS: src/bin/pax/options.c,v 1.19 2006/07/16 17:58:39 tg Exp $"); 61 61 62 62 #ifdef __GLIBC__ … … 1506 1506 if ((num == LONG_MAX) || (num <= 0) || (expr == val)) 1507 1507 # else 1508 num = strto ll(val, &expr, 0);1509 if ((num == LLONG_MAX) || (num <= 0) || (expr == val))1508 num = strtoq(val, &expr, 0); 1509 if ((num == QUAD_MAX) || (num <= 0) || (expr == val)) 1510 1510 # endif 1511 1511 return(0); -
tools/paxmirabilis/src/pax.c
r32a1465 r9ec66c9 1 /** $MirOS: src/bin/pax/pax.c,v 1. 4 2006/06/23 23:03:57tg Exp $ */1 /** $MirOS: src/bin/pax/pax.c,v 1.5 2006/07/16 18:00:33 tg Exp $ */ 2 2 /* $OpenBSD: pax.c,v 1.28 2005/08/04 10:02:44 mpf Exp $ */ 3 3 /* $NetBSD: pax.c,v 1.5 1996/03/26 23:54:20 mrg Exp $ */ … … 59 59 60 60 __SCCSID("@(#)pax.c 8.2 (Berkeley) 4/18/94"); 61 __RCSID("$MirOS: src/bin/pax/pax.c,v 1. 4 2006/06/23 23:03:57tg Exp $");61 __RCSID("$MirOS: src/bin/pax/pax.c,v 1.5 2006/07/16 18:00:33 tg Exp $"); 62 62 63 63 static int gen_init(void); … … 102 102 char *argv0; /* root of argv[0] */ 103 103 sigset_t s_mask; /* signal mask for cleanup critical sect */ 104 FILE *listf; /* f ile pointer to print file list to*/104 FILE *listf; /* fp to print file list to (default stderr) */ 105 105 char *tempfile; /* tempfile to use for mkstemp(3) */ 106 106 char *tempbase; /* basename of tempfile to use for mkstemp(3) */ … … 232 232 size_t tdlen; 233 233 234 listf = stderr;235 236 234 /* 237 235 * Keep a reference to cwd, so we can always come back home. … … 260 258 tempbase = tempfile + tdlen; 261 259 *tempbase++ = '/'; 260 261 listf = stderr; 262 262 263 263 /*
Note:
See TracChangeset
for help on using the changeset viewer.
