logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

isastream.3p (2166B)


  1. '\" et
  2. .TH ISASTREAM "3P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. isastream
  12. \(em test a file descriptor (\fBSTREAMS\fP)
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <stropts.h>
  17. .P
  18. int isastream(int \fIfildes\fP);
  19. .fi
  20. .SH DESCRIPTION
  21. The
  22. \fIisastream\fR()
  23. function shall test whether
  24. .IR fildes ,
  25. an open file descriptor, is associated with a STREAMS-based file.
  26. .SH "RETURN VALUE"
  27. Upon successful completion,
  28. \fIisastream\fR()
  29. shall return 1 if
  30. .IR fildes
  31. refers to a STREAMS-based file and 0 if not. Otherwise,
  32. \fIisastream\fR()
  33. shall return \-1 and set
  34. .IR errno
  35. to indicate the error.
  36. .SH ERRORS
  37. The
  38. \fIisastream\fR()
  39. function shall fail if:
  40. .TP
  41. .BR EBADF
  42. The
  43. .IR fildes
  44. argument is not a valid open file descriptor.
  45. .LP
  46. .IR "The following sections are informative."
  47. .SH EXAMPLES
  48. None.
  49. .SH "APPLICATION USAGE"
  50. None.
  51. .SH RATIONALE
  52. None.
  53. .SH "FUTURE DIRECTIONS"
  54. The
  55. \fIisastream\fR()
  56. function may be removed in a future version.
  57. .SH "SEE ALSO"
  58. The Base Definitions volume of POSIX.1\(hy2017,
  59. .IR "\fB<stropts.h>\fP"
  60. .\"
  61. .SH COPYRIGHT
  62. Portions of this text are reprinted and reproduced in electronic form
  63. from IEEE Std 1003.1-2017, Standard for Information Technology
  64. -- Portable Operating System Interface (POSIX), The Open Group Base
  65. Specifications Issue 7, 2018 Edition,
  66. Copyright (C) 2018 by the Institute of
  67. Electrical and Electronics Engineers, Inc and The Open Group.
  68. In the event of any discrepancy between this version and the original IEEE and
  69. The Open Group Standard, the original IEEE and The Open Group Standard
  70. is the referee document. The original Standard can be obtained online at
  71. http://www.opengroup.org/unix/online.html .
  72. .PP
  73. Any typographical or formatting errors that appear
  74. in this page are most likely
  75. to have been introduced during the conversion of the source files to
  76. man page format. To report such errors, see
  77. https://www.kernel.org/doc/man-pages/reporting_bugs.html .