Re: -mdoc: how to handle surrounding types?

2024-02-09 Thread Rhialto
no AI. There's just someone else's work. Stop calling generative text and image programs AI. It's inaccurate and insulting. They are just the evolution of corporate creative theft that's been going on as long as media corporations have existed. -Olaf. -- ___ Olaf &

Re: -mdoc: how to handle surrounding types?

2024-02-09 Thread Rhialto
to have any obvious way to describe function return > types that aren't textually entirely before the function name, that is, > which don't fit the textual paradigm $RETURNTYPE $FUNCTIONNAME($ARGS). With this rephrasing it should fit better. -Olaf. -- ___ Olaf 'Rhialto' Se

Re: [patch] cat -n bug from 33 years ago

2023-11-18 Thread Rhialto
> reproducer: If you want to have continuing (non-restarting) numbering for multiple input files, one could use "cat file1 file2 | cat -n". -Olaf. -- ___ Olaf 'Rhialto' Seibert \X/ There is no AI. There is just someone else's work.

Re: lseek on tty

2023-09-19 Thread Rhialto
tional APIs for the Base Specifications Issue 8, Part 1 & 2". -Olaf. -- ___ Olaf 'Rhialto' Seibert \X/ There is no AI. There is just someone else's work. --I. Rose signature.asc Description: PGP signature

Re: system(3) semantics when SIGCHLD is SIG_IGN'd

2023-08-13 Thread Rhialto
ystem.html and it seems entirely silent on the matter. How does this mean that system(3) is allowed to fail in this situation? Since the state is not mentioned as a special case, I expect that it is supposed to work. -Olaf. -- ___ Olaf 'Rhialto' Seibert \X/

Re: system(3) semantics when SIGCHLD is SIG_IGN'd

2023-08-12 Thread Rhialto
are any), would this have unexpected other effects? - Does POSIX say something somewhere that blocks this way out? I didn't research those questions yet. -Olaf. -- ___ Olaf 'Rhialto' Seibert \X/ There is no AI. There is just someone else's work. --I. Rose signature.asc Description: PGP signature

Re: [RFC] inetd(8) changes proposal

2023-06-02 Thread Rhialto
er. But never use errno values as an > exit parameter. There is which defines "Exit status codes for system programs." EX_DATAERR could be appropriate for an invalid config file. -Olaf. -- ___ Olaf 'Rhialto' Seibert \X/ There is no AI. T

Re: sh(1) and ksh(1) default PATH

2022-08-14 Thread Rhialto
on -Olaf. -- ___ "Buying carbon credits is a bit like a serial killer paying someone else to \X/ have kids to make his activity cost neutral." -The BOFHfalu.nl@rhialto signature.asc Description: PGP signature

Re: sh: killing a pipe head from the tail

2021-12-11 Thread Rhialto
credits is a bit like a serial killer paying someone else to \X/ have kids to make his activity cost neutral." -The BOFHfalu.nl@rhialto signature.asc Description: PGP signature

Re: possible bug in fseek of buffered files shared between processes (example uses stdin)

2021-11-02 Thread Rhialto
; equally on Linux, MacOS and NetBSD: $ printf "1\n2\n3\n" | ( head -1; head -1; cat ) 1 $ -Olaf. -- ___ "Buying carbon credits is a bit like a serial killer paying someone else to \X/ have kids to make his activity cost neutral." -The BOFHfalu.nl@rhialto signature.asc Description: PGP signature

Re: Q about pthread condition variable usage - mixing interlocks

2021-04-08 Thread Rhialto
d by mutex. The pthread_cond_timedwait() function behaves -Olaf. -- ___ Q: "What's an anagram of Banach-Tarski?" -- Olaf "Rhialto" Seibert \X/ A: "Banach-Tarski Banach-Tarski." -- rhialto at falu dot nl signature.asc Description: PGP signature

Re: long double losing mantissa bits

2021-01-20 Thread Rhialto
it a bit right again. Final result is at https://gitlab.com/Rhialto/macro11/-/blob/master/parse.c#L386. -Olaf. -- Olaf 'Rhialto' Seibert -- rhialto at falu dot nl ___ Anyone who is capable of getting themselves made President should on \X/ no account be allowed to do the job.

long double losing mantissa bits

2021-01-19 Thread Rhialto
assembler, in particular the part where a 64 bit PDP-11 floating point number is constructed. These have 1 sign bit, 8 exponent bit, and 55 (56) mantissa bits (if you count the implict 1 at the start). See https://gitlab.com/Rhialto/macro11/-/blob/issue-5-floating-point-literals/parse.c#L380 I

Re: Proposal to remove catman(8)

2020-11-09 Thread Rhialto
dn't always work. -Olaf. -- Olaf 'Rhialto' Seibert -- rhialto at falu dot nl ___ Anyone who is capable of getting themselves made President should on \X/ no account be allowed to do the job. --Douglas Adams, "THGTTG" signature.asc Description: PGP signature

Re: style change: explicitly permit braces for single statements

