Re: More than 16 partitions

2020-04-23 Thread Jordan Geoghegan
On 2020-04-23 11:45, zeurk...@volny.cz wrote: "Jan Betlach" wrote: For a non-native English speaker like myself, it is very difficult to read your mestuff... Your point is well-taken (though this is just the way mespeaks); yet, Theo is a native speaker, and he seems to have completely

Re: More than 16 partitions

2020-04-23 Thread Chris Bennett
On Thu, Apr 23, 2020 at 10:29:01PM +0200, Francois Pussault wrote: > I agree ; Using more than 10 partitions is rare but in case of NFS or other > network shares of course. > 16 is really enough in my point of view. > I've got to disgree with this one. I'm doing porting work. I yank out all of

_types.h: increase size of size_t

2020-04-23 Thread Ian Sutton
Following the revalations made by a misc@ poster, I am happy to present the following patch which increases the width of size_t from "long" to "long long", which is twice the width as before, on all platforms. This has the effect of doubling the amount of available memory regardless of the

Re: MIdnight Commander won't run

2020-04-23 Thread Jay Hart
Here is the output... Script started on Thu Apr 23 19:37:38 2020 ld.so loading: 'mc' exe load offset: 0x18c5 flags mc = 0x0 head mc obj mc has mc as head examining: 'mc' loading: libintl.so.6.0 required by mc flags /usr/local/lib/libintl.so.6.0 = 0x0 obj /usr/local/lib/libintl.so.6.0 has

Re: Comments in source code

2020-04-23 Thread Chris Bennett
On Thu, Apr 23, 2020 at 05:38:40PM -0400, Aisha Tammy wrote: > Thanks a lot for responding, I've had some food so am feeling a lot less > frustrated :D > > > On 4/23/20 12:10 PM, Stuart Henderson wrote: > > > > It's often considered better if code is clear enough to stand by itself, > > keeping

Re: More than 16 partitions

2020-04-23 Thread tom ryan
On 2020-04-24 04:45, zeurk...@volny.cz wrote: > Your point is well-taken (though this is just the way mespeaks); yet, > Theo is a native speaker No-one is a native speaker of this made up crap, mecraps

Re: Useful cwm patch [was: When will be created a great desktop experience for OpenBSD?]

2020-04-23 Thread Walter Alejandro Iglesias
In article <20200415193758.csp3wtf4hnhdc...@gmx.com> Dumitru Moldovan wrote: > On Tue, Oct 29, 2019 at 10:43:26AM +0100, Walter Alejandro Iglesias wrote: > >This second one is still pending (no response from the maintainer so > >far): > > > > https://marc.info/?l=openbsd-tech=155931484124288=2

rc daemon_timeout

2020-04-23 Thread Thomas de Grivel
Hello, I have some trouble starting up a daemon on OpenBSD 6.6 stable using rc : in /etc/rc.d/my_daemon : > #!/bin/ksh > > daemon="/home/my-user/start" > daemon_user=my-user > daemon_timeout=600 > > . /etc/rc.d/rc.subr > > echo "daemon_timeout ${daemon_timeout}" > rc_cmd $1 Then I run the

Re: rc daemon_timeout

2020-04-23 Thread Thomas de Grivel
Le jeu. 23 avr. 2020 à 13:57, Antoine Jacoutot a écrit : > > On Thu, Apr 23, 2020 at 12:18:40PM +0100, Raf Czlonka wrote: > > On Thu, Apr 23, 2020 at 12:00:59PM BST, Thomas de Grivel wrote: > > > Hello, > > > > > > I have some trouble starting up a daemon on OpenBSD 6.6 stable using rc : > > > >

Re: rc daemon_timeout

2020-04-23 Thread Raf Czlonka
On Thu, Apr 23, 2020 at 12:00:59PM BST, Thomas de Grivel wrote: > Hello, > > I have some trouble starting up a daemon on OpenBSD 6.6 stable using rc : > > in /etc/rc.d/my_daemon : > > > #!/bin/ksh > > > > daemon="/home/my-user/start" > > daemon_user=my-user > > daemon_timeout=600 > > > > .

Re: rc daemon_timeout

2020-04-23 Thread Antoine Jacoutot
On Thu, Apr 23, 2020 at 12:18:40PM +0100, Raf Czlonka wrote: > On Thu, Apr 23, 2020 at 12:00:59PM BST, Thomas de Grivel wrote: > > Hello, > > > > I have some trouble starting up a daemon on OpenBSD 6.6 stable using rc : > > > > in /etc/rc.d/my_daemon : > > > > > #!/bin/ksh > > > > > >

