Re: mount_mfs: why chdir?

2025-04-04 Thread Mouse
7;t find the mount_mfs one because mount_mfs is built in sbin/newfs.) /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: mount_mfs: why chdir?

2025-03-31 Thread Mouse
at the moment), but would assume it's so. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: mount_mfs: why chdir?

2025-03-30 Thread Mouse
ether I think the mount table should have "foo" or `pwd`/foo when relative "foo" is specified. I can see arguments each way, though at the moment I'm inclined towards the absolute path. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: CVS commit: src/sbin/umount

2025-03-26 Thread Mouse
#x27;t _needed_ for that, but they sure make it easier. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

mount_mfs: why chdir?

2025-03-26 Thread Mouse
a relative path as the mount-on argument, which is somewhat confusing ("mkdir foo && mount_mfs -s 8192 swap foo" => No such file or directory -> huh? I just made it!) and breaks a use case I have - an unusual use case, but still. /~\ The ASCII Mou

Re: rpc.statd dumps core, but continues

2025-03-17 Thread Mouse
could it be that either the coredump came from a forked child and you're seeing the parent still running, or once it coredumped whatever is responsible for starting it forked another one, so you're seeing not "continued to run" but "is running again"? /~\ The ASCII

Re: Proposal: getexecpath(3)

2025-01-04 Thread Mouse
the doorstep of whoever misconfigured the setup, not of the facility (mis)used. > See, I would not like /rescue/cat to act as /rescue/rm, even if it is > not setugid (: No. But being able to confuse /rescue/cat into running as if it were /rescue/rm would not allow you to do anything you cou

Re: regcomp() signedness issues

2024-12-28 Thread Mouse
g in the quote indicating what flag bits (third arg to regcomp()) are appropriate; REG_EXTENDED may not be right. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: sizeof(type)

2024-11-25 Thread Mouse
tions). I think operator precedence even less resolves the "* as pointer vs multiplication" question, so yours is a much better example of why the parens around types are needed. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@roden

Re: 'syslogd -u' and pidfile creation

2024-11-08 Thread Mouse
appropriate to write the usual system-wide PID file in its usual place, which makes this a feature rather than a bug. So there obviously is something different between what I've got in mind and what you do. /~\ The ASCII Mouse \ / Ribbon Campaign X Again

Re: sh(1) exec redirection

2024-11-06 Thread Mouse
ility, which doesn't mind having a stray fd open.) As much as it may be water under the bridge by now, I still think the correct thing would have been to not break the (unknown number of) scripts out there that depend(ed) on the old behaviour. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: sh(1) exec redirection

2024-11-06 Thread Mouse
27;s a now way to get that effect that's compatible with decades of history? /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: sh(1) exec redirection

2024-11-05 Thread Mouse
> After digging for hours why something like > FOO_PASS_FD=3 exec /usr/pkg/bin/foo 3 worked on -6, but not on -8, I found out that [...] I ran into something similar some time ago on, apparently, 8.0. I found - I forget where - a workaround. To quote from the script: # Misfeature in 8.0's

Re: `ls -1s` doesn't print "total"

2024-11-03 Thread Mouse
empty files named one, two, and three: ls -s ls -sC ls -sC | cat total 0 0 one 0 three 0 two ls -s | cat ls -s1 ls -s1 | cat 0 one 0 three 0 two Mouse

Re: Use of feature test macros

2024-11-02 Thread Mouse
(_NETBSD_SOURCE) This is not: #if ( > 200809L) || defined(_NETBSD_SOURCE) Of course, if _POSIX_C_SOURCE is defined as do } case ~ ( ) j - that won't help. But in that sort of case nothing will. /~\ The ASCII Mouse \ / Ribbon Campaign X Against H

Re: crontab(1) using stdin

2024-10-29 Thread Mouse
er to accidentally destroy your crontab. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: style: structures

2024-10-08 Thread Mouse
ally about NetBSD style, probably not in that case. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: style: structures

2024-10-08 Thread Mouse
out pointer sizes). Also, is there anything promising that casting back, that casting a pointer to the type of the first element, which actually points to such a first element, to a pointer to the containing struct type, returns a pointer which points to that containing struct? /~\ The ASCII

Re: style: structures

2024-10-08 Thread Mouse
eed to chase down a copy of something more recent and turn it into a useful form...I've got pointers, but need to follow them. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: [PATCH] Allow qualified filename (bar/foo) PATH searching.

