Blame src/output/slbt_output_machine.c

e0e31f
/*******************************************************************/
e0e31f
/*  slibtool: a skinny libtool implementation, written in C        */
bb281c
/*  Copyright (C) 2016--2021  SysDeer Technologies, LLC            */
e0e31f
/*  Released under the Standard MIT License; see COPYING.SLIBTOOL. */
e0e31f
/*******************************************************************/
e0e31f
e0e31f
#include <slibtool/slibtool.h>
e0e31f
#include "slibtool_driver_impl.h"
e0e31f
#include "slibtool_dprintf_impl.h"
e0e31f
#include "slibtool_errinfo_impl.h"
e0e31f
e0e31f
int slbt_output_machine(const struct slbt_driver_ctx * dctx)
e0e31f
{
e0e31f
	const struct slbt_common_ctx *	cctx;
e0e31f
	int				fdout;
e0e31f
e0e31f
	cctx     = dctx->cctx;
e0e31f
	fdout    = slbt_driver_fdout(dctx);
e0e31f
e0e31f
	if (slbt_dprintf(fdout,"%s\n",cctx->host.host) < 0)
e0e31f
		return SLBT_SYSTEM_ERROR(dctx,0);
e0e31f
e0e31f
	return 0;
e0e31f
}