Re: unveil confusion

2020-04-23 Thread Peter J. Philipp
On Thu, Apr 23, 2020 at 11:20:45AM +0200, Hiltjo Posthuma wrote: > > beta$ ps ax | grep unveiltest > > 40907 pg S+U 0:00.01 ./unveiltest > > 40013 ph R+/2 0:00.00 grep unveiltest > Hi, > > Below the quoted part it says in the man page: > > "After establishing a collection of

Re: rc daemon_timeout

2020-04-23 Thread Thomas de Grivel
I tried changing the following line in /etc/rc.d/rc.subr but the actual timeout remains 30 sec (from 'time'). > [ -z "${daemon_timeout}" ] && daemon_timeout=600 Le jeu. 23 avr. 2020 à 14:28, Thomas de Grivel a écrit : > > Le jeu. 23 avr. 2020 à 13:57, Antoine Jacoutot a > écrit : > > > > On

unveil confusion

2020-04-23 Thread Peter J. Philipp
Hi, >From the unveil manpage: The first call to unveil() removes visibility of the entire filesystem from all other filesystem-related system calls (such as open(2), chmod(2) and rename(2)), except for the specified path and permissions. Can the first call also be the last? I

Re: MIdnight Commander won't run

2020-04-23 Thread Raf Czlonka
On Thu, Apr 23, 2020 at 04:42:34AM BST, Aaron Mason wrote: > On Wed, Apr 22, 2020 at 11:17 AM Jay Hart wrote: > > > > Upgraded my router from 6.5 to 6.6. Followed the upgrade guide and > > installed most, not all, of > > the file sets. I did not install the games set or several of the X sets.

Re: WLAN throughput less 10Mb/s

2020-04-23 Thread Anatoli
How do the same drivers work in Linux? Can't "we" "just" "copy" the code from there? Or does the GPL licensing absolutely prevents from analyzing Linux code and using their implementation details? Two years ago FreeBSD started implementing AC stack [1]. Maybe there could be a collaborative

Re: MIdnight Commander won't run

2020-04-23 Thread Stuart Henderson
On 2020-04-23, Aaron Mason wrote: > On Wed, Apr 22, 2020 at 11:17 AM Jay Hart wrote: >> >> Upgraded my router from 6.5 to 6.6. Followed the upgrade guide and >> installed most, not all, of >> the file sets. I did not install the games set or several of the X sets. >> >> I ran pkg_add -u and

Re: WLAN throughput less 10Mb/s

2020-04-23 Thread Stefan Sperling
On Thu, Apr 23, 2020 at 02:52:09AM -0300, Anatoli wrote: > How do the same drivers work in Linux? Can't "we" "just" "copy" the code > from there? That's already what we are doing. But porting (what you call "just copying") code is a lot of work, too. This stuff needs a lot of attention to detail

Re: unveil confusion

2020-04-23 Thread Hiltjo Posthuma
On Thu, Apr 23, 2020 at 09:33:51AM +0200, Peter J. Philipp wrote: > Hi, > > From the unveil manpage: > > The first call to unveil() removes visibility of the entire filesystem > from all other filesystem-related system calls (such as open(2), chmod(2) > and rename(2)), except for

Re: OT: Qualcomm MDM

2020-04-23 Thread Stuart Henderson
On 2020-04-22, tru...@tutanota.com wrote: > hello list, > > digging the net [1] reveales MSM standing for "Mobile system/soc Modem" > and MDM standing for "Mobile Data Modem". > > "Qualcomm MSM" is being explicitly mentined at ucom(4) and usb(4), no > mention of "Qualcomm MDM" neither at manuals

connect(2) on unix domain sockets

2020-04-23 Thread Vitaliy Makkoveev
The code below fails connect(2) with errno set to ECONNREFUSED. The [1] says: “If the connection cannot be established immediately and O_NONBLOCK is not set for the file descriptor for the socket, connect() shall block for up to an unspecified timeout interval until the connection is

Re: flashrom on APU2

2020-04-23 Thread Christer Solskogen
On Thu, Apr 23, 2020 at 3:04 PM Jan Stary wrote: > > Eventually, flashrom aborts with > > Manufacturer: PC Engines > Mainboard ID: apu2 > This coreboot image (PC Engines:apu2) does not appear to > be correct for the detected mainboard (PC Engines:PCEngines apu2). > Aborting. You can

Re: flashrom on APU2

2020-04-23 Thread Jan Stary
On Apr 23 15:38:48, mcmer-open...@tor.at wrote: > just asking because you did not mention: you are running single user, > right? No, I set securelevel to -1 for the duration of this. > I documented an firmware upgrade on 2020-03-04, for an APU2: > first I tried "flashrom -p internal -w

