iso_rrip.h revision 50477
11541Srgrimes/*- 21541Srgrimes * Copyright (c) 1993, 1994 31541Srgrimes * The Regents of the University of California. All rights reserved. 41541Srgrimes * 51541Srgrimes * This code is derived from software contributed to Berkeley 61541Srgrimes * by Pace Willisson (pace@blitz.com). The Rock Ridge Extension 71541Srgrimes * Support code is derived from software contributed to Berkeley 81541Srgrimes * by Atsushi Murai (amurai@spec.co.jp). 91541Srgrimes * 101541Srgrimes * Redistribution and use in source and binary forms, with or without 111541Srgrimes * modification, are permitted provided that the following conditions 121541Srgrimes * are met: 131541Srgrimes * 1. Redistributions of source code must retain the above copyright 141541Srgrimes * notice, this list of conditions and the following disclaimer. 151541Srgrimes * 2. Redistributions in binary form must reproduce the above copyright 161541Srgrimes * notice, this list of conditions and the following disclaimer in the 171541Srgrimes * documentation and/or other materials provided with the distribution. 181541Srgrimes * 3. All advertising materials mentioning features or use of this software 191541Srgrimes * must display the following acknowledgement: 201541Srgrimes * This product includes software developed by the University of 211541Srgrimes * California, Berkeley and its contributors. 221541Srgrimes * 4. Neither the name of the University nor the names of its contributors 231541Srgrimes * may be used to endorse or promote products derived from this software 241541Srgrimes * without specific prior written permission. 251541Srgrimes * 261541Srgrimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 271541Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 281541Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 291541Srgrimes * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 301541Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 311541Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 321541Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 331541Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 341541Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 351541Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 361541Srgrimes * SUCH DAMAGE. 371541Srgrimes * 381541Srgrimes * @(#)iso_rrip.h 8.2 (Berkeley) 1/23/94 3950477Speter * $FreeBSD: head/sys/fs/cd9660/iso_rrip.h 50477 1999-08-28 01:08:13Z peter $ 401541Srgrimes */ 411541Srgrimes 421541Srgrimes 431541Srgrimes/* 441541Srgrimes * Analyze function flag (similar to RR field bits) 451541Srgrimes */ 461541Srgrimes#define ISO_SUSP_ATTR 0x0001 471541Srgrimes#define ISO_SUSP_DEVICE 0x0002 481541Srgrimes#define ISO_SUSP_SLINK 0x0004 491541Srgrimes#define ISO_SUSP_ALTNAME 0x0008 501541Srgrimes#define ISO_SUSP_CLINK 0x0010 511541Srgrimes#define ISO_SUSP_PLINK 0x0020 521541Srgrimes#define ISO_SUSP_RELDIR 0x0040 531541Srgrimes#define ISO_SUSP_TSTAMP 0x0080 541541Srgrimes#define ISO_SUSP_IDFLAG 0x0100 551541Srgrimes#define ISO_SUSP_EXTREF 0x0200 561541Srgrimes#define ISO_SUSP_CONT 0x0400 571541Srgrimes#define ISO_SUSP_OFFSET 0x0800 581541Srgrimes#define ISO_SUSP_STOP 0x1000 591541Srgrimes#define ISO_SUSP_UNKNOWN 0x8000 601541Srgrimes 611541Srgrimestypedef struct { 621541Srgrimes struct iso_node *inop; 631541Srgrimes int fields; /* interesting fields in this analysis */ 641541Srgrimes daddr_t iso_ce_blk; /* block of continuation area */ 651541Srgrimes off_t iso_ce_off; /* offset of continuation area */ 661541Srgrimes int iso_ce_len; /* length of continuation area */ 671541Srgrimes struct iso_mnt *imp; /* mount structure */ 681541Srgrimes ino_t *inump; /* inode number pointer */ 691541Srgrimes char *outbuf; /* name/symbolic link output area */ 701541Srgrimes u_short *outlen; /* length of above */ 711541Srgrimes u_short maxlen; /* maximum length of above */ 721541Srgrimes int cont; /* continuation of above */ 731541Srgrimes} ISO_RRIP_ANALYZE; 741541Srgrimes 7533054Sbdestruct iso_directory_record; 7633054Sbde 771541Srgrimesint cd9660_rrip_analyze __P((struct iso_directory_record *isodir, 781541Srgrimes struct iso_node *inop, struct iso_mnt *imp)); 791541Srgrimesint cd9660_rrip_getname __P((struct iso_directory_record *isodir, 801541Srgrimes char *outbuf, u_short *outlen, 811541Srgrimes ino_t *inump, struct iso_mnt *imp)); 821541Srgrimesint cd9660_rrip_getsymname __P((struct iso_directory_record *isodir, 831541Srgrimes char *outbuf, u_short *outlen, 841541Srgrimes struct iso_mnt *imp)); 851541Srgrimesint cd9660_rrip_offset __P((struct iso_directory_record *isodir, 861541Srgrimes struct iso_mnt *imp)); 87