⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 iolib.html

📁 vxworks相关论文
💻 HTML
📖 第 1 页 / 共 3 页
字号:
    char * pathname /* where to return the name */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine copies the name of the current default path to <i>pathname</i>.The parameter <i>pathname</i> should be <b>MAX_FILENAME_LENGTH</b> characters long.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ioLib.html#top">ioLib</a></b>, <b><i><a href="./ioLib.html#ioDefPathSet">ioDefPathSet</a></i>(&nbsp;)</b>, <b><i><a href="./ioLib.html#chdir">chdir</a></i>(&nbsp;)</b>, <b><i><a href="./ioLib.html#getcwd">getcwd</a></i>(&nbsp;)</b><hr><a name="chdir"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>chdir</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>chdir</i>(&nbsp;)</strong> - set the current default path</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS chdir    (    char * pathname /* name of the new default path */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine sets the default I/O path.  All relative pathnames specifiedto the I/O system will be prepended with this pathname.  This pathnamemust be an absolute pathname, i.e., <i>name</i> must begin with an existingdevice name.<p></blockquote><h4>RETURNS</h4><blockquote><p><p>OK, or ERROR if the first component of the pathname is not an existing device.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ioLib.html#top">ioLib</a></b>, <b><i><a href="./ioLib.html#ioDefPathSet">ioDefPathSet</a></i>(&nbsp;)</b>, <b><i><a href="./ioLib.html#ioDefPathGet">ioDefPathGet</a></i>(&nbsp;)</b>, <b><i><a href="./ioLib.html#getcwd">getcwd</a></i>(&nbsp;)</b><hr><a name="getcwd"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>getcwd</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>getcwd</i>(&nbsp;)</strong> - get the current default path (POSIX)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>char *getcwd    (    char * buffer, /* where to return the pathname */    int    size    /* size in bytes of buffer */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine copies the name of the current default path to <i>buffer</i>.It provides the same functionality as <b><i><a href="./ioLib.html#ioDefPathGet">ioDefPathGet</a></i>(&nbsp;)</b> andis provided for POSIX compatibility.<p></blockquote><h4>RETURNS</h4><blockquote><p><p>A pointer to the supplied buffer, or NULL if <i>size</i> is too small to holdthe current default path.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ioLib.html#top">ioLib</a></b>, <b><i><a href="./ioLib.html#ioDefPathSet">ioDefPathSet</a></i>(&nbsp;)</b>, <b><i><a href="./ioLib.html#ioDefPathGet">ioDefPathGet</a></i>(&nbsp;)</b>, <b><i><a href="./ioLib.html#chdir">chdir</a></i>(&nbsp;)</b><hr><a name="getwd"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>getwd</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>getwd</i>(&nbsp;)</strong> - get the current default path</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>char *getwd    (    char * pathname /* where to return the pathname */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine copies the name of the current default path to <i>pathname</i>.It provides the same functionality as <b><i><a href="./ioLib.html#ioDefPathGet">ioDefPathGet</a></i>(&nbsp;)</b> and <b><i><a href="./ioLib.html#getcwd">getcwd</a></i>(&nbsp;)</b>.It is provided for compatibility with some older UNIX systems.<p>The parameter <i>pathname</i> should be <b>MAX_FILENAME_LENGTH</b> characters long.<p></blockquote><h4>RETURNS</h4><blockquote><p>A pointer to the resulting path name.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ioLib.html#top">ioLib</a></b><hr><a name="ioGlobalStdSet"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>ioGlobalStdSet</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>ioGlobalStdSet</i>(&nbsp;)</strong> - set the file descriptor for global standard input/output/error</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void ioGlobalStdSet    (    int stdFd, /* std input (0), output (1), or error (2) */    int newFd  /* new underlying file descriptor */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine changes the assignment of a specified global standard filedescriptor <i>stdFd</i> (0, 1, or, 2) to the specified underlying filedescriptor <i>newFd</i>.  <i>newFd</i> should be a file descriptor open to thedesired device or file.  All tasks will use this new assignment when doingI/O to <i>stdFd</i>, unless they have specified a task-specific standard filedescriptor (see <b><i><a href="./ioLib.html#ioTaskStdSet">ioTaskStdSet</a></i>(&nbsp;)</b>).  If <i>stdFd</i> is not 0, 1, or 2, thisroutine has no effect.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ioLib.html#top">ioLib</a></b>, <b><i><a href="./ioLib.html#ioGlobalStdGet">ioGlobalStdGet</a></i>(&nbsp;)</b>, <b><i><a href="./ioLib.html#ioTaskStdSet">ioTaskStdSet</a></i>(&nbsp;)</b><hr><a name="ioGlobalStdGet"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>ioGlobalStdGet</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>ioGlobalStdGet</i>(&nbsp;)</strong> - get the file descriptor for global standard input/output/error</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int ioGlobalStdGet    (    int stdFd /* std input (0), output (1), or error (2) */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine returns the current underlying file descriptor for global standard input, output, and error.<p></blockquote><h4>RETURNS</h4><blockquote><p><p>The underlying global file descriptor, or ERROR if <i>stdFd</i> is not 0, 1, or 2.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ioLib.html#top">ioLib</a></b>, <b><i><a href="./ioLib.html#ioGlobalStdSet">ioGlobalStdSet</a></i>(&nbsp;)</b>, <b><i><a href="./ioLib.html#ioTaskStdGet">ioTaskStdGet</a></i>(&nbsp;)</b><hr><a name="ioTaskStdSet"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>ioTaskStdSet</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>ioTaskStdSet</i>(&nbsp;)</strong> - set the file descriptor for task standard input/output/error</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void ioTaskStdSet    (    int taskId, /* task whose std fd is to be set (0 = self) */    int stdFd,  /* std input (0), output (1), or error (2) */    int newFd   /* new underlying file descriptor */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine changes the assignment of a specified task-specific standardfile descriptor <i>stdFd</i> (0, 1, or, 2) to the specified underlying filedescriptor<i>newFd</i>.  <i>newFd</i> should be a file descriptor open to thedesired device or file.  The calling task will use this new assignmentwhen doing I/O to <i>stdFd</i>, instead of the system-wide global assignmentwhich is used by default.  If <i>stdFd</i> is not 0, 1, or 2, this routine hasno effect.<p></blockquote><h4>NOTE</h4><blockquote><p>This routine has no effect if it is called at interrupt level.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ioLib.html#top">ioLib</a></b>, <b><i><a href="./ioLib.html#ioGlobalStdGet">ioGlobalStdGet</a></i>(&nbsp;)</b>, <b><i><a href="./ioLib.html#ioTaskStdGet">ioTaskStdGet</a></i>(&nbsp;)</b><hr><a name="ioTaskStdGet"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>ioTaskStdGet</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>ioTaskStdGet</i>(&nbsp;)</strong> - get the file descriptor for task standard input/output/error</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int ioTaskStdGet    (    int taskId, /* ID of desired task (0 = self) */    int stdFd   /* std input (0), output (1), or error (2) */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine returns the current underlying file descriptor for task-specificstandard input, output, and error.<p></blockquote><h4>RETURNS</h4><blockquote><p><p>The underlying file descriptor, or ERROR if <i>stdFd</i> is not 0, 1, or 2, orthe routine is called at interrupt level.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ioLib.html#top">ioLib</a></b>, <b><i><a href="./ioLib.html#ioGlobalStdGet">ioGlobalStdGet</a></i>(&nbsp;)</b>, <b><i><a href="./ioLib.html#ioTaskStdSet">ioTaskStdSet</a></i>(&nbsp;)</b><hr><a name="isatty"></a><p align=right><a href="rtnIndex.html"><i>Libraries :  Routines</i></a></p></blockquote><h1><i>isatty</i>(&nbsp;)</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote>  <p><strong><i>isatty</i>(&nbsp;)</strong> - return whether the underlying driver is a tty device</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>BOOL isatty    (    int fd /* file descriptor to check */    )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine simply invokes the <b><i><a href="./ioLib.html#ioctl">ioctl</a></i>(&nbsp;)</b> function FIOISATTY on thespecified file descriptor.<p></blockquote><h4>RETURNS</h4><blockquote><p>TRUE, or FALSE if the driver does not indicate a tty device.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./ioLib.html#top">ioLib</a></b></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -