Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

x86dis(1) [debian man page]

X86DIS(1)							     libdisasm								 X86DIS(1)

NAME
x86dis - disassemble a bytestream of Intel x86 instructions SYNTAX
x86dis [-a offset|--addr=offset] [-r offset len|--range=offset len] [-e offset|--entry=offset] [-s name|--syntax=name] [-d name|--desc=name] [-f file|--file=file] [-o file|--out=file] [-l file|--log=file] [-p num|--pagesize=num] [-h|-?|--help] [-v|--version] DESCRIPTION
A command-line interface to the libdisasm disassembler library. OPTIONS
At least one option from the list -a, -e, -r must be given. -f, --file=file Read input bytes from file instead of stdin -o, --out=file Write output to file instead of stdout -l, --log=file Log errors to file instead of stderr -p, --pagesize=num Set page size for buffering STDIN to num (default 512K) -s, --syntax=name Set output syntax to name, where name is one of intel (Intel syntax), att (AT&T syntax), raw (libdisasm syntax) -d, --desc=name Print a description of syntax name -a, --addr=offset Disassemble single instruction at offset -e, --entry=offset Disassemble forward from offset -r, --range=offset len Disassemble len bytes starting at offset All offset and len parameters are expected to follow the conventions used in strtoul(3), where hexadecimal numbers have the prefix 0x, octal numbers have the prefix 0, and decimal numbers have no prefix. A value of 0 for len indicates that that range extends to the end of the file. EXAMPLES
cat `which ls` | x86dis -s intel -e 0x00 -r 0x00 -1 -a 0xEEEE x86dis -e 0 -s intel < bootsect.img x86dis -d -s raw -f a.out -e `readelf -h a.out | grep Entry | awk '{ printf( "0x%%x", strtonum($4) - 0x8048000 ) }` echo '55 89 e5 83 EC 08' | perl -ane 'foreach(@F){print pack("C",hex);}'| x86dis -e 0 -s att NOTES
x86dis performs no file format parsing, nor any verification that its input is in fact executable binary code. All offsets are assumed to be from the start of the file, with no load addresses applied. The intent is to provide a bytestream disassembler rather than an object file disassembler. Descriptions of the various output formats can be obtained using the -d option. AUTHORS
mammon_ <mammon_@users.sourceforge.net> SEE ALSO
bastard(1), libdisasm(7), x86_disasm(3), x86_format_insn(3), x86_init(3) mammon_ 0.21 X86DIS(1)

Check Out this Related Man Page

POSIX_FALLOCATE(3)					     Linux Programmer's Manual						POSIX_FALLOCATE(3)

NAME
posix_fallocate - allocate file space SYNOPSIS
#include <fcntl.h> int posix_fallocate(int fd, off_t offset, off_t len); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): posix_fallocate(): _XOPEN_SOURCE >= 600 || _POSIX_C_SOURCE >= 200112L DESCRIPTION
The function posix_fallocate() ensures that disk space is allocated for the file referred to by the descriptor fd for the bytes in the range starting at offset and continuing for len bytes. After a successful call to posix_fallocate(), subsequent writes to bytes in the specified range are guaranteed not to fail because of lack of disk space. If the size of the file is less than offset+len, then the file is increased to this size; otherwise the file size is left unchanged. RETURN VALUE
posix_fallocate() returns zero on success, or an error number on failure. Note that errno is not set. ERRORS
EBADF fd is not a valid file descriptor, or is not opened for writing. EFBIG offset+len exceeds the maximum file size. EINVAL offset was less than 0, or len was less than or equal to 0. ENODEV fd does not refer to a regular file. ENOSPC There is not enough space left on the device containing the file referred to by fd. ESPIPE fd refers to a pipe. VERSIONS
posix_fallocate() is available since glibc 2.1.94. CONFORMING TO
POSIX.1-2001. POSIX.1-2008 says that an implementation shall give the EINVAL error if len was 0, or offset was less than 0. POSIX.1-2001 says that an implementation shall give the EINVAL error if len is less than 0, or offset was less than 0, and may give the error if len equals zero. SEE ALSO
fallocate(2), lseek(2), posix_fadvise(2) COLOPHON
This page is part of release 3.44 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. GNU
2010-09-20 POSIX_FALLOCATE(3)
Man Page