Changeset 36445 in project


Ignore:
Timestamp:
08/26/18 10:55:08 (3 weeks ago)
Author:
evhan
Message:

wiki/eggref/5: Add docs for recently ported eggs

Location:
wiki
Files:
9 added
2 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/magic

    r36351 r36445  
    77=== Description
    88
    9 libmagic bindings.
     9Bindings to the magic file recognition library.
    1010
    1111Two modules are included, {{(magic)}} and {{(magic libmagic)}}:
    1212
    13 * {{(magic)}} is a high-level wrapper providing a single procedure
    14   called {{identify}}.
    15 * {{(magic libmagic)}} is a one-to-one binding to {{libmagic.h}}, used
    16   exactly like the C library.
     13* {{(magic)}} is a high-level wrapper providing a single procedure called {{identify}}.
     14* {{(magic libmagic)}} is a one-to-one binding to {{libmagic.h}}, used exactly like the C library.
    1715
    1816The following documentation applies to the {{(magic)}} module.
     
    2422One procedure is provided, {{identify}}, that tries to do what you mean.
    2523
    26 Whenever libmagic returns an error, an exception of type {{(exn magic)}}
    27 is raised.
     24Whenever libmagic returns an error, an exception of type {{(exn magic)}} is raised.
    2825
    29 Note that the {{magic}} module loads libmagic's magic numbers database
    30 as soon as it's {{require}}d (a.k.a. {{use}}d). If you're not OK with
    31 this, use the low-level module.
     26Note that the {{magic}} module loads libmagic's magic numbers database as soon as it's loaded. If you're not OK with this, use the low-level module.
    3227
    3328<procedure>(identify [object [flags]]) => string</procedure>
    3429
    35 {{identify}} returns a textual description of the file indicated by
    36 {{object}}, or the contents of {{(current-input-port)}} if no {{object}}
    37 is specified.
     30{{identify}} returns a textual description of the file indicated by {{object}}, or the contents of {{(current-input-port)}} if no {{object}} is specified.
    3831
    39 If {{object}} is given, it may be any of the following object types,
    40 with {{identify}} returning a description of:
     32If {{object}} is given, it may be any of the following object types, with {{identify}} returning a description of:
    4133
    4234* {{blob}}: the contents of the blob.
    4335* {{string}}: the contents of the file indicated by the given filename.
    4436* {{integer}}: the contents of that file descriptor.
    45 * {{input-port}}: the contents of the given port. This port must be
    46   backed by a file descriptor; if not, an error of type {{(exn type)}}
    47   will be raised.
     37* {{input-port}}: the contents of the given port. This port must be backed by a file descriptor; if not, an error of type {{(exn type)}} will be raised.
    4838
    49 If {{flags}} is given, it must be a symbol or list of symbols indicating
    50 the type of description to return. These correspond to the {{MAGIC_*}}
    51 constants in {{libmagic.h}}, and can be any combination of the following
    52 (though not all combinations make sense):
     39If {{flags}} is given, it must be a symbol or list of symbols indicating the type of description to return. These correspond to the {{MAGIC_*}} constants in {{libmagic.h}}, and can be any combination of the following (though not all combinations make sense):
    5340
    5441* {{apple}}
  • wiki/users/evan-hanson

    r33401 r36445  
    33== Evan Hanson
    44
    5 I'm a Schemer currently living in NZ, and one of CHICKEN's
    6 [[/maintainers|maintainers]].
     5I'm a Schemer currently living in NZ, and one of CHICKEN's [[/maintainers|maintainers]].
    76
    8 You can usually contact me as
    9 [[ircs://irc.freenode.net:6697/evhan,isnick|evhan]] in
    10 [[ircs://irc.freenode.net:6697/chicken|#chicken]].
     7You can usually contact me as [[ircs://irc.freenode.net:6697/evhan,isnick|evhan]] in [[ircs://irc.freenode.net:6697/chicken|#chicken]].
    118
    129* [[http://foldling.org/|Homepage]]
     
    2320* [[/eggref/4/git|git]]
    2421* [[/eggref/4/glfw|glfw]]
     22* [[/eggref/4/isaac|isaac]]
    2523* [[/eggref/4/magic|magic]]
    2624* [[/eggref/4/module-declarations|module-declarations]]
     
    3331* [[/eggref/4/type-extensions|type-extensions]]
    3432* [[/eggref/4/with-current-directory|with-current-directory]]
    35 * [[/eggref/4/wodehaus|wodehaus]]
    3633* [[/eggref/4/yahoo-finance|yahoo-finance]]
    3734
     
    5451=== Other
    5552
    56 I maintain a
    57 [[http://bitbucket.org/evhan/heroku-buildpack-chicken|buildpack]] for
    58 running CHICKEN applications on Heroku.
     53I maintain a [[http://bitbucket.org/evhan/heroku-buildpack-chicken|buildpack]] for running CHICKEN applications on Heroku.
Note: See TracChangeset for help on using the changeset viewer.