Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 723830890bac44da3d113209b14e090b > files > 336

sbcl-1.0.31-1mdv2010.0.i586.rpm

<html lang="en">
<head>
<title>Filenames - SBCL 1.0.31 User Manual</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="SBCL 1.0.31 User Manual">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Types.html#Types" title="Types">
<link rel="prev" href="File_002ddescriptors.html#File_002ddescriptors" title="File-descriptors">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--

     This manual is part of the SBCL software system. See the `README'
     file for more information.

     This manual is largely derived from the manual for the CMUCL
     system, which was produced at Carnegie Mellon University and later
     released into the public domain. This manual is in the public
     domain and is provided with absolutely no warranty. See the
     `COPYING' and `CREDITS' files for more information.
   -->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
  span.sc    { font-variant:small-caps }
  span.roman { font-family:serif; font-weight:normal; } 
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
--></style>
</head>
<body>
<div class="node">
<a name="Filenames"></a>
<p>
Previous:&nbsp;<a rel="previous" accesskey="p" href="File_002ddescriptors.html#File_002ddescriptors">File-descriptors</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Types.html#Types">Types</a>
<hr>
</div>

<h5 class="subsubsection">16.3.2.2 Filenames</h5>

<p><a name="Type-sb_002dposix_003afilename"></a>

<div class="defun">
&mdash; Type: <b>sb-posix:filename</b><var><a name="index-sb_002dposix_003afilename-624"></a></var><br>
<blockquote><p><a name="index-sb_002dposix_003afilename-625"></a>A <code>string</code> designating a filename in native namestring syntax.

        <p>Note that native namestring syntax is distinct from Lisp namestring syntax:

     <pre class="lisp">            (pathname "/foo*/bar")
</pre>
        <p>is a wild pathname with a pattern-matching directory component. 
<code>sb-ext:parse-native-namestring</code> may be used to construct Lisp pathnames that
denote <code>posix</code> filenames as understood by system calls, and
<code>sb-ext:native-namestring</code> can be used to coerce them into strings in the native
namestring syntax.

        <p>Note also that <code>posix</code> filename syntax does not distinguish the names of files
from the names of directories: in order to parse the name of a directory in
<code>posix</code> filename syntax into a pathname <code>my-defaults</code> for which

     <pre class="lisp">            (merge-pathnames (make-pathname :name "FOO" :case :common)
                              my-defaults)
</pre>
        <p>returns a pathname that denotes a file in the directory, supply a true
<code>:as-directory</code> argument to <code>sb-ext:parse-native-namestring</code>. Likewise, to supply
the name of a directory to a <code>posix</code> function in non-directory syntax, supply a
true <code>:as-file</code> argument to <code>sb-ext:native-namestring</code>. 
</p></blockquote></div>

   <p><a name="Type-sb_002dposix_003afilename_002ddesignator"></a>

<div class="defun">
&mdash; Type: <b>sb-posix:filename-designator</b><var><a name="index-sb_002dposix_003afilename_002ddesignator-626"></a></var><br>
<blockquote><p><a name="index-sb_002dposix_003afilename_002ddesignator-627"></a>Designator for a <code>filename:</code> a <code>string</code> designating itself, or a
designator for a <code>pathname</code> designating the corresponding native namestring. 
</p></blockquote></div>

   <p><a name="Function-sb_002dposix_003afilename"></a>

<div class="defun">
&mdash; Function: <b>sb-posix:filename</b><var> filename<a name="index-sb_002dposix_003afilename-628"></a></var><br>
<blockquote><p><a name="index-sb_002dposix_003afilename-629"></a>Converts <code>filename-designator</code> into a <code>filename</code>. 
</p></blockquote></div>

   </body></html>