Re: Comments in source code

2020-04-23 Thread Stuart Henderson
On 2020-04-23, Aisha Tammy wrote: > Hey devs and all, > I'm kind of new to OpenBSD, only working on ports so far so take > what I say with chill. > I've been reading the source code in GIT and felt a real lack of comments > explaining what the code is doing. Is this something encouraged in

RE: More than 16 partitions

2020-04-23 Thread zeurkous
Haai, theo wrote: > Groot wrote: > >> I've tried and failed to create more than 16 >> partitions on OpenBSD. First of all I don't >> understand the difference between the operations >> performed by fdisk and disklabel. Is it that >> OpenBSD sees partitions differently? First we >> create an

Re: MIdnight Commander won't run

2020-04-23 Thread Jay Hart
Stuart, I'm working on capturing the output. I think I see why you say it needs to run in a script. Thanks for the help! Jay > On 2020-04-23, Raf Czlonka wrote: >> Would this by any chance be related to the fact that pcre has been >> removed from WANTLIB[0][1] but the package still pulls in

Re: More than 16 partitions

2020-04-23 Thread Theo de Raadt
Groot wrote: > I've tried and failed to create more than 16 > partitions on OpenBSD. First of all I don't > understand the difference between the operations > performed by fdisk and disklabel. Is it that > OpenBSD sees partitions differently? First we > create an OpenBSD partition with fdisk

Re: booting from a SD card on APU2: ERR R

2020-04-23 Thread Jan Stary
On Apr 23 17:51:42, h...@stare.cz wrote: > After the flash, I removed the USB stick > and the APU booted from the SD card > - only to panic later when the SD card "disappeared"; > it was not even offered on the next boot, nor was it > seen at the next USB boot to be reinstalled on. > > So I

Re: booting from a SD card on APU2: ERR R

2020-04-23 Thread Jan Stary
On Apr 22 22:27:47, les...@leslie.is wrote: > Jan Stary wrote: > > bios0: vendor coreboot version "4.0.7" date 02/28/2017 > This firmware is very old. https://pcengines.github.io/ On Apr 22 23:02:40, quand...@gmail.com wrote: > Try upgrading your bios https://pcengines.github.io/ either a

RE: More than 16 partitions

2020-04-23 Thread zeurkous
"Groot" wrote: > I've tried and failed to create more than 16 > partitions on OpenBSD. First of all I don't > understand the difference between the operations > performed by fdisk and disklabel. Is it that > OpenBSD sees partitions differently? First we > create an OpenBSD partition with fdisk

Re: More than 16 partitions

2020-04-23 Thread Theo de Raadt
That is a rewriting of history. The disklabel format predates the PC. It came from the the ancient attempt to handle things in CSRG's 4.3reno/4.4 work on the hp300. It was probably a rewrite of the native HPUX disk format. This was then put on all the other architectures, as a unified view of

Re: flashrom on APU2

2020-04-23 Thread Marcus MERIGHI
Hello Jan, just asking because you did not mention: you are running single user, right? I documented an firmware upgrade on 2020-03-04, for an APU2: first I tried "flashrom -p internal -w apu2.rom", then I noted "needs boardmismatch=force", which i then used. That machine is still running,

Re: MIdnight Commander won't run

2020-04-23 Thread Stuart Henderson
On 2020-04-23, Raf Czlonka wrote: > Would this by any chance be related to the fact that pcre has been > removed from WANTLIB[0][1] but the package still pulls in libpcre? > > $ ldd /usr/local/bin/mc | grep pcre > 1b530c236000 1b530c27c000 rlib 01 0 >

Re: Using a C310 Logitech webcam mic with internal speakers

2020-04-23 Thread Alexandre Ratchov
On Wed, Apr 22, 2020 at 02:17:35PM +, Jon Fineman wrote: > > Is there a way to set the mic to one channel and the speakers to > another? Or merge the speakers from channel rsnd/0 and rsnd/1 > together and have them output on rsnd/0? Sorry, two devices can't be combined into a single one on

Re: Using a C310 Logitech webcam mic with internal speakers

2020-04-23 Thread Jon Fineman
On 2020-04-23 08:40, Alexandre Ratchov wrote: On Wed, Apr 22, 2020 at 02:17:35PM +, Jon Fineman wrote: Is there a way to set the mic to one channel and the speakers to another? Or merge the speakers from channel rsnd/0 and rsnd/1 together and have them output on rsnd/0? Sorry, two

Re: flashrom on APU2

