is_tar.c (169942) | is_tar.c (169962) |
---|---|
1/* 2 * Copyright (c) Ian F. Darwin 1986-1995. 3 * Software written by Ian F. Darwin and others; 4 * maintained 1995-present by Christos Zoulas and others. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 31 unchanged lines hidden (view full) --- 40#include "file.h" 41#include "magic.h" 42#include <string.h> 43#include <ctype.h> 44#include <sys/types.h> 45#include "tar.h" 46 47#ifndef lint | 1/* 2 * Copyright (c) Ian F. Darwin 1986-1995. 3 * Software written by Ian F. Darwin and others; 4 * maintained 1995-present by Christos Zoulas and others. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 31 unchanged lines hidden (view full) --- 40#include "file.h" 41#include "magic.h" 42#include <string.h> 43#include <ctype.h> 44#include <sys/types.h> 45#include "tar.h" 46 47#ifndef lint |
48FILE_RCSID("@(#)$Id: is_tar.c,v 1.26 2006/05/03 15:19:25 christos Exp $") | 48FILE_RCSID("@(#)$File: is_tar.c,v 1.27 2007/01/12 17:38:28 christos Exp $") |
49#endif 50 51#define isodigit(c) ( ((c) >= '0') && ((c) <= '7') ) 52 53private int is_tar(const unsigned char *, size_t); 54private int from_oct(int, const char *); /* Decode octal number */ 55 56protected int --- 100 unchanged lines hidden --- | 49#endif 50 51#define isodigit(c) ( ((c) >= '0') && ((c) <= '7') ) 52 53private int is_tar(const unsigned char *, size_t); 54private int from_oct(int, const char *); /* Decode octal number */ 55 56protected int --- 100 unchanged lines hidden --- |