/* ---------------------------------------------------------------------- */

#define ns__aproc0 "::aproc"
static void c__aproc0(Tcl_Channel x)
{

}

static int
tcl__aproc0(ClientData cd, Tcl_Interp *interp, Tcl_Size oc, Tcl_Obj *CONST ov[])
{
  Tcl_Channel _x;

  critcl_trace_cmd_args (ns__aproc0, oc, ov);

  if (oc != 2) {
    Tcl_WrongNumArgs(interp, 1, ov, "x");
    return critcl_trace_cmd_result (TCL_ERROR, interp);
  }

  /* (unshared-channel x) - - -- --- ----- -------- */
	{
	int mode;
	_x = Tcl_GetChannel(interp, Tcl_GetString (ov[1]), &mode);
	if (_x == NULL) return critcl_trace_cmd_result (TCL_ERROR, interp);
	if (Tcl_IsChannelShared (_x)) {
	    Tcl_SetObjResult(interp, Tcl_NewStringObj("channel is shared", -1));
	    return critcl_trace_cmd_result (TCL_ERROR, interp);
	} }

  /* Call - - -- --- ----- -------- */
  c__aproc0(_x);

  /* (void return) - - -- --- ----- -------- */
	return critcl_trace_cmd_result (TCL_OK, interp);
}
