Files
JargonFile/original/html/M/magic-cookie.html
2014-03-27 18:54:56 +00:00

18 lines
3.0 KiB
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>magic cookie</title><link rel="stylesheet" href="../../jargon.css" type="text/css"/><meta name="generator" content="DocBook XSL Stylesheets V1.61.0"/><link rel="home" href="../index.html" title="The Jargon File"/><link rel="up" href="../M.html" title="M"/><link rel="previous" href="magic.html" title="magic"/><link rel="next" href="magic-number.html" title="magic number"/></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">magic cookie</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="magic.html">Prev</a> </td><th width="60%" align="center">M</th><td width="20%" align="right"> <a accesskey="n" href="magic-number.html">Next</a></td></tr></table><hr/></div><dt><a id="magic-cookie"/><dt xmlns="" id="magic-cookie"><b>magic cookie</b>: <span xmlns="http://www.w3.org/1999/xhtml" class="grammar">n.</span></dt></dt><dd><p> [Unix; common] </p></dd><dd><p> 1. Something passed between routines or programs that enables the
receiver to perform some operation; a capability ticket or opaque
identifier. Especially used of small data objects that contain data
encoded in a strange or intrinsically machine-dependent way. E.g., on
non-Unix OSes with a non-byte-stream model of files, the result of
<span class="citerefentry"><span class="refentrytitle">ftell</span>(3)</span>
may be a magic cookie rather than a byte offset; it can be passed to
<span class="citerefentry"><span class="refentrytitle">fseek</span>(3)</span>,
but not operated on in any meaningful way. The phrase <span class="firstterm">it hands you a magic cookie</span> means it returns a
result whose contents are not defined but which can be passed back to the
same or some other program later. </p></dd><dd><p> 2. An in-band code for changing graphic rendition (e.g., inverse
video or underlining) or performing other control functions (see also
<a href="../C/cookie.html"><i class="glossterm">cookie</i></a>). Some older terminals would leave a blank
on the screen corresponding to mode-change magic cookies; this was also
called a <a href="../G/glitch.html"><i class="glossterm">glitch</i></a> (or occasionally a <span class="firstterm">turd</span>; compare
<a href="mouse-droppings.html"><i class="glossterm">mouse droppings</i></a>). See also <a href="../C/cookie.html"><i class="glossterm">cookie</i></a>.</p></dd><div class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="magic.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="../M.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="magic-number.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">magic </td><td width="20%" align="center"><a accesskey="h" href="../index.html">Home</a></td><td width="40%" align="right" valign="top"> magic number</td></tr></table></div></body></html>