cc_int32 ccs_os_pipe_valid (ccs_pipe_t in_pipe);
+cc_int32 ccs_os_pipe_copy (ccs_pipe_t *out_pipe,
+ ccs_pipe_t in_pipe);
+
+cc_int32 ccs_os_pipe_release (ccs_pipe_t io_pipe);
#endif /* CCS_OS_PIPE_H */
{
return ccs_os_pipe_valid (in_pipe);
}
+
+/* ------------------------------------------------------------------------ */
+
+cc_int32 ccs_pipe_copy (ccs_pipe_t *out_pipe,
+ ccs_pipe_t in_pipe)
+{
+ return ccs_os_pipe_copy (out_pipe, in_pipe);
+}
+
+/* ------------------------------------------------------------------------ */
+
+cc_int32 ccs_pipe_release (ccs_pipe_t io_pipe)
+{
+ return ccs_os_pipe_release (io_pipe);
+}
cc_int32 ccs_pipe_valid (ccs_pipe_t in_pipe);
+cc_int32 ccs_pipe_copy (ccs_pipe_t *out_pipe,
+ ccs_pipe_t in_pipe);
+
+cc_int32 ccs_pipe_release (ccs_pipe_t io_pipe);
+
#endif /* CCS_PIPE_H */
return MACH_PORT_VALID (in_pipe);
}
+/* ------------------------------------------------------------------------ */
+
+cc_int32 ccs_os_pipe_copy (ccs_pipe_t *out_pipe,
+ ccs_pipe_t in_pipe)
+{
+ cc_int32 err = 0;
+
+ *out_pipe = in_pipe;
+
+ return cci_check_error (err);
+}
+
+/* ------------------------------------------------------------------------ */
+
+cc_int32 ccs_os_pipe_release (ccs_pipe_t io_pipe)
+{
+ cc_int32 err = 0;
+
+ /* Nothing to do here on Mac OS X */
+
+ return cci_check_error (err);
+}
+