2024-10-02 Thread Mouse
be, explicitely, "./bar/foo", [...]. Presumably this was actually talking about the state with the environment variable flag turned on; it read to me as if you were talking about the case where it's not. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTML

Re: [PATCH] Allow qualified filename (bar/foo) PATH searching.

2024-10-01 Thread Mouse
ction between some paths and other paths that, as far as I can tell, is completely new as far as executable file location goes. It also, to me, appears (a) rather ill-defined and (b) completely pointless except for its use as justification for the executable location semantics you're trying to introduce. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: [PATCH] Allow qualified filename (bar/foo) PATH searching.

2024-10-01 Thread Mouse
>> Well, I think my point was that _every_ pathname component is >> path-relative. The "foo"s in /usr/bin/foo, /tmp/foo, >> /home/mouse/foo, and xyz/foo bear no relation to one another except >> similarity of spelling [...]. . and .. are no different in that &g

Re: [PATCH] Allow qualified filename (bar/foo) PATH searching.

2024-10-01 Thread Mouse
ics for paths with a trailing dot.) > The "explanation", as I tried to write, is an afterthought. > In order for the feature to have some sense (for me) there should be > a distinction between a locator and an identifier. This means that > no path relative directive has to be pr

Re: Fwd: Re: interactive shell detection in shrc

2024-09-29 Thread Mouse
e name is even representible, so it's not surprising that most languages don't have them. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: sh(1) read: add LINE_MAX safeguard and "-n" option

2024-09-27 Thread Mouse
sequence" (written, above, without the dash; I'm including the dash because I think it's clearer that way). Similarly, "three cars", but "a three-car garage"; "this keyboard has 94 keys" but "this is a 94-key keyboard". I have no idea why

Re: PR 44498 should probably be closed

2024-08-04 Thread Mouse
a similar insistence on getcwd() working even when run as pax. I don't know whether it does; I don't run anything recent enough to usefully test it on, and I don't even know pax-as-pax enough to test it anyway.) /~\ The ASCII Mouse \ / Ribbon Campaig

Re: test.1 -> "if file exists" -> "if pathname resolves to an existing directory entry"

2024-07-23 Thread Mouse
ilesystem, and, if the target doesn't exist, it will create it. For some purposes, stat -L might help, though in a small test I just did that printed data for the link when applied to an existing link whose target is nonexistent. /~\ The ASCII Mouse \ / Ribbon C

Re: patch(1) max line length

2024-07-12 Thread Mouse
the number of tools (Linux tools are the worst but by no means only offenders) that assume X3.64 sequences do whatever it is the program is expecting them to...and then there's recent gcc, which outputs *mis-terminated* OSCs. /~\ The ASCII Mouse \ / Ribbon Campa

Re: compilers and unused args in functions

2024-07-05 Thread Mouse
USE or __unused definition), at the cost of impairing practical portability (I suspect use of compilers that handle (void)arg or __attribute__ is commoner than the presence of __USE or whatever). /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: (b)make: Outputting a huge variable value

2024-05-16 Thread Mouse
r without the $, depending on exactly what you want) not work? I must be missing something. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: MLINKS for hoststat.8 purgestat.8 to mailwrapper.8?

2024-05-03 Thread Mouse
ped mailer provides them. > default etc/mailer.conf does not have them Not surprising. It would make sense to provide links for only those things that most common mailers provide. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal

Re: Using mmap(2) in sort(1) instead of temp files

2024-04-05 Thread Mouse
any version of NetBSD released in this millennium > should be good to avoid the bug. For use cases for which such a thing is appropriate, if such a thing exists, yes, I daresay it would be. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo

Re: Using mmap(2) in sort(1) instead of temp files

2024-04-05 Thread Mouse
void them. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: Using mmap(2) in sort(1) instead of temp files

2024-04-04 Thread Mouse
, I suspect temp files might end up being more performant. And if the dataset doesn't fit in VM, you'll need temp files regardless. If this does go in, I really think it needs an option to suppress it. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTML

Re: Issues with lseek(2) on a block device

2024-02-23 Thread Mouse
. Tapes don't really have a size in that sense to obtain. (Most tapes. Some DEC tapes do look a lot disks with sec/trk and trk/cyl both 1 and what for disks would be _extremely_ long seek times.) /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: Issues with lseek(2) on a block device

2024-02-22 Thread Mouse
x27;d expect it to be highly portable. The only cases I'd expect it to fail in are disks over 4G (or perhaps 2G) on systems with only 32 bits for off_t. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: -mdoc: how to handle surrounding types?