2020-04-23 Thread Stuart Henderson
On 2020-04-23, Jan Stary wrote: > Eventually, flashrom aborts with > > Manufacturer: PC Engines > Mainboard ID: apu2 > This coreboot image (PC Engines:apu2) does not appear to > be correct for the detected mainboard (PC Engines:PCEngines apu2). > Aborting. You can override this with -p

Re: rc daemon_timeout

2020-04-23 Thread Antoine Jacoutot
On Thu, Apr 23, 2020 at 02:34:20PM +0200, Thomas de Grivel wrote: > I tried changing the following line in /etc/rc.d/rc.subr but the > actual timeout remains 30 sec (from 'time'). > > [ -z "${daemon_timeout}" ] && daemon_timeout=600 rm /var/run/rc.d/my_daemon -- Antoine

flashrom on APU2

2020-04-23 Thread Jan Stary
I am flashing my APU2's firmware on current/amd64, using the flashrom port; script and dmesg below. I would like to make sure about a few nits before going ahead. Probe first: # flashrom -p internal flashrom v1.1 on OpenBSD 6.7 (amd64) flashrom is free software, get the source code at

Re: Using a C310 Logitech webcam mic with internal speakers

2020-04-23 Thread Alexandre Ratchov
On Thu, Apr 23, 2020 at 10:01:52AM -0400, Jon Fineman wrote: > On 2020-04-23 08:40, Alexandre Ratchov wrote: > > On Wed, Apr 22, 2020 at 02:17:35PM +, Jon Fineman wrote: > > > > > > Is there a way to set the mic to one channel and the speakers to > > > another? Or merge the speakers from

Comments in source code

2020-04-23 Thread Aisha Tammy
Hey devs and all, I'm kind of new to OpenBSD, only working on ports so far so take what I say with chill. I've been reading the source code in GIT and felt a real lack of comments explaining what the code is doing. Is this something encouraged in obsd? I would really like to have something more

Re: More than 16 partitions

2020-04-23 Thread Theo de Raadt
You need to stop making this mailing list just about you. STFU. wrote: > "Martin Schröder" wrote: > > Am Do., 23. Apr. 2020 um 21:31 Uhr schrieb : > >> No problem. Would it be too crude a suggestion that we go back to the > >> content now...? > > > > You didn't provide any patch. > > That

Re: More than 16 partitions

2020-04-23 Thread Allan Streib
> So, can I setup openBSD labels on x86_64 without legacy/GPT partition first ? IIRC yes you can, as long as you don't need to boot from that disk. Allan

Re: More than 16 partitions

2020-04-23 Thread Martin Schröder
Am Do., 23. Apr. 2020 um 21:31 Uhr schrieb : > No problem. Would it be too crude a suggestion that we go back to the > content now...? You didn't provide any patch.

RE: More than 16 partitions

2020-04-23 Thread zeurkous
"Martin Schröder" wrote: > Am Do., 23. Apr. 2020 um 21:31 Uhr schrieb : >> No problem. Would it be too crude a suggestion that we go back to the >> content now...? > > You didn't provide any patch. That is entirely correct. --zeurkous. -- Friggin' Machines!

Re: More than 16 partitions

2020-04-23 Thread Strahil Nikolov
On April 23, 2020 10:46:44 PM GMT+03:00, Theo de Raadt wrote: >You need to stop making this mailing list just about you. > >STFU. > > > wrote: > >> "Martin Schröder" wrote: >> > Am Do., 23. Apr. 2020 um 21:31 Uhr schrieb : >> >> No problem. Would it be too crude a suggestion that we go back to

Re: More than 16 partitions

2020-04-23 Thread Theo de Raadt
You made it all up. wrote: > theo wrote: > > That is a rewriting of history. > > It's history the way meknows it. Mecertainly predates some of it. > > > The disklabel format predates the PC. > > Indeed. Mewasn't sure where and when exactly it appeared, so meleft that > bit out. But medid

RE: More than 16 partitions

2020-04-23 Thread zeurkous
"Jan Betlach" wrote: > For a non-native English speaker like myself, it is very difficult to > read your mestuff... Your point is well-taken (though this is just the way mespeaks); yet, Theo is a native speaker, and he seems to have completely missed the content of merecent responses. Weird,

RE: More than 16 partitions

2020-04-23 Thread zeurkous
theo wrote: > That is a rewriting of history. It's history the way meknows it. Mecertainly predates some of it. > The disklabel format predates the PC. Indeed. Mewasn't sure where and when exactly it appeared, so meleft that bit out. But medid know it was older, and metried to communicate that

RE: More than 16 partitions

