Re: run_rc_command succeeds if command not executable

2025-05-26 Thread Greg A. Woods
self was first added to rc.subr (1.11) (and the running of everything was moved from /etc/rc to /etc/rc.d/*). -- Greg A. Woods Kelowna, BC +1 250 762-7675 RoboHack Planix, Inc. Avoncote Farms pgp0oOTK15p3d.pgp Description: OpenPGP Digital Signature

Re: add a "notty" flag to ttys(5) for init(8)

2025-05-19 Thread Greg A. Woods
At Sat, 17 May 2025 08:41:32 + (UTC), RVP wrote: Subject: Re: add a "notty" flag to ttys(5) for init(8) > > On Fri, 18 Apr 2025, Greg A. Woods wrote: > > > I figured the best way would be to run it from init(8) so that it would > > be running at all times while

Re: use of the uniquely NetBSD _OPENBSD_SOURCE vs something better?

2025-05-08 Thread Greg A. Woods
e thinking of the way FreeBSD and OpenBSD manage the feature-test macros and how they have created these internal __foo_VISIBLE flags to separate the way features are exposed from the user control flags like _foo_SOURCE, etc. In any case that's probably way too much of a make-work project. -- Greg A. Woods Kelowna, BC +1 250 762-7675 RoboHack Planix, Inc. Avoncote Farms pgpBvHqdnyLRo.pgp Description: OpenPGP Digital Signature

use of the uniquely NetBSD _OPENBSD_SOURCE vs something better?

2025-05-07 Thread Greg A. Woods
there's a _lot_ more coordination and cooperation between the system's developers!) -- Greg A. Woods Kelowna, BC +1 250 762-7675 RoboHack Planix, Inc. Avoncote Farms pgpJ_4y4Uby4e.pgp Description: OpenPGP Digital Signature

add a "notty" flag to ttys(5) for init(8)

2025-04-18 Thread Greg A. Woods
tion from localhost allow localhost# allow localhost to connect to the server and allow admin:monit # require user 'admin' with password 'monit' check process syslogd with pidfile /var/run/syslogd.pid start program = "/etc/rc.d/syslogd start"

auto-(un)configure vnd(4) for (u)mount (was: CVS commit: src/sbin/umount)

2025-03-26 Thread Greg A. Woods
numbers. Maybe this would all make a good GSoC project (e.g. to suggest to all those who are otherwise eager to pick the seemingly singularly most popular project). -- Greg A. Woods Kelowna, BC +1 250 762-7675 RoboHack Planix, Inc. Avon

Re: major/minor(3) macros conflict with regular code

2025-02-09 Thread Greg A. Woods
traditional. In 7th Edition they're in both! I do think they belong with the definition of dev_t though, which I think means keep them where they are. -- Greg A. Woods Kelowna, BC +1 250 762-7675 RoboHack Planix, In

Re: major/minor(3) macros conflict with regular code

2025-02-07 Thread Greg A. Woods
At Fri, 7 Feb 2025 09:59:15 +0100, Anthony Mallet wrote: Subject: Re: major/minor(3) macros conflict with regular code > > On Thursday 6 Feb 2025, at 18:01, Greg A. Woods wrote: > > At Thu, 6 Feb 2025 23:48:48 +0100, Anthony Mallet > > wrote: Subject: major/minor(3) macros

Re: major/minor(3) macros conflict with regular code

2025-02-06 Thread Greg A. Woods
full native NetBSD system compatability and so could do without defining _NETBSD_SOURCE -- maybe define _POSIX_C_SOURCE instead (which explicitly then tells the system headers to _not_ define _NETBSD_SOURCE, and that will hide those macros). Or fix that code to use more descriptive and thus unique names fo

Re: Supporting compression-less release builds

2025-01-13 Thread Greg A. Woods
to limited physical media any more. -- Greg A. Woods Kelowna, BC +1 250 762-7675 RoboHack Planix, Inc. Avoncote Farms pgpkaAMQQeB43.pgp Description: OpenPGP Digital Signature

Re: Private symbols in libpcap, libmagic, libexpat

2024-12-17 Thread Greg A. Woods
osed to be in a library's ABI to just what's in its API, and as you point out, at least for both libpcap and libexpat, this is the way upstream was already building anyway. -- Greg A. Woods Kelowna, BC +1 250 762-7675 RoboHac

Re: Checking library symbols

2024-12-10 Thread Greg A. Woods
-- Greg A. Woods Kelowna, BC +1 250 762-7675 RoboHack Planix, Inc. Avoncote Farms pgpqO7LSYBzdJ.pgp Description: OpenPGP Digital Signature

Re: Style guide function variable initialization?

2024-11-27 Thread Greg A. Woods
naming practices, and avoiding spaghetti code (e.g. nested loops common in too-long function bodies), it can be kept to a minimum. -- Greg A. Woods Kelowna, BC +1 250 762-7675 RoboHack Planix, Inc. Avoncote Farms pgpYW0Cb_YM27.pgp Description: OpenPGP Digital Signature

Re: interactive shell detection in shrc

2024-10-10 Thread Greg A. Woods
and parenthesis can be used to create expressions of arbitrary length and complexity, and surely I've done so for decades with multitudes of implementations with nary a problem. I agree POSIX does only require support for 4 arguments, but with the XSI extension any number are allowed, but I've never met a POSIX-minimal only implementation of test(1). -- Greg A. Woods Kelowna, BC +1 250 762-7675 RoboHack Planix, Inc. Avoncote Farms pgpOSR5NFRIpp.pgp Description: OpenPGP Digital Signature

Re: interactive shell detection in shrc

2024-10-09 Thread Greg A. Woods
more only a very few shells source $ENV when they are not interactive (and thus they don't need any interactivity test at all). Even AT&T Ksh gave up on always expanding and sourcing $ENV with the original ksh93 release (i.e. as of 1993/12/28), so it is always POSIX compliant now. (I ha

Re: interactive shell detection in shrc

2024-10-05 Thread Greg A. Woods
because (like “TERM”), xterm both reads and updates the variable, and because the program started by xterm is not necessarily a shell. -- Greg A. Woods Kelowna, BC +1 250 762-7675 RoboHack Planix, Inc. Avoncote Farms

Re: interactive shell detection in shrc

2024-10-04 Thread Greg A. Woods
On stock NetBSD this is just sh(1) and ksh(1), but it may also include older AT&T Ksh, other pdksh(1), etc. It would matter for the Heirloom Shell, but since it doesn't support $ENV at all, it does not actually matter for it. -- Greg A. Woods Kelowna, BC +1 250 762-7675 RoboHack Planix, Inc. Avoncote Farms pgpKwP6wMgEmm.pgp Description: OpenPGP Digital Signature

Re: interactive shell detection in shrc

2024-10-03 Thread Greg A. Woods
At Mon, 30 Sep 2024 21:59:49 +0200, wrote: Subject: Re: interactive shell detection in shrc > > On Mon, Sep 30, 2024 at 12:14:44PM -0700, Greg A. Woods wrote: > > > SHELL is set by ksh and not by sh (sh handles NETBSD_SHELL), if I'm > > > not mistaken? > > >

Re: interactive shell detection in shrc

2024-09-30 Thread Greg A. Woods
ferent and unrelated. -- Greg A. Woods Kelowna, BC +1 250 762-7675 RoboHack Planix, Inc. Avoncote Farms

Re: interactive shell detection in shrc

2024-09-28 Thread Greg A. Woods
king I had it. > But as Steffen (kind of) indicated, "test -t 0 && test -t 2" is > probably an easier way than using tty. Well, I'll be. I don't remember ever using "test -t"! I think I must have skipped over it entirely all these years! So I now have:

Re: interactive shell detection in shrc

2024-09-27 Thread Greg A. Woods
At Fri, 27 Sep 2024 07:14:46 +0700, Robert Elz wrote: Subject: Re: interactive shell detection in shrc > > Date:Thu, 26 Sep 2024 15:16:39 -0700 > From: "Greg A. Woods" > Message-ID: > > | I'm very curious: why did you include "

Re: interactive shell detection in shrc

2024-09-27 Thread Greg A. Woods
At Fri, 27 Sep 2024 01:32:34 +0200, Steffen Nurpmeso wrote: Subject: Re: interactive shell detection in shrc > > Hello. > > Greg A. Woods wrote in : > |At Tue, 24 Sep 2024 00:56:40 +0200, Steffen Nurpmeso \ > |wrote: > |Subject: Re: interactive sh

Re: interactive shell detection in shrc

2024-09-26 Thread Greg A. Woods
;; esac case "$0" in -*) _interactive=true ;; esac if ${_interactive}; then : ... do interactive setup else : ... do script-mode setup fi unset _int

Re: POSIX.2, IFS and echo command

2024-07-06 Thread Greg A. Woods
e stopped pulling in NetBSD changes and fixes early in 2002 and so dash has diverged ever since, especially with its own unique changes. For some interesting reading: https://www.in-ulm.de/~mascheck/various/ash/ Go up a couple of levels for even more good reading. --

Re: compilers and unused args in functions

2024-07-05 Thread Greg A. Woods
r all idiomatic C when used with more complex expressions, such as function calls. Here "arg" is a valid expression, and a "(void)" cast discards or ignores the result of an expression. The abstraction of __USE() seems unnecessary and more difficult to read. --

Re: Possible "new" redirect style for /bin/sh (needs a name)

2021-04-11 Thread Greg A. Woods
At Sun, 11 Apr 2021 09:05:57 +0200, tlaro...@polynum.com wrote: Subject: Re: Possible "new" redirect style for /bin/sh (needs a name) > > On Sat, Apr 10, 2021 at 05:04:11PM -0700, Greg A. Woods wrote: > > > > So, still, the shell could keep a "high FD waterm

Re: Possible "new" redirect style for /bin/sh (needs a name)

2021-04-10 Thread Greg A. Woods
efer to it (and also use as a sub-section heading for the man page, > and a test case name for (yet to be written) ATF tests of this) The only thing that immediately jumped into my mind was "dynamic redirection". Maybe Steve Bourne could suggest a name? (seriously) --

Re: odd ATF failure for sh: ulimit_redirection_interaction failed

2021-03-12 Thread Greg A. Woods
orced (i.e. if the ulimit for open FDs is not kept lower than the number of currently open FDs); though I have not done any other kind of test to be sure the data sent to a multi-digit FD is actually received from the given FD. -- Greg A. Woods Ke

Re: odd ATF failure for sh: ulimit_redirection_interaction failed

2021-03-12 Thread Greg A. Woods
ug printfs to the shell too, but I'm currently stymied by another problem (I can't access the domU filesystem from the dom0, and until I can get a complete rebuild to finish so I can do a full reinstall of the domU, accessing the FS from the dom0 would be the only easy way I have of injecti

odd ATF failure for sh: ulimit_redirection_interaction failed

2021-03-11 Thread Greg A. Woods
id argument tc-se: tc-end: 1615494985.880185, ulimit_redirection_interaction, failed, atf-check failed; see the output of the test for details -- Greg A. Woods Kelowna, BC +1 250 762-7675 RoboHack Planix, Inc. Avoncote Farms pgpH

Re: recent changes to pthread_fork.c:fork() cause static linking to fail if the app provides its own malloc()

2020-07-15 Thread Greg A. Woods
g on what the internal malloc() uses to obtain heap space). -- Greg A. Woods Kelowna, BC +1 250 762-7675 RoboHack Planix, Inc. Avoncote Farms pgpF7qd4gS1wJ.pgp Description: OpenPGP Digital Signature

Re: recent changes to pthread_fork.c:fork() cause static linking to fail if the app provides its own malloc()

2020-07-13 Thread Greg A. Woods
At Tue, 14 Jul 2020 00:28:46 +0200, Joerg Sonnenberger wrote: Subject: Re: recent changes to pthread_fork.c:fork() cause static linking to fail if the app provides its own malloc() > > On Mon, Jul 13, 2020 at 03:05:17PM -0700, Greg A. Woods wrote: > > I think it is the following

recent changes to pthread_fork.c:fork() cause static linking to fail if the app provides its own malloc()

2020-07-13 Thread Greg A. Woods
ot/shells/heirloom-sh/work/heirloom-sh-050706/mapmalloc.c:303: first defined here Should I send-pr this? Is there any possibility of an "easy" fix? -- Greg A. Woods Kelowna, BC +1 250 762-7675 RoboHack Planix, Inc. Avoncote

Re: style change: explicitly permit braces for single statements

2020-07-13 Thread Greg A. Woods
guide rule that should die) -- Greg A. Woods Kelowna, BC +1 250 762-7675 RoboHack Planix, Inc. Avoncote Farms pgpKDOKszsCHU.pgp Description: OpenPGP Digital Signature

Re: style change: explicitly permit braces for single statements

2020-07-12 Thread Greg A. Woods
I get that (I am too), but in my opinion C is just not really safe without them. -- Greg A. Woods Kelowna, BC +1 250 762-7675 RoboHack Planix, Inc. Avoncote Farms pgp07ateykbKh.pgp Description: OpenPGP Digital Signature

postinstall removed yet another "obsolete" system library that was still used....

2020-06-27 Thread Greg A. Woods
nly protects things installed via pkgsrc, and there's still the risk of subsequently needing to install a binary package built for an older release which needs one of these "obsolete" files, but at least pkg_add can (be made to if it doesn't already) notice this and abor

Re: merging /usr/bin etc. to / (was: Solving the syslogd problem)

2020-02-04 Thread Greg A. Woods
as opposed to a traditional network filesystem like NFS). E.g. for shared mounts of /dev/xbd?? devices in Xen, or shared mounts of a single FibreChannel or iSCSI target. Can we even invent a new kind of shareable filesystem using, e.g., lockless on-disk data structures for writeable mounts? -- Greg A. Woods Kelowna, BC +1 250 762-7675 RoboHack Planix, Inc. Avoncote Farms pgpdoZp0PlAPV.pgp Description: OpenPGP Digital Signature

Re: failure when building a static-linked emacs25 (-nox11 on amd64)

2018-02-05 Thread Greg A. Woods
R link. Neither "site:gnats.netbsd.org emacs" nor "site:mail-index.netbsd.org emacs crash" can find it. Google's spider should have found the PR and all the related mail long before now. -- Greg A. Woods +1 250 762-7675

failure when building a static-linked emacs25 (-nox11 on amd64)

2018-02-04 Thread Greg A. Woods
a4 in ?? () #16 0x7f7ff2ab in ?? () #17 0x7f7ff2c6 in ?? () #18 0x00007f7ff2c9 in ?? () #19 0x7f7ff2dc in ?? () #20 0x in ?? () (gdb) That seems even more mysterious to me, though perhaps there's a good explanation somehow. (E.g. don't malloc() in a dumped binary because that's already been done? Or maybe the dumped heap is inconsistent?) -- Greg A. Woods +1 250 762-7675 RoboHack Planix, Inc. Avoncote Farms pgp0xUxIYhwLH.pgp Description: PGP signature

Re: randomness (crypto?) code example wanted please?

2017-06-27 Thread Greg A. Woods
g to invent a new category for it just to keep it separate from both Ksh (and clones) and other Ash derivatives that don't grow a $RANDOM. -- Greg A. Woods Planix, Inc. +1 250 762-7675

Re: NetBSD on embedded devices

2017-06-27 Thread Greg A. Woods
x filename 4536955 13034660 430196 18001811112af93 netbsd-NET5501.EMBED 03:18 [98] $ ls -l netbsd-NET5501.EMBED -rwxr-xr-x 1 woods wheel 18268428 Jun 5 2016 netbsd-NET5501.EMBED -- Greg A. Woods