Search
lxdream.org :: lxdream/test/include/ar.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename test/include/ar.h
changeset 185:6755a04c447f
author nkeynes
date Tue Jul 11 01:35:27 2006 +0000 (17 years ago)
permissions -rw-r--r--
last change First commit of system test framework. 3 initial test cases (incomplete):
testide, testmath, and testta
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/test/include/ar.h Tue Jul 11 01:35:27 2006 +0000
1.3 @@ -0,0 +1,69 @@
1.4 +/* $NetBSD: ar.h,v 1.4 1994/10/26 00:55:43 cgd Exp $ */
1.5 +
1.6 +/*-
1.7 + * Copyright (c) 1991, 1993
1.8 + * The Regents of the University of California. All rights reserved.
1.9 + * (c) UNIX System Laboratories, Inc.
1.10 + * All or some portions of this file are derived from material licensed
1.11 + * to the University of California by American Telephone and Telegraph
1.12 + * Co. or Unix System Laboratories, Inc. and are reproduced herein with
1.13 + * the permission of UNIX System Laboratories, Inc.
1.14 + *
1.15 + * This code is derived from software contributed to Berkeley by
1.16 + * Hugh Smith at The University of Guelph.
1.17 + *
1.18 + * Redistribution and use in source and binary forms, with or without
1.19 + * modification, are permitted provided that the following conditions
1.20 + * are met:
1.21 + * 1. Redistributions of source code must retain the above copyright
1.22 + * notice, this list of conditions and the following disclaimer.
1.23 + * 2. Redistributions in binary form must reproduce the above copyright
1.24 + * notice, this list of conditions and the following disclaimer in the
1.25 + * documentation and/or other materials provided with the distribution.
1.26 + * 3. All advertising materials mentioning features or use of this software
1.27 + * must display the following acknowledgement:
1.28 + * This product includes software developed by the University of
1.29 + * California, Berkeley and its contributors.
1.30 + * 4. Neither the name of the University nor the names of its contributors
1.31 + * may be used to endorse or promote products derived from this software
1.32 + * without specific prior written permission.
1.33 + *
1.34 + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
1.35 + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1.36 + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1.37 + * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
1.38 + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1.39 + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
1.40 + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1.41 + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
1.42 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1.43 + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
1.44 + * SUCH DAMAGE.
1.45 + *
1.46 + * @(#)ar.h 8.2 (Berkeley) 1/21/94
1.47 + */
1.48 +
1.49 +#ifndef _AR_H_
1.50 +#define _AR_H_
1.51 +
1.52 +/* Pre-4BSD archives had these magic numbers in them. */
1.53 +#define OARMAG1 0177555
1.54 +#define OARMAG2 0177545
1.55 +
1.56 +#define ARMAG "!<arch>\n" /* ar "magic number" */
1.57 +#define SARMAG 8 /* strlen(ARMAG); */
1.58 +
1.59 +#define AR_EFMT1 "#1/" /* extended format #1 */
1.60 +
1.61 +struct ar_hdr {
1.62 + char ar_name[16]; /* name */
1.63 + char ar_date[12]; /* modification time */
1.64 + char ar_uid[6]; /* user id */
1.65 + char ar_gid[6]; /* group id */
1.66 + char ar_mode[8]; /* octal file permissions */
1.67 + char ar_size[10]; /* size in bytes */
1.68 +#define ARFMAG "`\n"
1.69 + char ar_fmag[2]; /* consistency check */
1.70 +};
1.71 +
1.72 +#endif /* !_AR_H_ */
.