firasuke / cross / slibtool

Forked from cross/slibtool 3 months ago
Clone

Blame src/output/slbt_output_machine.c

e0e31f
/*******************************************************************/
eac61a
/*  slibtool: a strong libtool implementation, written in C        */
49181b
/*  Copyright (C) 2016--2024  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
}