コード例 #1
0
ファイル: misc.c プロジェクト: 7shi/minix-tools
/*===========================================================================*
 *				hgfs_enabled				     *
 *===========================================================================*/
PUBLIC int hgfs_enabled()
{
/* Check if shared folders are enabled. Return OK if so, EAGAIN if not, and
 * another negative error code on error.
 */

  return rpc_test();
}
コード例 #2
0
ファイル: rpc.c プロジェクト: Hooman3/minix
/*===========================================================================*
 *				rpc_open				     *
 *===========================================================================*/
int rpc_open(void)
{
/* Open a HGFS RPC backdoor channel to the VMware host, and make sure that it
 * is working. Return OK upon success, or a negative error code otherwise; in
 * particular, return EAGAIN if shared folders are disabled.
 */
  int r;

  if ((r = channel_open(&rpc_chan, CH_OUT)) != OK)
	return r;

  r = rpc_test();

  if (r != OK)
	channel_close(&rpc_chan);

  return r;
}
コード例 #3
0
ファイル: simple.cpp プロジェクト: pdxjohnny/cpp-rpc
int main() {
    return rpc_test();
}