예제 #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
int main() {
    return rpc_test();
}