2024-02-09 Thread Mouse
h! > \X/ There is no AI. There is just someone else's work. --I. Rose Becoming less true, to the extent that weak AI qualifies. Reminds me of "Don't say `the cloud'. Say `someone else's computer'." /~\ The ASCII Mouse \ /

-mdoc: how to handle surrounding types?

2024-02-08 Thread Mouse
. What's the Right way to write such a thing? /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: strtoi(3) ERANGE vs ENOTSUP

2024-01-20 Thread Mouse
some hope of getting it fixed. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

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

2023-11-18 Thread Mouse
one process per input source, plus one shell (or other overseer) to reap finished ones and start new ones. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

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

2023-11-15 Thread Mouse
queeze multiple adjacent empty lines into a single empty line. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: tar vs device special files

2023-10-29 Thread Mouse
you were given ended > in pax.html#some-tag-or-other Yes, I noticed that...after the fact. I got the file, thank you! /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: tar vs device special files

2023-10-28 Thread Mouse
ale setting used for non-user-specific things like usernames, or what? I'm moderately sure there isn't any such thing on 5.2 and earlier. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8

Re: tar vs device special files

2023-10-28 Thread Mouse
ut that should be doable; work these days tends to inflict recent Linux on me, and, as unpleasant as I find that for most purposes, it does mean things like curl with HTTPS support. Thank you! /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTML

Re: tar vs device special files

2023-10-28 Thread Mouse
another pay-to-play "standard"? I've gone looking for specs for tar before, but each time I have, I've been unable to find anything that isn't behind a paywall of one sort or another (and thus a total nonstarter for me). Admittedly, I haven't looked recently. /~\

Re: tar vs device special files

2023-10-28 Thread Mouse
be even if it is. Either way, fixing libarchive is counterindicated (unless NetBSD is willing to take up the changes, which strikes me as unlikely). /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

tar vs device special files

2023-10-28 Thread Mouse
ng the numeric uid and gid values). But the stock 9.1 tar seems to be taking the 03 major and minor numbers as zero for reasons I don't understand, since it understands its own, apparently identical, major and minor numbers just fine. Any ideas? /~\ The ASCII

Re: lseek on tty

2023-09-18 Thread Mouse
r not lseek itself fails.) As for standards...which standard? The only one I know of which I think is likely to say anything about this is POSIX, which as far as I can recall I don't have a copy of. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: lseek on tty

2023-09-18 Thread Mouse
s undefined anyway. Also, I'd argue that lseek(,0,SEEK_CUR) makes sense on any descriptor, since it's not trying to change anything. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 6

Re: short reads on unix stream on netbsd-10

2023-09-06 Thread Mouse
t point to their clients. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: short reads on unix stream on netbsd-10

2023-09-06 Thread Mouse
at idiom, it's transferring very little data - zero bytes except in rare error cases - so performance is not an issue, and it simplifies the code significantly.) /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: bin/57544: sed(1) and regex(3) problem with encoding

2023-08-30 Thread Mouse
hem; I forgot Ṫ and ṫ, but that's minor). That mail, for all that it was also marked as being 8859-14, got displayed as if it were 8859-1. Not even Google, apparently, can get it even vaguely right. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTML

Re: epoll exposure

2023-08-16 Thread Mouse
e something > called kqueue with semantics different from FreeBSD? I would still say that a configure test that blacklisted them by OS/version is a broken test. I say it should either blindly assume the semantics it expects or it should test for the semantics it cares about, depending on the phi

Re: epoll exposure

2023-08-14 Thread Mouse
(Also, "Linux" is not a single thing, so "epoll == Linux" cannot be a correct thing to assume even conceptually.) /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: epoll exposure

2023-08-14 Thread Mouse
CII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

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

2023-08-12 Thread Mouse
> queue, and I don't see a way around that. But is changing the signal action the only way to make system(3) "work"? I'm not convinced it is. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: /etc/services losses

2023-08-03 Thread Mouse
opic for /etc/services. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: /etc/services losses

2023-08-03 Thread Mouse
y, but there was something SMTPish that was designed for MUA submissions, on a separate port.) /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: /etc/services losses

2023-08-03 Thread Mouse
ecame the disaster it currently is; doing so more just makes it worse.) In practice, I would say it does because the probable failure modes when talking to a non-TLS-ready MTA are substantially better. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTML

Re: sed(1) and LC_CTYPE

2023-07-26 Thread Mouse
ot;); should, it seems to me, make no difference. Am I misunderstanding? /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: DRM/KMS