2020-07-16 Thread Rhialto
gt; have this for code editors? I have seen an editor (I think it was google's Android development environment) that even went so far as to recognize some particular boilerplate Java code fragments, and abbreviated them. You could unfold them if you wanted though. I wasn't sure if I

Re: style change: explicitly permit braces for single statements

2020-07-13 Thread Rhialto
if's test to the enclosing if's, I can go either way on whether I'd > prefer braces or no braces around the inner if. I agree with the proposal at the start of the thread and I also agree with this. I guess that some languages have a special 'elif' or 'elseif'

Re: Weekday abbreviations in output of cal(1)

2020-06-29 Thread Rhialto
On Mon 29 Jun 2020 at 11:49:03 -0700, Tom Spindler (moof) wrote: > What do the non-en languages do? In Dutch one often sees ma di wo do vr za zo. -Olaf. -- Olaf 'Rhialto' Seibert -- rhialto at falu dot nl ___ Anyone who is capable of getting themselves made President should on \X

Re: Solving the syslogd problem

2020-02-23 Thread Rhialto
fsck-times of /. I don't want the ever-changing /usr/pkg on there. I suppose that if I'll ever be forced to have /usr on /, I'd separate out /usr/pkg. -Olaf. -- Olaf 'Rhialto' Seibert -- rhialto at falu dot nl ___ Anyone who is capable of getting themselves made

Re: colorls in base

2019-02-23 Thread Rhialto
or light background, it adjusts its colour scheme. See :help 'bg' -Olaf. -- ___ Olaf 'Rhialto' Seibert -- "What good is a Ring of Power \X/ rhialto/at/falu.nl -- if you're unable...to Speak." - Agent Elrond signature.asc Description: PGP signature

Re: fflush(NULL) and mem streams (fmemopen(), open_*memstream())

2019-01-12 Thread Rhialto
o look at the resulting memory buffer, so fflush() is probably called more often. That makes this a weak argument as well. > If there are any arguments, one way or the other, I would be happy > to pass them along. I think my reasoning above goes in the direction that fflush(NULL) *should* also

Re: deleting telnet/telnetd

2018-12-20 Thread Rhialto
eparetely. Trying to build putty-0.70 on NetBSD 8, it fails: gmake[1]: Entering directory '/home/rhialto/tmp/putty-0.70' depbase=`echo unix/uxpgnt.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ gcc -DHAVE_CONFIG_H -I. -I././ -I./charset/ -I./windows/ -I./unix/ -I/usr/pkg/i

Re: Moving telnet/telnetd from base to pkgsrc

2018-12-19 Thread Rhialto
e the same thing (telnet> mode ? suggests that) -Olaf. -- ___ Olaf 'Rhialto' Seibert -- "What good is a Ring of Power \X/ rhialto/at/falu.nl -- if you're unable...to Speak." - Agent Elrond signature.asc Description: PGP signature

Re: X=1 : (was Re: /bin/sh redirect without command failure mode)

2018-11-25 Thread Rhialto
This is an interesting unexpected case: X=/ cd $X cd's to $HOME, not to / ... This really violates the POLA, I'd say... -Olaf. -- ___ Olaf 'Rhialto' Seibert -- "What good is a Ring of Power \X/ rhialto/at/falu.nl -- if you're unable...to Speak.&q

Re: /bin/sh redirect without command failure mode

2018-11-25 Thread Rhialto
ve shells. from http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_01 -Olaf. -- ___ Olaf 'Rhialto' Seibert -- "What good is a Ring of Power \X/ rhialto/at/falu.nl -- if you're unable...to Speak." - Agent Elrond signature.asc Description: PGP signature

Re: X=1 : (was Re: /bin/sh redirect without command failure mode)

2018-11-25 Thread Rhialto
On Sun 25 Nov 2018 at 22:15:57 +0100, Rhialto wrote: > Actually, I would expect X to remain unset (or set as it was before) on > the next line. Just like it works with > > X=1 /some/external/command > > And that is what bash seems to do. Our /bin/{,k}sh however do set X

X=1 : (was Re: /bin/sh redirect without command failure mode)

2018-11-25 Thread Rhialto
h to make sure that "X=1 :" has no noticeable effect on X in the next line, whether shell or environment variable. -Olaf. -- ___ Olaf 'Rhialto' Seibert -- "What good is a Ring of Power \X/ rhialto/at/falu.nl -- if you're unable...to Speak." - Agent Elrond signature.asc Description: PGP signature

Re: Definitions of types also as macros

2018-11-06 Thread Rhialto
ypedef __uint32_t uint32_t; #define uint32_tuint32_t #endif Recursive macro definitions are not supposed to be re-expanded, so this would work as a guard but still leave uint32_t in source code unchanged. > -uwe -Olaf. -- ___ Olaf 'Rhialto' Seibert -- "What good is

Re: Weirdness in /bin/sh of 8.0

2018-08-15 Thread Rhialto
- ___ Olaf 'Rhialto' Seibert -- Wayland: Those who don't understand X \X/ rhialto/at/falu.nl -- are condemned to reinvent it. Poorly. signature.asc Description: PGP signature

Re: Weirdness in /bin/sh of 8.0

2018-08-14 Thread Rhialto
this, I see a whole bunch of problems in the pkg_chk > script that ought to be fixed, but none of them are related to this particular > issue. You mean "need to be fixed in the script" or "need to be fixed in sh"? -Olaf. -- ___ Olaf 'Rhialto' Seibert -- Waylan

Re: Weirdness in /bin/sh of 8.0

2018-08-12 Thread Rhialto
ript, due to its use of $() to catch results from functions) Maybe the redirection isn't reset in some cases? -Olaf. -- ___ Olaf 'Rhialto' Seibert -- Wayland: Those who don't understand X \X/ rhialto/at/falu.nl -- are condemned to reinvent it. Poorly. signature.asc Description: PGP signature

Re: Weirdness in /bin/sh of 8.0

2018-08-12 Thread Rhialto
xit + rm -f /tmp/pkg_chk.ZdTWWv/tmp + rmdir /tmp/pkg_chk.ZdTWWv + exit cvs/pkgsrc$ echo $? 0 cvs/pkgsrc$ Here you see the echo at the end of function pkgdirs_from_conf(), echoing a list of packages. Then the line (984) PKGDIRLIST="$(pkgdirs_from_conf $PKGCHK_CONF $PKGDIRLIST)" assigns an empty string to PKGDIRLIST... And then it has no work to do and proceeds to a regular exit. -Olaf. -- ___ Olaf 'Rhialto' Seibert -- Wayland: Those who don't understand X \X/ rhialto/at/falu.nl -- are condemned to reinvent it. Poorly. signature.asc Description: PGP signature

Weirdness in /bin/sh of 8.0

2018-08-11 Thread Rhialto
(using default) Variable: AWK = /usr/bin/awk Variable: GREP = /usr/bin/grep Variable: GZCAT = /usr/bin/gzcat Variable: GZIP_CMD = /usr/bin/gzip -nf -9 Variable: ID = /usr/bin/id Variable: PACKAGES = /mnt/vol1/rhialto/cvs/pkgsrc/packages Variable: PKGCHK_CONF = Variable: PKGCHK_NOTAGS = Variab

Re: Short circuit cp -l

2018-07-18 Thread Rhialto
others > don't have to re-do this in the future. It seems linux cp -lr also links files it would not be able to read: rhialto:~/tmp$ cp -lr dir1 dir1a rhialto:~/tmp$ l -R dir1 dir1: total 12 drwxrwxr-x 3 rhialto rhialto 4096 Jul 18 21:13 ./ drwxrwxr-x 5 rhialto rhialto 4096 Jul 18 21:13 ..

Re: shell (/bin/sh) pattern matching bugs

2018-06-24 Thread Rhialto
On Mon 25 Jun 2018 at 01:58:25 +0700, Robert Elz wrote: > Date:Sun, 24 Jun 2018 19:09:58 +0200 > From: Rhialto > Message-ID: <20180624170958.gj8...@falu.nl> > > | Are we to assume that NetBSD's sh(1) manual page is correct? > > We

Re: shell (/bin/sh) pattern matching bugs

2018-06-24 Thread Rhialto
lexi- cally between the pair. You would think that at the time the "- ] blurb" was added, it was supposedly because the code had changed and it was now true, but apparently not. But it would seem to indicate that it was meant to be true. -Olaf. -- ___ Olaf 'Rhialto' Seibert -- Wayland: Those who don't understand X \X/ rhialto/at/falu.nl -- are condemned to reinvent it. Poorly. signature.asc Description: PGP signature

Re: Add static local vars to sh(1) ?

2018-01-29 Thread Rhialto
version. I tried it on a Linux bash with valgrind, and this reported an "Invalid free() / delete / delete[] / realloc()". But it still did this when I removed the "unset -f fn" so it is unrelated. -Olaf. -- ___ Olaf 'Rhialto' Seibert -- Wayland: Those who don&#x

Re: Trouble with ASan

2017-03-05 Thread Rhialto
/pkg/bin/clang -fsanitize=address -o CMakeFiles/cmTC_8691b.dir/testCCompiler.c.o -c /home/rhialto/bzr/ctwm/build/CMakeFiles/CMakeTmp/testCCompiler.c clang-3.8: error: unsupported option '-fsanitize=address' for target 'x86_64-unknown-netbsd7.0' I was trying asan, s

Re: PaX MPROTECT gdb and software breakpoints

2016-05-22 Thread Rhialto
. There was earlier mention of a sysctl knob (default safe) to do this. I read that as being system-global, but it could also be per-process. Possibly gdb could know about it or at least tell the user about it. An entry in /proc could be relevant as well. > christos -Olaf. -- ___ Olaf &#x

Re: pidfile_lock(3)

2016-03-21 Thread Rhialto
write > hostname-proctitle-10 (this is an old solution too; trn does it). Also, for foo it is much easier to check that process 10 is itself (getpid(2)) than that process 10 merely exists (how? some weird exception to how kill(2) does its work perhaps, but which is totally unintuitive). -Olaf.