abstract the "is multi-threaded?" test in kernel

2013-12-13 Thread Philip Guenther
Testing whether a process is (currently) done by checking whether the process's thread list has a single item. This is currently done in just two places, but I expect to need this in more places, so let's abstract that into an inline function. Philip Guenther Index: sys/proc.h ==

Re: diff for passing -b to spamd-setup when running spamd in blacklist only mode

2013-12-13 Thread Alexander Hall
On 12/13/13 22:32, Maurice Janssen wrote: Hi, After some discussion on misc@ (see http://comments.gmane.org/gmane.os.openbsd.misc/209233 ) I came up with the patch below. Right now, spamd-setup is started with -D in /etc/rc. However, when running spamd in blacklist only mode, I think it's bette

diff for passing -b to spamd-setup when running spamd in blacklist only mode

2013-12-13 Thread Maurice Janssen
Hi, After some discussion on misc@ (see http://comments.gmane.org/gmane.os.openbsd.misc/209233 ) I came up with the patch below. Right now, spamd-setup is started with -D in /etc/rc. However, when running spamd in blacklist only mode, I think it's better to start spamd-setup also with -b. Otherw

Re: Make OpenCVS compile again

2013-12-13 Thread Vadim Zhukov
2013/12/13 Jérémie Courrèges-Anglas : > Vadim Zhukov writes: > >>> Vadim Zhukov writes: >>> >>> > This patch addresses two problems: >>> > >>> > 1) Usage of getdirentries() - seriously. >>> > 2) 64-bit-time_t fix. >>> >>> time_t should be printed with %ll? plus a (long long) cast. Now, >>> I don

Re: Small getdirentries() cleanup

2013-12-13 Thread Philip Guenther
On Fri, Dec 13, 2013 at 4:21 AM, Vadim Zhukov wrote: > This cleans up a bit after getdirentries(2) removal. The first hunk > makes it clear that getdirentries() is gone instead of losing your > hair at the linking time (found while trying to compile opencvs). > The second hunk just moves a comment

Re: Make OpenCVS compile again

2013-12-13 Thread Jérémie Courrèges-Anglas
Vadim Zhukov writes: >> Vadim Zhukov writes: >> >> > This patch addresses two problems: >> > >> > 1) Usage of getdirentries() - seriously. >> > 2) 64-bit-time_t fix. >> >> time_t should be printed with %ll? plus a (long long) cast. Now, >> I don't see any (long long) cast in the whole OpenCVS

Re: Make OpenCVS compile again

2013-12-13 Thread Vadim Zhukov
> Vadim Zhukov writes: > > > This patch addresses two problems: > > > > 1) Usage of getdirentries() - seriously. > > 2) 64-bit-time_t fix. > > time_t should be printed with %ll? plus a (long long) cast. Now, > I don't see any (long long) cast in the whole OpenCVS code, and GNU > cvs uses %08lx

Re: Make OpenCVS compile again

2013-12-13 Thread Jérémie Courrèges-Anglas
Vadim Zhukov writes: > This patch addresses two problems: > > 1) Usage of getdirentries() - seriously. > 2) 64-bit-time_t fix. time_t should be printed with %ll? plus a (long long) cast. Now, I don't see any (long long) cast in the whole OpenCVS code, and GNU cvs uses %08lx and (long) to print

Make OpenCVS compile again

2013-12-13 Thread Vadim Zhukov
This patch addresses two problems: 1) Usage of getdirentries() - seriously. 2) 64-bit-time_t fix. Of course, this could be zapped as well, but I plan to dig this code at some point after getting KDE 4.12 working... -- zhuk@ Index: file.c =

Small getdirentries() cleanup

2013-12-13 Thread Vadim Zhukov
This cleans up a bit after getdirentries(2) removal. The first hunk makes it clear that getdirentries() is gone instead of losing your hair at the linking time (found while trying to compile opencvs). The second hunk just moves a comment in 2013. okay? -- zhuk@ Index: include/dirent.h ==

Re: [Donation] Processor Freescale P2020 / TL-WDR4900 / Turrir router

2013-12-13 Thread Jiri B
> I would like to send TL-WDR4900[1] hardware to a dev for hacking, it's > based on Freescale P2020 processor[2] and it should be supported by > OpenWRT. > > Also .cz registrar is developing its own hardware[3] based on > Freescale P2020 and one of its policy should be no NDA. Basically it > shoul

Re: [Donation] Processor Freescale P2020 / TL-WDR4900 / Turrir router

2013-12-13 Thread Janne Johansson
Seems like a decent way to sniff peoples traffic. 8-/ Not that I have extra reasons to mistrust these people, but still... (in the default usage way where you promise to put it on your network for 3 years) 2013/12/13 Jiri B > Hi, > > I would like to send TL-WDR4900[1] hardware to a dev for h

[Donation] Processor Freescale P2020 / TL-WDR4900 / Turrir router

2013-12-13 Thread Jiri B
Hi, I would like to send TL-WDR4900[1] hardware to a dev for hacking, it's based on Freescale P2020 processor[2] and it should be supported by OpenWRT. Also .cz registrar is developing its own hardware[3] based on Freescale P2020 and one of its policy should be no NDA. Basically it should be simi