From e0e31fbb6cf0f9b1feec89893747dd4df30cebf6 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 10 Jun 2021 07:48:03 +0000 Subject: output: added slbt_output_machine(). --- src/output/slbt_output_machine.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/output/slbt_output_machine.c (limited to 'src') diff --git a/src/output/slbt_output_machine.c b/src/output/slbt_output_machine.c new file mode 100644 index 0000000..800142e --- /dev/null +++ b/src/output/slbt_output_machine.c @@ -0,0 +1,24 @@ +/*******************************************************************/ +/* slibtool: a skinny libtool implementation, written in C */ +/* Copyright (C) 2016--2021 Z. Gilboa */ +/* Released under the Standard MIT License; see COPYING.SLIBTOOL. */ +/*******************************************************************/ + +#include +#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; +} -- cgit v1.2.3