Re: tmpfs

2013-04-09 Thread Janne Johansson
2013/3/27 Pedro Martelletto > Hi, > > I have ported NetBSD's tmpfs to OpenBSD. The port should be functional > on i386 and amd64. I haven't tested on other architectures. There are > limitations: update of mount options is not supported and the number of > nodes in a tmpfs file system is limited

Re: strcasecmp and multibyte encodings

2013-04-09 Thread Matthew Dempsky
On Tue, Apr 9, 2013 at 11:10 AM, Stefan Sperling wrote: >> + size_t lus1 = strlen(us1); >> + size_t lus2 = strlen(us2); These strlen() calls are also wrong, because they could read past the n bytes allowed for strncasecmp(). > It seems strncasecmp() cannot return errors a

Re: strcasecmp and multibyte encodings

2013-04-09 Thread Stefan Sperling
On Tue, Apr 09, 2013 at 12:25:23PM -0500, Vladimir Támara Patiño wrote: > Although the behavior of strcasecmp is unsepecified for multibyte > encodings (Is that right?) > http://pubs.opengroup.org/onlinepubs/9699919799/ > > I wish the attached test (encoded in UTF-8) would pass, > so I'm also atta

strcasecmp and multibyte encodings

2013-04-09 Thread Vladimir Támara Patiño
Although the behavior of strcasecmp is unsepecified for multibyte encodings (Is that right?) http://pubs.opengroup.org/onlinepubs/9699919799/ I wish the attached test (encoded in UTF-8) would pass, so I'm also attaching a patch for strcasecmp and strncasecmp that makes this test pass, it uses

Re: pppd-invoked scripts to run as root or not?

2013-04-09 Thread Jason McIntyre
On Tue, Apr 09, 2013 at 10:06:42AM +0100, Stuart Henderson wrote: > Anyone? > > We need to do something because the manual is currently wrong. > ok! jmc > > On 2013/03/28 15:27, Stuart Henderson wrote: > > On 2013/03/23 19:37, patrick keshishian wrote: > > > On Sat, Mar 23, 2013 at 5:15 PM, Cr

Re: tmpfs

2013-04-09 Thread Pedro Martelletto
I have ported NetBSD's tmpfs to OpenBSD. The port should be functional on i386 and amd64. I haven't tested on other architectures. There are limitations: update of mount options is not supported and the number of nodes in a tmpfs file system is limited by the number of anonymous UVM objects we can

Re: external ip/tcp (sysctl) variables

2013-04-09 Thread Martin Pieuchot
On 08/04/13(Mon) 18:38, Philip Guenther wrote: > On Mon, Apr 8, 2013 at 6:30 AM, Martin Pieuchot > wrote: > > Diff below remove various external variable declaration from sources > > files and move them to the corresponding header with an appropriate > > comment if necessary. > > > > ok? > > I l

Re: Stolen memory

2013-04-09 Thread Vijay Sankar
Quoting Vijay Sankar : Quoting Mark Kettenis : Machines with Intel integrated graphics have this concept of stolen memory; system memory set aside by the BIOS for use by the graphics chip. On OpenBSD we don't touch that memory since we don't want to step on the BIOS' toes. We also assume tha

Re: pppd-invoked scripts to run as root or not?

2013-04-09 Thread Stuart Henderson
Anyone? We need to do something because the manual is currently wrong. On 2013/03/28 15:27, Stuart Henderson wrote: > On 2013/03/23 19:37, patrick keshishian wrote: > > On Sat, Mar 23, 2013 at 5:15 PM, Creamy wrote: > > > From the pppd man page: > > > > > > 1163:.Sh SCRIPTS > > > 1164-.Nm > > >