Related Searches
Nearby Words

magic cookie

Computing Dictionary

magic cookie definition


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 operating systems with a non-byte-stream model of files, the result of "ftell" may be a magic cookie rather than a byte offset; it can be passed to "fseek", but not operated on in any meaningful way. The phrase "it hands you a magic cookie" means it returns a result whose contents are not defined but which can be passed back to the same or some other program later.
2. An in-band code for changing graphic rendition (e.g. inverse video or underlining) or performing other control functions. Some older terminals would leave a blank on the screen corresponding to mode-change magic cookies; this was also called a glitch (or occasionally a "turd"; compare mouse droppings).
See also cookie.
[Jargon File]
(1995-01-25)

The Free On-line Dictionary of Computing, © Denis Howe 2010 http://foldoc.org
Cite This Source

:10

:09

:08

:07

:06

:05

:04

:03

:02

:01

Magic cookie is always a great word to know.
So is quincunx. Does it mean:
a children's mummer's parade, as on the Fourth of July, with prizes for the best costumes.
an arrangement of five objects, as trees, in a square or rectangle, one at each corner and one in the middle.
Dictionary.com, LLC. Copyright © 2012. All rights reserved.
  • Please Login or Sign Up to use the Recent Searches feature