Ignore:
Timestamp:
Sep 15, 2004, 12:27:38 AM (21 years ago)
Author:
bird
Message:

@unixroot. header reviews. ++

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/ar.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
    1 /* ar.h (emx+gcc) */
     1/* ar.h,v 1.2 2004/09/14 22:27:31 bird Exp */
     2/** @file
     3 * FreeBSD 5.2
     4 */
    25
    3 #ifndef _AR_H
    4 #define _AR_H
     6/*-
     7 * Copyright (c) 1991, 1993
     8 *      The Regents of the University of California.  All rights reserved.
     9 * (c) UNIX System Laboratories, Inc.
     10 * All or some portions of this file are derived from material licensed
     11 * to the University of California by American Telephone and Telegraph
     12 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
     13 * the permission of UNIX System Laboratories, Inc.
     14 *
     15 * This code is derived from software contributed to Berkeley by
     16 * Hugh Smith at The University of Guelph.
     17 *
     18 * Redistribution and use in source and binary forms, with or without
     19 * modification, are permitted provided that the following conditions
     20 * are met:
     21 * 1. Redistributions of source code must retain the above copyright
     22 *    notice, this list of conditions and the following disclaimer.
     23 * 2. Redistributions in binary form must reproduce the above copyright
     24 *    notice, this list of conditions and the following disclaimer in the
     25 *    documentation and/or other materials provided with the distribution.
     26 * 3. All advertising materials mentioning features or use of this software
     27 *    must display the following acknowledgement:
     28 *      This product includes software developed by the University of
     29 *      California, Berkeley and its contributors.
     30 * 4. Neither the name of the University nor the names of its contributors
     31 *    may be used to endorse or promote products derived from this software
     32 *    without specific prior written permission.
     33 *
     34 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     35 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     36 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     37 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     38 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     39 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     40 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     41 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     42 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     43 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     44 * SUCH DAMAGE.
     45 *
     46 *      @(#)ar.h        8.2 (Berkeley) 1/21/94
     47 */
    548
    6 #define ARMAG  "!<arch>\n"
    7 #define SARMAG 8
    8 #define ARFMAG "`\n"
     49#ifndef _AR_H_
     50#define _AR_H_
    951
    10 struct ar_hdr
    11 {
    12   char ar_name[16];
    13   char ar_date[12];
    14   char ar_uid[6];
    15   char ar_gid[6];
    16   char ar_mode[8];
    17   char ar_size[10];
    18   char ar_fmag[2];
     52/* Pre-4BSD archives had these magic numbers in them. */
     53#define OARMAG1 0177555
     54#define OARMAG2 0177545
     55
     56#define ARMAG           "!<arch>\n"     /* ar "magic number" */
     57#define SARMAG          8               /* strlen(ARMAG); */
     58
     59#define AR_EFMT1        "#1/"           /* extended format #1 */
     60
     61struct ar_hdr {
     62        char ar_name[16];               /* name */
     63        char ar_date[12];               /* modification time */
     64        char ar_uid[6];                 /* user id */
     65        char ar_gid[6];                 /* group id */
     66        char ar_mode[8];                /* octal file permissions */
     67        char ar_size[10];               /* size in bytes */
     68#define ARFMAG  "`\n"
     69        char ar_fmag[2];                /* consistency check */
    1970};
    2071
    21 #endif /* not _AR_H */
     72#endif /* !_AR_H_ */
Note: See TracChangeset for help on using the changeset viewer.