summaryrefslogtreecommitdiff
path: root/src/output/slbt_output_machine.c
blob: ab95837b9ff20a0185ad80ee22c79c532c567fd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*******************************************************************/
/*  slibtool: a skinny libtool implementation, written in C        */
/*  Copyright (C) 2016--2021  SysDeer Technologies, LLC            */
/*  Released under the Standard MIT License; see COPYING.SLIBTOOL. */
/*******************************************************************/

#include <slibtool/slibtool.h>
#include "slibtool_driver_impl.h"
#include "slibtool_dprintf_impl.h"
#include "slibtool_errinfo_impl.h"

int slbt_output_machine(const struct slbt_driver_ctx * dctx)
{
	const struct slbt_common_ctx *	cctx;
	int				fdout;

	cctx     = dctx->cctx;
	fdout    = slbt_driver_fdout(dctx);

	if (slbt_dprintf(fdout,"%s\n",cctx->host.host) < 0)
		return SLBT_SYSTEM_ERROR(dctx,0);

	return 0;
}