Re: [NEW] Driver for the Araneus Alea II USB TRNG

2015-04-13 Thread attila
Hi tech@, Ping? attila att...@stalphonsos.com writes: Hi tech@, I've written a driver for the Araneus Alea II USB TRNG: http://www.araneus.fi/products/alea2/en/ It produces 100kbit/sec of entropy, which my driver stuffs into add_true_randomness(). A small thing, but maybe valuable

[PATCH] Man pages: usbd_open_pipe(9), usbd_close_pipe(9)

2015-05-02 Thread attila
). Comments, feedback most welcome. Pax, -A P.S. I f'ing love mandoc. Just sayin... -- att...@stalphonsos.com | http://trac.haqistan.net/~attila keyid E6CC1EDB | 4D91 1B98 A210 1D71 2A0E AC29 9677 D0A6 E6CC 1EDB Index: Makefile

Re: [NEW] Driver for the Araneus Alea II USB TRNG

2015-04-15 Thread attila
Martin Pieuchot m...@openbsd.org writes: On 14/04/15(Tue) 15:22, attila wrote: Martin Pieuchot m...@openbsd.org writes: static const struct usb_devno ualea_devs[] = { { USB_VENDOR_ARANEUS, USB_PRODUCT_ARANEUS_ALEA } }; Is it possible to match your device based on the content

Re: [NEW] Driver for the Araneus Alea II USB TRNG

