Search
lxdream.org :: lxdream/test/include/ar.h
lxdream 0.9.1
released Jun 29
Download Now
filename test/include/ar.h
changeset 185:6755a04c447f
author nkeynes
date Wed Feb 15 17:54:51 2012 +1000 (12 years ago)
permissions -rw-r--r--
last change Use GL_TEXTURE_2D instead of GL_TEXTURE_RECTANGLE_ARB for frame buffers, for
systems that don't provide the latter (and there's not really much
difference anyway).
Add macro wrangling for GL_DEPTH24_STENCIL8 format
file annotate diff log raw
nkeynes@185
     1
/*	$NetBSD: ar.h,v 1.4 1994/10/26 00:55:43 cgd Exp $	*/
nkeynes@185
     2
nkeynes@185
     3
/*-
nkeynes@185
     4
 * Copyright (c) 1991, 1993
nkeynes@185
     5
 *	The Regents of the University of California.  All rights reserved.
nkeynes@185
     6
 * (c) UNIX System Laboratories, Inc.
nkeynes@185
     7
 * All or some portions of this file are derived from material licensed
nkeynes@185
     8
 * to the University of California by American Telephone and Telegraph
nkeynes@185
     9
 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
nkeynes@185
    10
 * the permission of UNIX System Laboratories, Inc.
nkeynes@185
    11
 *
nkeynes@185
    12
 * This code is derived from software contributed to Berkeley by
nkeynes@185
    13
 * Hugh Smith at The University of Guelph.
nkeynes@185
    14
 *
nkeynes@185
    15
 * Redistribution and use in source and binary forms, with or without
nkeynes@185
    16
 * modification, are permitted provided that the following conditions
nkeynes@185
    17
 * are met:
nkeynes@185
    18
 * 1. Redistributions of source code must retain the above copyright
nkeynes@185
    19
 *    notice, this list of conditions and the following disclaimer.
nkeynes@185
    20
 * 2. Redistributions in binary form must reproduce the above copyright
nkeynes@185
    21
 *    notice, this list of conditions and the following disclaimer in the
nkeynes@185
    22
 *    documentation and/or other materials provided with the distribution.
nkeynes@185
    23
 * 3. All advertising materials mentioning features or use of this software
nkeynes@185
    24
 *    must display the following acknowledgement:
nkeynes@185
    25
 *	This product includes software developed by the University of
nkeynes@185
    26
 *	California, Berkeley and its contributors.
nkeynes@185
    27
 * 4. Neither the name of the University nor the names of its contributors
nkeynes@185
    28
 *    may be used to endorse or promote products derived from this software
nkeynes@185
    29
 *    without specific prior written permission.
nkeynes@185
    30
 *
nkeynes@185
    31
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
nkeynes@185
    32
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
nkeynes@185
    33
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
nkeynes@185
    34
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
nkeynes@185
    35
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
nkeynes@185
    36
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
nkeynes@185
    37
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
nkeynes@185
    38
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
nkeynes@185
    39
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
nkeynes@185
    40
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
nkeynes@185
    41
 * SUCH DAMAGE.
nkeynes@185
    42
 *
nkeynes@185
    43
 *	@(#)ar.h	8.2 (Berkeley) 1/21/94
nkeynes@185
    44
 */
nkeynes@185
    45
nkeynes@185
    46
#ifndef _AR_H_
nkeynes@185
    47
#define	_AR_H_
nkeynes@185
    48
nkeynes@185
    49
/* Pre-4BSD archives had these magic numbers in them. */
nkeynes@185
    50
#define	OARMAG1	0177555
nkeynes@185
    51
#define	OARMAG2	0177545
nkeynes@185
    52
nkeynes@185
    53
#define	ARMAG		"!<arch>\n"	/* ar "magic number" */
nkeynes@185
    54
#define	SARMAG		8		/* strlen(ARMAG); */
nkeynes@185
    55
nkeynes@185
    56
#define	AR_EFMT1	"#1/"		/* extended format #1 */
nkeynes@185
    57
nkeynes@185
    58
struct ar_hdr {
nkeynes@185
    59
	char ar_name[16];		/* name */
nkeynes@185
    60
	char ar_date[12];		/* modification time */
nkeynes@185
    61
	char ar_uid[6];			/* user id */
nkeynes@185
    62
	char ar_gid[6];			/* group id */
nkeynes@185
    63
	char ar_mode[8];		/* octal file permissions */
nkeynes@185
    64
	char ar_size[10];		/* size in bytes */
nkeynes@185
    65
#define	ARFMAG	"`\n"
nkeynes@185
    66
	char ar_fmag[2];		/* consistency check */
nkeynes@185
    67
};
nkeynes@185
    68
nkeynes@185
    69
#endif /* !_AR_H_ */
.