1N/A * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. 1N/A/*********************************************************************** 1N/A* This software is part of the ast package * 1N/A* Copyright (c) 1992-2011 AT&T Intellectual Property * 1N/A* and is licensed under the * 1N/A* Common Public License, Version 1.0 * 1N/A* by AT&T Intellectual Property * 1N/A* A copy of the License is available at * 1N/A* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) * 1N/A* Information and Software Systems Research * 1N/A* Glenn Fowler <gsf@research.att.com> * 1N/A* David Korn <dgk@research.att.com> * 1N/A***********************************************************************/ 1N/A * AT&T Bell Laboratories 1N/A"[-?\n@(#)$Id: cmp (AT&T Research) 2010-04-11 $\n]" 1N/A"[+NAME?cmp - compare two files]" 1N/A"[+DESCRIPTION?\bcmp\b compares two files \afile1\a and \afile2\a. " 1N/A "\bcmp\b writes no output if the files are the same. By default, if the " 1N/A "files differ, the byte and line number at which the first difference " 1N/A "occurred are written to standard output. Bytes and lines are numbered " 1N/A "beginning with 1.]" 1N/A"[+?If \askip1\a or \askip2\a are specified, or the \b-i\b option is " 1N/A "specified, initial bytes of the corresponding file are skipped before " 1N/A "beginning the compare. The skip values are in bytes or can have a " 1N/A "suffix of \bk\b for kilobytes or \bm\b for megabytes.]" 1N/A"[+?If either \afile1\a or \afiles2\a is \b-\b, \bcmp\b uses standard " 1N/A "input starting at the current location.]" 1N/A"[b:print-bytes?Print differing bytes as 3 digit octal values.]" 1N/A"[c:print-chars?Print differing bytes as follows: non-space printable " 1N/A "characters as themselves; space and control characters as \b^\b " 1N/A "followed by a letter of the alphabet; and characters with the high bit " 1N/A "set as the lower 7 bit character prefixed by \bM^\b for 7 bit space and " 1N/A "non-printable characters and \bM-\b for all other characters. If the 7 " 1N/A "bit character encoding is not ASCII then the characters are converted " 1N/A "to ASCII to determine \ahigh bit set\a, and if set it is cleared and " 1N/A "converted back to the native encoding. Multibyte characters in the " 1N/A "current locale are treated as printable characters.]" 1N/A"[d:differences?Print at most \adifferences\a differences using " 1N/A "\b--verbose\b output format. \b--differences=0\b is equivalent to " 1N/A "\b--silent\b.]#[differences]" 1N/A"[i:ignore-initial|skip?Skip the the first \askip1\a bytes in \afile1\a " 1N/A "and the first \askip2\a bytes in \afile2\a. If \askip2\a is omitted " 1N/A "then \askip1\a is used.]:[skip1[::skip2]]:=0::0]" 1N/A"[l:verbose?Write the decimal byte number and the differing bytes (in " 1N/A "octal) for each difference.]" 1N/A"[n:count|bytes?Compare at most \acount\a bytes.]#[count]" 1N/A"[s:quiet|silent?Write nothing for differing files; return non-zero exit " 1N/A"\nfile1 file2 [skip1 [skip2]]\n" 1N/A "[+0?The files or portions compared are identical.]" 1N/A "[+1?The files are different.]" 1N/A "[+>1?An error occurred.]" 1N/A"[+SEE ALSO?\bcomm\b(1), \bdiff\b(1), \bcat\b(1)]" 1N/A *s++ =
'0' + ((o >>
6) & 0
7);
1N/A *s++ =
'0' + ((o >>
3) & 0
7);
1N/A *s++ =
'0' + (o & 0
7);
1N/A register unsigned char*
p1 = 0;
1N/A register unsigned char*
p2 = 0;
1N/A register unsigned char*
e1 = 0;
1N/A register unsigned char*
e2 = 0;