1 << 31 and related bugs

2013-11-23 Thread Eitan Adler
Hi, I noticed a few cases in OpenBSD where the expression (1 << 31) is used. However this produces undefined behavior as '1' is of type int. (see 6.4.4p5: The type of an unmarked integer constant is the first of the following list in which its value can be represented: int, long int, long long i

Re: Weird loop in ftp client

2013-11-23 Thread Theo de Raadt
> On 2013/11/23 14:39, sven falempin wrote: > > Hello, > > > > Another point of vue : > > Because curl is in base, what does ftp client add to the system ? > > ftp(1) is not without problems (bad ssl support, semi-broken proxy > support, difficult code) but it has one major advantage: the small >

Re: Weird loop in ftp client

2013-11-23 Thread Stuart Henderson
On 2013/11/23 14:39, sven falempin wrote: > Hello, > > Another point of vue : > Because curl is in base, what does ftp client add to the system ? ftp(1) is not without problems (bad ssl support, semi-broken proxy support, difficult code) but it has one major advantage: the small version used on r

Re: [patch] start adding support for compcert compiler

2013-11-23 Thread Arnaud Bergeron
Wouldn't it be better to check for __STDC_VERSION__ >= 199901L rather than a list of compilers? (I don't have a source tree close by which is why I don't have a patch.) 2013/11/23 Daniel Dickman > I'm trying to port compcert to openbsd. Here's a first patch to allow > jot to be compiled with co

Re: Weird loop in ftp client

2013-11-23 Thread Alexander Hall
On 11/23/13 20:39, sven falempin wrote: Hello, Another point of vue : Because curl is in base, what does ftp client add to the system ? 1. It's not. 2. Interactivity. /Alexander

Re: Weird loop in ftp client

2013-11-23 Thread Alexey E. Suslikov
sven falempin gmail.com> writes: > > Hello, > > Another point of vue : > Because curl is in base, what does ftp client add to the system ? pkg_delete curl and you'll understand.

Re: Weird loop in ftp client

2013-11-23 Thread sven falempin
Hello, Another point of vue : Because curl is in base, what does ftp client add to the system ? Cheers :-) On Sat, Nov 23, 2013 at 5:40 AM, Otto Moerbeek wrote: > On Fri, Nov 22, 2013 at 10:04:02PM +0100, Maxime Villard wrote: > > > Le 22/11/2013 17:48, Ted Unangst a ??crit : > > > On Fri,

Re: Weird loop in ftp client

2013-11-23 Thread Otto Moerbeek
On Fri, Nov 22, 2013 at 10:04:02PM +0100, Maxime Villard wrote: > Le 22/11/2013 17:48, Ted Unangst a ??crit : > > On Fri, Nov 22, 2013 at 10:09, Stuart Henderson wrote: > >> On 2013/11/22 07:25, Maxime Villard wrote: > > > >>> If write() fails without EPIPE, d is decremented, and the function > >