cd9660_rrip.c (93075) | cd9660_rrip.c (102412) |
---|---|
1/*- 2 * Copyright (c) 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley 6 * by Pace Willisson (pace@blitz.com). The Rock Ridge Extension 7 * Support code is derived from software contributed to Berkeley 8 * by Atsushi Murai (amurai@spec.co.jp). --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)cd9660_rrip.c 8.6 (Berkeley) 12/5/94 | 1/*- 2 * Copyright (c) 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley 6 * by Pace Willisson (pace@blitz.com). The Rock Ridge Extension 7 * Support code is derived from software contributed to Berkeley 8 * by Atsushi Murai (amurai@spec.co.jp). --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)cd9660_rrip.c 8.6 (Berkeley) 12/5/94 |
39 * $FreeBSD: head/sys/fs/cd9660/cd9660_rrip.c 93075 2002-03-24 04:35:23Z bde $ | 39 * $FreeBSD: head/sys/fs/cd9660/cd9660_rrip.c 102412 2002-08-25 13:23:09Z charnier $ |
40 */ 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/bio.h> 45#include <sys/buf.h> 46#include <sys/vnode.h> 47#include <sys/mount.h> --- 128 unchanged lines hidden (view full) --- 176 case ISO_SUSP_CFLAG_HOST: 177 /* Inserting hostname i.e. "kurt.tools.de" */ 178 inbuf = hostname; 179 wlen = strlen(hostname); 180 break; 181 182 case ISO_SUSP_CFLAG_CONTINUE: 183 cont = 1; | 40 */ 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/bio.h> 45#include <sys/buf.h> 46#include <sys/vnode.h> 47#include <sys/mount.h> --- 128 unchanged lines hidden (view full) --- 176 case ISO_SUSP_CFLAG_HOST: 177 /* Inserting hostname i.e. "kurt.tools.de" */ 178 inbuf = hostname; 179 wlen = strlen(hostname); 180 break; 181 182 case ISO_SUSP_CFLAG_CONTINUE: 183 cont = 1; |
184 /* fall thru */ | 184 /* FALLTHROUGH */ |
185 case 0: 186 /* Inserting component */ 187 wlen = isonum_711(pcomp->clen); 188 inbuf = pcomp->name; 189 break; 190 default: 191 printf("RRIP with incorrect flags?"); 192 wlen = ana->maxlen + 1; --- 55 unchanged lines hidden (view full) --- 248 case ISO_SUSP_CFLAG_HOST: 249 /* Inserting hostname i.e. "kurt.tools.de" */ 250 inbuf = hostname; 251 wlen = strlen(hostname); 252 break; 253 254 case ISO_SUSP_CFLAG_CONTINUE: 255 cont = 1; | 185 case 0: 186 /* Inserting component */ 187 wlen = isonum_711(pcomp->clen); 188 inbuf = pcomp->name; 189 break; 190 default: 191 printf("RRIP with incorrect flags?"); 192 wlen = ana->maxlen + 1; --- 55 unchanged lines hidden (view full) --- 248 case ISO_SUSP_CFLAG_HOST: 249 /* Inserting hostname i.e. "kurt.tools.de" */ 250 inbuf = hostname; 251 wlen = strlen(hostname); 252 break; 253 254 case ISO_SUSP_CFLAG_CONTINUE: 255 cont = 1; |
256 /* fall thru */ | 256 /* FALLTHROUGH */ |
257 case 0: 258 /* Inserting component */ 259 wlen = isonum_711(p->h.length) - 5; 260 inbuf = (char *)p + 5; 261 break; 262 263 default: 264 printf("RRIP with incorrect NM flags?\n"); --- 27 unchanged lines hidden (view full) --- 292 isofntrans(isodir->name,isonum_711(isodir->name_len), 293 ana->outbuf,ana->outlen, 294 1,isonum_711(isodir->flags)&4, ana->imp->joliet_level); 295 switch (*ana->outbuf) { 296 default: 297 break; 298 case 1: 299 *ana->outlen = 2; | 257 case 0: 258 /* Inserting component */ 259 wlen = isonum_711(p->h.length) - 5; 260 inbuf = (char *)p + 5; 261 break; 262 263 default: 264 printf("RRIP with incorrect NM flags?\n"); --- 27 unchanged lines hidden (view full) --- 292 isofntrans(isodir->name,isonum_711(isodir->name_len), 293 ana->outbuf,ana->outlen, 294 1,isonum_711(isodir->flags)&4, ana->imp->joliet_level); 295 switch (*ana->outbuf) { 296 default: 297 break; 298 case 1: 299 *ana->outlen = 2; |
300 /* FALL THROUGH */ | 300 /* FALLTHROUGH */ |
301 case 0: 302 /* outlen is 1 already */ 303 strcpy(ana->outbuf,".."); 304 break; 305 } 306} 307 308/* --- 409 unchanged lines hidden --- | 301 case 0: 302 /* outlen is 1 already */ 303 strcpy(ana->outbuf,".."); 304 break; 305 } 306} 307 308/* --- 409 unchanged lines hidden --- |