2015-04-16 Thread attila
Martin Pieuchot m...@openbsd.org writes: On 15/04/15(Wed) 10:46, attila wrote: Martin Pieuchot m...@openbsd.org writes: On 14/04/15(Tue) 15:22, attila wrote: Martin Pieuchot m...@openbsd.org writes: static const struct usb_devno ualea_devs[] = { { USB_VENDOR_ARANEUS

Re: [NEW] Driver for the Araneus Alea II USB TRNG

2015-04-14 Thread attila
Martin Pieuchot m...@openbsd.org writes: On 14/04/15(Tue) 07:40, attila wrote: [...] Feedback most welcome. See below. /* -*- mode:c; tab-width:8; indent-tabs-mode:t; c-basic-offset:8 -*- */ We do not include editor settings in files, the first line should contain: /*$OpenBSD

Re: [NEW] Driver for the Araneus Alea II USB TRNG

2015-04-14 Thread attila
; indent-tabs-mode:t; c-basic-offset:8 -*- */ /* * Copyright (c) 2006 Alexander Yurchenko gra...@openbsd.org * Copyright (c) 2007 Marc Balmer mbal...@openbsd.org * Copyright (C) 2015 attila att...@stalphonsos.com * * Permission to use, copy, modify, and distribute this software for any

[NEW] Driver for the Araneus Alea II USB TRNG

2015-04-10 Thread attila
; indent-tabs-mode:t; c-basic-offset:8 -*- */ +/* + * Copyright (C) 2015 by attila att...@stalphonsos.com + * + * Permission to use, copy, modify, and/or distribute this software + * for any purpose with or without fee is hereby granted, provided + * that the above copyright notice and this permission

[PATCH] pkg-config compare() fails for libevent (at least)

2015-08-11 Thread attila
Hello tech@, On the 6 Aug snap I ran into this issue: $ pkg_info | grep libevent libevent-2.0.22 event notification library $ pkg-config --atleast-version=2.0.1 libevent echo yes Argument 22-stabl isn't numeric in numeric eq (==) at /usr/bin/pkg-config line 662. yes So it works

Re: [PATCH] pkg-config compare() fails for libevent (at least)

2015-08-13 Thread attila
Jasper Lievisse Adriaanse jas...@openbsd.org writes: On Tue, Aug 11, 2015 at 01:20:24PM -0500, attila wrote: Hello tech@, On the 6 Aug snap I ran into this issue: $ pkg_info | grep libevent libevent-2.0.22 event notification library $ pkg-config --atleast-version=2.0.1

Re: [PATCH] pkg-config compare() fails for libevent (at least)

2015-08-14 Thread attila
Jasper Lievisse Adriaanse jas...@openbsd.org writes: On Thu, Aug 13, 2015 at 04:09:02PM -0500, attila wrote: Jasper Lievisse Adriaanse jas...@openbsd.org writes: On Tue, Aug 11, 2015 at 01:20:24PM -0500, attila wrote: Hello tech@, On the 6 Aug snap I ran into this issue

Re: [PATCH] pkg-config compare() fails for libevent (at least)

2015-08-14 Thread attila
attila att...@stalphonsos.com writes: Jasper Lievisse Adriaanse jas...@openbsd.org writes: On Thu, Aug 13, 2015 at 04:09:02PM -0500, attila wrote: Jasper Lievisse Adriaanse jas...@openbsd.org writes: On Tue, Aug 11, 2015 at 01:20:24PM -0500, attila wrote: Hello tech@, On the 6

[patch] Add percentage done to fsck_ffs SIGINFO output

2016-05-25 Thread attila
that fsck took long enough to sneak a ^T in there). Pax, -A -- http://haqistan.net/~attila | att...@stalphonsos.com | 0x62A729CF Index: pass1.c === RCS file: /cvs/src/sbin/fsck_ffs/pass1.c,v retrieving revision 1.43 diff -u -p -r1.43

Re: [patch] Add percentage done to fsck_ffs SIGINFO output

2016-05-25 Thread attila
attila <att...@stalphonsos.com> writes: > Hi tech@, > > The subject says it all. I find myself doing this in my head as I hit > ^T when fsck'ing. FreeBSD has this, NetBSD does not, FWIW... > Whoops, that's wrong. NetBSD does have it, it looks like FreeBSD i

[patch] netcat: don't call report_connect() when family == AF_UNIX

2016-05-28 Thread attila
patch fixes the issue: $ tail -10f /var/log/messages | \ /usr/obj/usr.bin/nc/nc -vkU -l ~/.xlog_socket Connection on /home/attila/.xlog_socket received! Feedback, comments most welcome. Pax, -A -- http://haqistan.net/~attila | att...@stalphonsos.com | 0x62A729CF Index: netcat.c

Re: [patch] netcat: don't call report_connect() when family == AF_UNIX

2016-05-28 Thread attila
; $ tail -10f /var/log/messages | nc -vkU -l ~/.xlog_socket >> nc: getnameinfo: Invalid argument >> >> The attached patch fixes the issue: >> >> $ tail -10f /var/log/messages | \ >> /usr/obj/usr.bin/nc/nc -vkU -l ~/.xlog_socket >> Connection

Re: [patch] netcat: don't call report_connect() when family == AF_UNIX

2016-05-28 Thread attila
; $ tail -10f /var/log/messages | nc -vkU -l ~/.xlog_socket >> nc: getnameinfo: Invalid argument >> >> The attached patch fixes the issue: >> >> $ tail -10f /var/log/messages | \ >> /usr/obj/usr.bin/nc/nc -vkU -l ~/.xlog_socket >> Connection

Re: Scheduler hack for multi-threaded processes

2016-03-26 Thread attila
r, this patch is > an absolute must. > > Let's not start a flame war here, just throwing in my five cents. "Flame war" has added meaning in my case :-). > Kudos to Martin. > > -j. I appreciate all the great work as always. OpenBSD rules... and yes, I need a new

jot(1) bugs, test suite

2016-07-25 Thread attila
://haqistan.net/~attila | att...@stalphonsos.com | 0x62A729CF ? 3test.sh Index: Makefile === RCS file: Makefile diff -N Makefile --- /dev/null 1 Jan 1970 00:00:00 - +++ Makefile 22 Jul 2016 21:15:38 - @@ -0,0 +1,11 @@ +# $OpenBSD$ + +JOT

[PATCH] mv -P

2018-04-28 Thread attila
and should just be dealt with using a shell alias, but to me this feels cleaner. Feedback most welcome as always. Pax, -A -- https://haqistan.net/~attila | attila@{stalphonsos.com,haqistan.net} pgp: 0x62A729CF | C2CE 2487 03AC 4C2F 101D 09C1 4068 D5D5 62A7 29CF diff --git a/bin/mv/mv.1 b/bin/mv/

Re: [PATCH] mv -P

2018-05-05 Thread attila
Theo de Raadt <dera...@openbsd.org> wrote: > >"Theo de Raadt" <dera...@openbsd.org> wrote: > >> attila <att...@stalphonsos.com> wrote: > >> > Hi tech@, > >> > > >> > I frequently want to move a file from one plac

Re: [PATCH] mv -P

2018-04-29 Thread attila
"Theo de Raadt" <dera...@openbsd.org> wrote: > attila <att...@stalphonsos.com> wrote: > > Hi tech@, > > > > I frequently want to move a file from one place to another and shred > > the original via the rm(1) -P option. On several occasions I have