Re: Need help with mach_printf()

2019-03-08 Thread Samuel Thibault
Svante Signell, le ven. 08 mars 2019 11:55:34 +0100, a ecrit: > On Fri, 2019-03-08 at 11:45 +0100, Samuel Thibault wrote: > > Perhaps you rather have to use > > > > settrans -cap /dev/null /usr/bin/env > > LD_LIBRARY_PATH=/home/srs/hurd.debs/0.9.git20190303-1.3/libfshelp-tests/libs > > /hurd/null

Re: Need help with mach_printf()

2019-03-08 Thread Svante Signell
On Fri, 2019-03-08 at 11:45 +0100, Samuel Thibault wrote: > Perhaps you rather have to use > > settrans -cap /dev/null /usr/bin/env > LD_LIBRARY_PATH=/home/srs/hurd.debs/0.9.git20190303-1.3/libfshelp-tests/libs > /hurd/null Using the /usr/bin/env trick seems to work. Maybe the example by Thomas

Re: Need help with mach_printf()

2019-03-08 Thread Samuel Thibault
Svante Signell, le ven. 08 mars 2019 11:42:19 +0100, a ecrit: > On Fri, 2019-03-08 at 11:39 +0100, Svante Signell wrote: > > On Fri, 2019-03-08 at 11:28 +0100, Samuel Thibault wrote: > > > Use mach_print for a start, to avoid any potential problem with vsnprintf > > > etc. > > > > > > Svante Signe

Re: Need help with mach_printf()

2019-03-08 Thread Svante Signell
On Fri, 2019-03-08 at 11:42 +0100, Svante Signell wrote: > On Fri, 2019-03-08 at 11:39 +0100, Svante Signell wrote: > > On Fri, 2019-03-08 at 11:28 +0100, Samuel Thibault wrote: > > > Use mach_print for a start, to avoid any potential problem with vsnprintf > > > etc. > > > > > > Svante Signell, l

Re: Need help with mach_printf()

2019-03-08 Thread Svante Signell
On Fri, 2019-03-08 at 11:39 +0100, Svante Signell wrote: > On Fri, 2019-03-08 at 11:28 +0100, Samuel Thibault wrote: > > Use mach_print for a start, to avoid any potential problem with vsnprintf > > etc. > > > > Svante Signell, le ven. 08 mars 2019 11:16:32 +0100, a ecrit: > > > (cd libs; ln -s li

Re: Need help with mach_printf()

2019-03-08 Thread Svante Signell
On Fri, 2019-03-08 at 11:28 +0100, Samuel Thibault wrote: > Use mach_print for a start, to avoid any potential problem with vsnprintf etc. > > Svante Signell, le ven. 08 mars 2019 11:16:32 +0100, a ecrit: > > (cd libs; ln -s libtrivfs.so.0.3 libtrivfs.so.0) > > export LD_LIBRARY_PATH=./libs > > ld

Re: Need help with mach_printf()

2019-03-08 Thread Samuel Thibault
Use mach_print for a start, to avoid any potential problem with vsnprintf etc. Svante Signell, le ven. 08 mars 2019 11:16:32 +0100, a ecrit: > (cd libs; ln -s libtrivfs.so.0.3 libtrivfs.so.0) > export LD_LIBRARY_PATH=./libs > ldd /hurd/null > libtrivfs.so.0.3 => ./libs/libtrivfs.so.0.3 (0x

Need help with mach_printf()

2019-03-08 Thread Svante Signell
Hi, As written on bug-hurd IRC. Attached is the relevant code. Thanks! /* Copyright (C) 1994, 2002, 2015-2019 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the F