2023-07-06 Thread Mouse
/~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: Trivial program size inflation

2023-07-04 Thread Mouse
tively until they no longer resolve anything more. I speculate that the reason cc doesn't use that is that it wants to be able to work with linkers that don't have any such mechanism. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@ro

Re: Trivial program size inflation

2023-07-04 Thread Mouse
t will actually work depends on whether libc referring to a symbol defined elsewhere in libc but also defined in a different .so already included resolves to the libc version or the other library's version. (Or, if that condition is an error, it may error instead of even trying to work.)

Re: inetd(8): security considerations

2023-07-03 Thread Mouse
ver config they want. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: inetd(8): security considerations

2023-07-03 Thread Mouse
ing thing (albeit only occasionally) if it's non-overridable. Also, I'm not sure how I'd modify that if the UID it's serving as is someone other than root. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montre

Re: Trivial program size inflation

2023-07-02 Thread Mouse
p, and the executable is significantly smaller. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: Trivial program size inflation

2023-07-02 Thread Mouse
e. Is it worth doing? That's a separate question. But I have no real doubt that it could be done if desired. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: Trivial program size inflation

2023-07-02 Thread Mouse
at doesn't matter.) /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: Trivial program size inflation

2023-07-02 Thread Mouse
ibraries, all the stuff in /local/src/lib*, I build .a libraries and no .so libraries. The only things I routinely link in dynamically are the ones that come with the system, and not always even those. > It does not come for free though. Nothing of value does. /~\ The ASCII

Re: Trivial program size inflation

2023-07-01 Thread Mouse
I am not that familiar with Linux. It's a Pi of some stripe, I believe.) And work, which is why I have it at all, is talking about it being underpowered enough to replace it with something even more ridiculous. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: Trivial program size inflation

2023-07-01 Thread Mouse
it only if it's used. Or, at least, so I would expect. Am I missing something? /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: Trivial program size inflation

2023-07-01 Thread Mouse
program, the linker can tell whether it calls dlopen et al. Or, to put it another way, even static binaries may call, say, nfssvc or _hes_error, so why aren't they brought in too? /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@ro

Re: Trivial program size inflation

2023-07-01 Thread Mouse
printf, which I would expect would pull in a bunch of stuff. That version was about three times the size on 1.4T; I don't recall trying it on 5.2 or 9.0_STABLE. I then cut it down to write(), then finally all the way to nothing at all. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: old style tail(1) options and bin/57483

2023-06-30 Thread Mouse
be any kind of issue for me for them to change. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Trivial program size inflation

2023-06-30 Thread Mouse
Ubuntu machine at work, I see textdata bss dec hex filename 761750 208046016 788570 c085a main but I hardly think Ubuntu's sins are relevant to NetBSD. :-) /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@

Re: printf(1), sh(1), POSIX.2 and octal escape sequences