2020-04-23 Thread zeurkous
theo wrote: > You made it all up. That's an easy accusation, with an easy response: No, medid not make any of it up. --zeurkous. -- Friggin' Machines!

Re: More than 16 partitions

2020-04-23 Thread Christian Groessler
On 4/23/20 7:57 PM, zeurk...@volny.cz wrote: theo wrote: You made it all up. That's an easy accusation, with an easy response: No, medid not make any of it up Could you refrain from using your idiotic "me.."-words? Thanks

RE: More than 16 partitions

2020-04-23 Thread zeurkous
"Christian Groessler" wrote: > On 4/23/20 7:57 PM, zeurk...@volny.cz wrote: > >> theo wrote: >>> You made it all up. >> That's an easy accusation, with an easy response: No, medid not make any >> of it up > > > Could you refrain from using your idiotic "me.."-words? Fine, me'll try and keep the

Re: relayd + httpd + Django/Rails?

2020-04-23 Thread Joe Ansbach
Now I feel dumb. Didn't need relayd at all - just the "fastcgi" option inside a httpd server block. Jesus christ. Sent with ProtonMail Secure Email. ‐‐‐ Original Message ‐‐‐ On Thursday 23. April 2020 kl. 04:17, Joe Ansbach wrote: > Hi, > > I got this VPS here where I'm hosting a

Re: More than 16 partitions

2020-04-23 Thread Ian Darwin
On Thu, Apr 23, 2020 at 04:42:53PM -0400, Allan Streib wrote: > > So, can I setup openBSD labels on x86_64 without legacy/GPT partition > > first ? > > IIRC yes you can, as long as you don't need to boot from that disk. Easily confirmed (a few false starts deleted from this transcript): $

Re: More than 16 partitions

2020-04-23 Thread Eric Furman
On Thu, Apr 23, 2020, at 4:16 PM, Strahil Nikolov wrote: > So, can I setup openBSD labels on x86_64 without legacy/GPT partition > first ? > And who the hell needs more than 16 partitions ? Why not we just port > ZFS from FreeBSD, or LVM from Linux and get over it ? > > P.S.: The last one

Re: timegm()

2020-04-23 Thread Theo de Raadt
Todd C. Miller wrote: > On Wed, 22 Apr 2020 21:21:28 -0600, "Todd C. Miller" wrote: > > > That's fine with me. Those interfaces appeared in SunOS 4.0 according > > to tzcode (which is where we got them from). They did *not* originate > > in NetBSD. I've verified that they were present in

Re: More than 16 partitions

2020-04-23 Thread Francois Pussault
> > From: Strahil Nikolov > Sent: Thu Apr 23 22:16:41 CEST 2020 > To: , Theo de Raadt , > > Cc: Martin Schröder > Subject: Re: More than 16 partitions > > > On April 23, 2020 10:46:44 PM GMT+03:00, Theo de Raadt > wrote: > >You need to stop

Re: Comments in source code

2020-04-23 Thread Eric Furman
On Thu, Apr 23, 2020, at 5:38 PM, Aisha Tammy wrote: > > If you aren't already, you should be looking at commit messages from > > where the relevant code was touched. That is often where you'll find the > > explanations you seek. > > > I have been reading them, Commit messages don't explain

Re: More than 16 partitions

2020-04-23 Thread Jan Betlach
For a non-native English speaker like myself, it is very difficult to read your mestuff… Jan On 23 Apr 2020, at 19:47, zeurk...@volny.cz wrote: theo wrote: That is a rewriting of history. It's history the way meknows it. Mecertainly predates some of it. The disklabel format

Re: timegm()

2020-04-23 Thread Todd C . Miller
On Wed, 22 Apr 2020 21:21:28 -0600, "Todd C. Miller" wrote: > That's fine with me. Those interfaces appeared in SunOS 4.0 according > to tzcode (which is where we got them from). They did *not* originate > in NetBSD. I've verified that they were present in SunOS 4.1.3U1, > though that code

Re: More than 16 partitions

2020-04-23 Thread Erling Westenvik
On Thu, Apr 23, 2020 at 08:14:25PM +0200, Jan Betlach wrote: > For a non-native English speaker like myself, it is very difficult to read > your mestuff… One may practice by reading Gollum/Smeagol-passages..

Re: Comments in source code

2020-04-23 Thread Aisha Tammy
Thanks a lot for responding, I've had some food so am feeling a lot less frustrated :D > On 4/23/20 12:10 PM, Stuart Henderson wrote: > > It's often considered better if code is clear enough to stand by itself, > keeping comments for the less common cases which can't be figured out > from