FACTOID # 39: The eight most developed countries all speak Germanic languages.
 
 Home   Encyclopedia   Statistics   Countries A-Z   Flags   Maps   Education   Forum   FAQ   About 
 
 
 
WHAT'S NEW
RECENT ARTICLES
More Recent Articles »
 

SEARCH ALL

FACTS & STATISTICS    Advanced view

Search encyclopedia, statistics and forums:

 

 

(* = Graphable)

 

 


Encyclopedia > Binfmt misc

binfmt_misc is a Linux kernel capability which allows arbitrary executable file formats to be recognized and passed to certain user space applications, such as emulators and virtual machines. The executable formats are registered through a virtual file system interface (similar to /proc). The Linux kernel is a Unix-like operating system kernel. ... In computer science, object file or object code is an intermediate representation of code generated by a compiler after it processes a source code file. ... An operating system usually segregates the available system memory into kernel space and user space. ... DosBox emulates the familiar command line interface of DOS. An emulator duplicates (provide an emulation of) the functions of one system with a different system, so that the second system behaves like (and appears to be) the first system. ... In computer science, a virtual machine is software that creates a virtualized environment between the computer platform and its operating system, so that the end user can operate software on an abstract machine. ... The Filesystem Hierarchy Standard (FHS) defines the main directories and their contents in Linux and other Unix-like computer operating systems. ...


For example, binfmt_misc allows Java programs to be passed directly to the Java virtual machine, or execute Windows PE executables through Wine. “Java language” redirects here. ... A Java Virtual Machine (JVM) is a set of computer software programs and data structures which implements a specific virtual machine model. ... The Portable Executable (PE) format is a file format for executables, object code, and DLLs, used in 32-bit and 64-bit versions of Windows operating systems. ... Wine is a project which aims to allow a PC with an x86 architecture processor running a Unix-like operating system and the X Window System to execute programs that were originally written for Microsoft Windows. ...


Execution

Writing a line to the register file will cause a new binary format to be registered. The line is of the form:

 :name:type:offset:magic:mask:interpreter: 

name is the name of the new binary format. type is either E or M. If it is E, then the executable file format is identified by its file extension. If it is M, then the executable file format is identified by a magic number near the beginning of the file. If the type is E, then magic is the file extension to be associated with the binary format, and offset and mask should be left empty. Otherwise, magic is the magic number identifying the binary format, offset is the offset at which the magic number should be found in the file, and mask is bitwise ANDed with the magic string from the file, the result being that bits which are unset in the mask are ignored in the comparison to the magic. A file format is a particular way to encode information for storage in a computer file. ... In computer programming, a bitwise operation operates on one or two bit patterns or binary numerals at the level of their individual bits. ...


interpreter is a path to an executable. When a file using a binfmt_misc-registered executable format is executed, this program is run with the executable as an argument.


When an executable file format is registered, a file with the name given to 'register' is created in the /proc/sys/fs/binfmt_misc directory. This file can be read to get information about the file format.


See also

In computing, a shebang is a specific pair of characters used in a special line that begins a text file (commonly called a script) causing Unix-like operating systems to execute the commands in the text file using a specified interpreter (program) when executed. ...

External links

  • The binfmt_misc Homepage
  • Enable scripting written directly in C


 
 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your comments

Want to know more?
Search encyclopedia, statistics and forums:

 


Lesson Plans | Student Area | Student FAQ | Reviews | Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms, 1022, m