2023-06-28 Thread Mouse
har' is the same size as short, int, and long (typically word-addressed DSPs). But I don't know whether that bears any relation to a `byte' in this sense. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: inetd(8): cmdif as builtin

2023-06-12 Thread Mouse
ly forbid a configuration that, for example, tries to activate cmdif on 10.4.77.186 or some such. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: inetd(8): cmdif as builtin

2023-06-09 Thread Mouse
> Le Fri, Jun 09, 2023 at 08:47:10AM -0400, Mouse a écrit : I find it amusing that it's "Fri, Jun 09, 2023 at 08:47:10AM -0400" rather than something like "ven, 09 jui 2023, a 08:47:10 -0400", when the surrounding text _is_ en français. >>> BTW; just an idea:

Re: inetd(8): cmdif as builtin

2023-06-09 Thread Mouse
ther root or the same UID the server is running as.) The biggest difference I see between this and using signals to provoke these actions is the target namespace: filesystem names for AF_LOCAL or process IDs for signals. /~\ The ASCII Mouse \ / Ribbon Campaign X A

Re: style, sysexits(3), and man RETURN VALUES for sys programs

2023-06-03 Thread Mouse
would say that, if it's easy to produce a useful exit code, why not? It's no less informative than single-bit exit code; if a script just cares about success/failure, then sysexits exit codes work exactly as well as exit(1), and they do make a little more information available in case a

Re: [RFC] inetd(8) changes proposal

2023-05-31 Thread Mouse
ch connections _somehow_. I chose the latter. I might have been able to do it using mount_portal. I haven't investigated that; perhaps I should have. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: [RFC] inetd(8) changes proposal

2023-05-31 Thread Mouse
file more tha once: 10.7.44.184: . private-services 172.18.9.1: . private-services *: . everyone-services /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: [RFC] inetd(8) changes proposal

2023-05-31 Thread Mouse
onable. Perhaps even with the error. But full check diagnostic output seems inappropriate for syslog, to me. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: [RFC] inetd(8) changes proposal

2023-05-31 Thread Mouse
how I feel about depending on procfs. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: [RFC] inetd(8) changes proposal

2023-05-30 Thread Mouse
on or to a file whose name is specified in the command. Assuming NetBSD isn't interested in going that far, perhaps it would be reasonable to have a config-file syntax which specifies a listening point (AF_LOCAL, AF_INET, AF_INET6, whatever) via which it could be similarly commanded? /~\

Re: inetd(8): continue or exit on error?

2023-05-29 Thread Mouse
s of the config language and what's in the config files.) If you really want to avoid including the same file twice even if that's what the config says to do, I'd say it should do so with dev/ino comparisons, not pathname comparisons. /~\ The ASCII

Re: Sanitizing (canonicalising) the block device name in mount_ffs ??

2023-05-27 Thread Mouse
it fails [...]. I'm not entirely sure, but at the moment I think I would probably go for (1), pending finding something it breaks. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: Sanitizing (canonicalising) the block device name in mount_ffs ??

2023-05-27 Thread Mouse
hy would that be a good thing for it to do? Do you _want_ mount to turn "mount symlink-to-wd0e" into "mount /dev/wd0e"? I'm not convinced that is a good thing. (I'm also not convinced it's a bad thing, mind you.) /~\ The ASCII Mouse \

Re: debugging/tracing a setuid program

2023-05-08 Thread Mouse
another of the problems I ascribe to the GNU people. [%] http://ftp.rodents-montreal.org/mouse/blah/2009-11-20-1.html in case anyone wants to read the whole piece. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email!

Re: debugging/tracing a setuid program

2023-05-05 Thread Mouse
>> (a) I'd say it shouldn't stop ktracing > I suspect it stops as soon as sudo calls setuid. (a) If it does that when the trace was set by root, I call that a bug. (b) Even if so, it shouldn't stop partway through an operation. /~\ The ASCII M

Re: debugging/tracing a setuid program

2023-05-05 Thread Mouse
7;t stop ktracing and (b) I *definitely* would say it shouldn't stop partway through an operation. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: debugging/tracing a setuid program

2023-05-05 Thread Mouse
e behaviour, good luck - you're probably dealing with a heisenbug, dependent on stack trash or some such.) /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: flock(2): locking against itself?

2023-04-18 Thread Mouse
indly assumes GNU make. But I've got a lot of investigating yet to do; I fullky expect there will be lots of good and bad things (from my POV) to discover.) Thank you! /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-

Re: flock(2): locking against itself?

2023-04-18 Thread Mouse
, except that output, instead of being pushed to the tty with fwrite() or write() or writev() or whatever, is just passed to a callback. That would address my use cases with a much less intrusive change. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTML

Re: flock(2): locking against itself?

2023-04-18 Thread Mouse
ggle with a > generalised concept. I have two use cases already, and I have two more which are vulnerable to the same issue but which I haven't actually run into it with...yet. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: style: clean up mentions of old-style C

2023-04-17 Thread Mouse
#x27;ll have a hard time finding a C standard that forbids argc,argv,envp. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: flock(2): locking against itself?

2023-04-16 Thread Mouse
bps) a much simpler > line-at-a-time updater will serve perfectly well. I imagine there > are some extant implementations already, and if not, writing one will > probably be less work than grinding the curses we have. Hm. I'll have to think about that. At the very least, that's another assumption I'd rather avoid making, the assumption of high bandwidth between the program and the output screen. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: flock(2): locking against itself?

2023-04-16 Thread Mouse
y or the descriptor. And you say it doesn't actually work for, at least, vi. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: flock(2): locking against itself?

2023-04-15 Thread Mouse
ne towards pulling the screen updater out of curses, so it can be used without all the baggage tied to the OS that libcurses imposes? (c) If not, would there be any interest in such a thing? /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B

Re: Rationale for some rules in style guide

2023-04-11 Thread Mouse
from optimizing unused variables out of existence - the first version, which had neither, printed 1. Compiling with -save-temps and looking at the assembly, it's clear that the variable order on the stack is the source-code order. /~\ The ASCII Mouse \ / Ribbon

  1   2   3   >