Re: Find all files with at least one execute bit set

2025-08-16 Thread Valery Ushakov
On Thu, Aug 14, 2025 at 12:15:25 +0200, Rocky Hotas wrote: > It seems to work, but it's somewhat cumbersome. In GNU find, there > is a single dedicated option, `-executable'. -executable is, like test -x, an access(2) test. The simple bitmask test, as has already been mentioned upthread, is -pe

Re: unix assembly programming

2025-07-17 Thread Valery Ushakov
On Thu, Jul 17, 2025 at 01:02:21 +0530, Mohan wrote: > is it common to use m4 with gas? There are not much code written in assembler these days and the little amount that gets written probably can get by with the C preprocessor and or gas own macro facility. Also my impression is that macro-proc

Re: New ver NetBSD and the /etc files.

2025-03-01 Thread Valery Ushakov
On Sat, Mar 01, 2025 at 14:15:00 +, Van Ly wrote: > Benny Siegert writes: > > > With etcupdate. If you use sysupgrade, it will run etcupdate at the end. > > Is there a way to tell the update to ignore the following files? > > — /etc/passwd > — /etc/group You can just tell that to etcupd

Re: comms/py-serial in NetBSD vs Linux differences

2025-01-11 Thread Valery Ushakov
On Sat, Jan 11, 2025 at 17:46:59 +0100, Ramiro Aceves wrote: > Under Linux, device is /dev/ttyAMC0, in NetBSD device is /dev/ttyU0 and > /dev/dtyU0 (never understood which to use). As explained in tty(4) - perhaps a bit too tersely: The /dev/dtyXX special file is a SunOS-compatible dial-out de

Re: Chap 35. Updating an existing system from sources (xorg?)

2024-10-29 Thread Valery Ushakov
There's really no mystique about build.sh On Mon, Oct 28, 2024 at 13:48:19 +0100, Ramiro Aceves wrote: > And with "-u" It does not compile everything but only the source > that has changed from the last compilation, is not it? build.sh is a convenience wrapper to build and invoke nbmake-$machine

Re: TTL/USB converter usage question

2024-10-16 Thread Valery Ushakov
On Wed, Oct 16, 2024 at 10:32:45 +0200, Ramiro Aceves wrote: > Thanks Martin and RVP, cat -u did not work. > > netbsd-raspa4$ { sleep 1; stty -f /dev/ttyU0 9600 raw clocal cread > -crtscts; } & cat -u -v /dev/ttyU0 > stty: /dev/ttyU0: Resource temporarily unavailable It seems to me you are runni

Re: [netbsd-10] src bus_dma.9 copyedit

2024-10-09 Thread Valery Ushakov
On Sat, Oct 05, 2024 at 13:48:16 +0300, Valery Ushakov wrote: > Anyway, unfortunately it's not an isolated fix, the whole man page > needs markup revamp. I'll try to find time. I did a bit of a face lift on it. Hopefully, it's easier to read now. -uwe

Re: emacs icomplete-vertical for manpages chdir(2) fails

2024-10-08 Thread Valery Ushakov
On Tue, Oct 08, 2024 at 12:58:18 +1100, Van Ly wrote: > The way NetBSD does > > "man -k output" > > is different enough to cause hiccups on Emacs autocompletes. This is > being looked at by the emacs-devs. Arrange for APROPOS="-l" in the environment. Cf. apropos(1) -uwe

Re: [netbsd-10] src bus_dma.9 copyedit

2024-10-05 Thread Valery Ushakov
On Sat, Oct 05, 2024 at 05:17:59 +, Van Ly wrote: > Valery Ushakov writes: > > > On Fri, Oct 04, 2024 at 18:58:39 +, Van Ly wrote: > > > >> => http://sdf.org/~van.ly/art/bus-dma-9-copyedit.jpeg > > > > I don't think so. "Exclu

Re: [netbsd-10] src bus_dma.9 copyedit

2024-10-04 Thread Valery Ushakov
On Fri, Oct 04, 2024 at 18:58:39 +, Van Ly wrote: > The final sentence in the block for BUS_DMA_NOCACHE and > BUS_DMA_PREFECTCHABLE need to be swapped, see pink and yellow > highlight below > > => http://sdf.org/~van.ly/art/bus-dma-9-copyedit.jpeg I don't think so. "Exclusive" here means th

Re: Smalltalk/Squeak on NetBSD-10

2024-07-18 Thread Valery Ushakov
On Thu, Jul 18, 2024 at 17:51:22 +, Van Ly wrote: > 7 /usr/pkg/lib/squeak/4.10.2.2614/so.vm-sound-OSS: Undefined PLT symbol > "_oss_ioctl" (symnum = 19) It's probably not linked against -lossaudio. I grabbed the binary package and it seems so.vm-sound-OSS is only linked against lasound.so

Re: Smalltalk/Squeak on NetBSD-10

2024-07-18 Thread Valery Ushakov
On Thu, Jul 18, 2024 at 09:20:39 +, Van Ly wrote: > I have the following packages installed. Is there anything more I > need to have installed to spawn a Smalltalk/Squeak workspace? > > 1 $ pkgin se smalltalk > 2 squeak-4.5 Full Smalltalk 80 with portability to UN*X, Mac, and > Wi

Re: How to mount a PCMCIA hard drive

2024-06-10 Thread Valery Ushakov
On Mon, Jun 10, 2024 at 16:42:52 -0700, Joel wrote: > > I have an old Latitude CP of ~2000 vintage with 2 cardbus slots. > > wi(4) works. Unfortunately other PCMCIA network card drivers seems to > > have bitrotted indeed. Neither mhzc(4), nor ne(4) work. Something > > changed at the interface/e

Re: How to mount a PCMCIA hard drive

2024-06-10 Thread Valery Ushakov
On Tue, Jun 11, 2024 at 01:56:22 +0700, Robert Elz wrote: > Date:Mon, 10 Jun 2024 03:58:30 +0300 > From: Valery Ushakov > Message-ID: > > | a CF card in a PCMCIA slot: > > I used to have systems with PCMCIA - I formed the impression (at

Re: How to mount a PCMCIA hard drive

2024-06-09 Thread Valery Ushakov
On Sun, Jun 09, 2024 at 15:55:17 +0300, Erkki Ruohtula wrote: > On Sun, 9 Jun 2024 12:28:12 + (UTC) > Martin Husemann wrote: > > > On Sun, Jun 09, 2024 at 01:47:45PM +0300, Erkki Ruohtula wrote: > > > I have a "Centennial MicroDrive", 340 Mb that does into a PCMCIA > > > card slot. Inserting

Re: Fontconfig and variable fonts

2024-05-28 Thread Valery Ushakov
On Sun, May 26, 2024 at 22:32:13 +0200, Rhialto wrote: > But is it actually documented anywhere how this can be used? I have > searched for years (literally) and never found even a hint. Nothing > at all. Arch wiki has e.g. (haven't tried it myself): https://wiki.archlinux.org/title/Font_co

Re: getconf LONG_BIT in NetBSD

2024-05-19 Thread Valery Ushakov
On Sun, May 19, 2024 at 22:08:27 +0200, Ramiro Aceves wrote: > I see that "getconf LONG_BIT" works in other systems such as Linux and > FreeBSD but in NetBSD I have tried it and it does not work: > > netbsd-nuc$ getconf LONG_BIT > getconf: LONG_BIT: unknown variable > > > I read this on limits (3

Re: virtio-9p filesharing issue

2024-05-05 Thread Valery Ushakov
On Sun, May 05, 2024 at 13:08:52 +0200, Taryel Hlontsi wrote: > dmesg | grep -E 'vio|virtio' [...] > [ 1.016364] virtio2 at pci0 dev 8 function 0 > [ 1.016364] virtio2: 9P transport device (id 9, rev. 0x00) > [ 1.016364] virtio2: autoconfiguration error: no matching child driver; > not

Re: Failing to build a bootable custom kernel

2024-04-10 Thread Valery Ushakov
On Wed, Apr 10, 2024 at 15:04:51 -0400, Jared Barnak wrote: > for now. It works (I think), but I don't have any gunzipped images. Do you mean installation images? Like http://ftp.netbsd.org/pub/NetBSD/NetBSD-10.0/images/NetBSD-10.0-amd64-live.img.gz I was under impression you only need a cu

Re: Failing to build a bootable custom kernel

2024-04-08 Thread Valery Ushakov
On Sun, Apr 07, 2024 at 19:28:24 -0400, Jared Barnak wrote: > export DESTDIR=/home/jared/Projects/netbsd/obj/destdir [...] > ./build.sh -u -O ../obj -U - -E m amd64 -N3 -j24 > install=/home/jared/Projects/netbsd/obj/destdir > ``` > > which then yields the following error > > ``` > [ same error r

Re: using screenblank

2024-03-31 Thread Valery Ushakov
On Sun, Mar 31, 2024 at 09:42:08 +0900, Henry wrote: > Two questions concerning /usr/sbin/screenblank: > 1) How do I get the text console screen to unblank/resume? The > defaults, keyboard and mouse activity, don't work. I've also tried > "-i /dev/wskbd1" and "-i /dev/wsmouse1" to no avail. All

Re: NetBSD Localization

2024-02-27 Thread Valery Ushakov
On Mon, Feb 26, 2024 at 11:06:09 -0500, Ivan "Rambius" Ivanov wrote: > On Sat, Feb 24, 2024 at 9:20 PM Valery Ushakov wrote: > > > > On Sat, Feb 24, 2024 at 13:42:55 +0100, Martin Neitzel wrote: > > > > > > I can use setxkbmap in X to change the input

Re: makewhatis is missing on netbsd 6.1.4

2024-02-25 Thread Valery Ushakov
On Sun, Feb 25, 2024 at 05:28:47 +0300, Valery Ushakov wrote: > On Sat, Feb 24, 2024 at 19:22:54 +, xuser wrote: > > > makewhatis is missing on netbsd 6.1.4 what sould i do? > > makewhatis was replaced by makemandb. You can build from source with > MKMAKEMANDB=&qu

Re: makewhatis is missing on netbsd 6.1.4

2024-02-24 Thread Valery Ushakov
On Sat, Feb 24, 2024 at 19:22:54 +, xuser wrote: > makewhatis is missing on netbsd 6.1.4 what sould i do? makewhatis was replaced by makemandb. You can build from source with MKMAKEMANDB="no" if you need the old makewhatis. -uwe

Re: NetBSD Localization

2024-02-24 Thread Valery Ushakov
On Sat, Feb 24, 2024 at 13:42:55 +0100, Martin Neitzel wrote: > > I can use setxkbmap in X to change the input language. If I am in text > > mode and not in X how can I switch the input language? > > See wsconsctl(8), in particular the first example there. I guess the question is not about setti

Re: How to render Groff / troff output directly on the terminal

2024-01-15 Thread Valery Ushakov
On Mon, Jan 15, 2024 at 23:29:52 +0100, Martin Neitzel wrote: > IRI> groff -ms -Tps test.ms > test.ps > IRI> gs test.ps > IRI> > IRI> Is there a way to render groff / troff's output directly to the > IRI> terminal similar to the way man outputs to the terminal? > > Depending on your terminal's lo

grep unusable in UTF-8?

2023-12-31 Thread Valery Ushakov
On a ppc mini g4 (1.25MHz). $ LC_CTYPE=C time grep pool messages > /dev/null 0.01 real 0.00 user 0.00 sys but in a UTF-8 locale: $ LC_CTYPE=en_US.UTF-8 time grep pool messages > /dev/null 9.54 real 9.38 user 0.01 sys though when there are

Re: [cross]compiling world and mk.conf

2023-11-08 Thread Valery Ushakov
On Wed, Nov 08, 2023 at 13:07:09 +0100, Martin Husemann wrote: > Alternatively you can use conditionals in mk.conf, like: > > .if ${MACHINE} == "sparc" > CFLAGS+= -mcpu=v8 -mtune=supersparc > .endif *tsk tsk*... :) CPUFLAGS = -mcpu=v8 -mtune=... please. > .if ${MACHINE_ARCH} != shark > MKK

Re: mount -u use fstab options and wapbl log questions

2023-08-10 Thread Valery Ushakov
On Thu, Aug 10, 2023 at 14:05:57 +, Jeremy C. Reed wrote: > I saw in mount(8): > > "The set of options is determined by first extracting the options for > the file system from the fstab(5) file ..." > > But when I did > > mount -u / > > Then mount didn't show the "log". > > t1:reed$ grep

Re: detecting keyboard events (using wskbd?)

2023-08-06 Thread Valery Ushakov
On Sun, Aug 06, 2023 at 20:09:10 +, pouya+lists.net...@nohup.io wrote: > But before I sank even more hours in confused attempts to figure > out how to actually do this, I thought I'd ask if anyone here could > perhaps provide some further guidance. A long time ago I ported qt embedded to run

Re: cannot disable output processing in pseudo-terminal (between openpty(3) parent and child)

2023-07-31 Thread Valery Ushakov
On Mon, Jul 31, 2023 at 06:41:13 +, pouya+lists.net...@nohup.io wrote: > One difference I see with your code is that you don't seem to change > the controlling terminal in the child with setsid(2) and a TIOCSCTTY > ioctl(2). I only need to feed some input to the terminal emulation code, so th

Re: cannot disable output processing in pseudo-terminal (between openpty(3) parent and child)

2023-07-30 Thread Valery Ushakov
On Sun, Jul 30, 2023 at 23:04:23 +, pouya+lists.net...@nohup.io wrote: > One of my use cases requires the child process to emit a binary > stream to be read by the parent. The parent is notified first via > a specific escape sequence. This almost works, except I can't > figure out how to dis

Re: Disable kernel message prefix timestamps?

2023-02-06 Thread Valery Ushakov
[NB: HTML-only mail probably won't make it to the list] On Mon, Feb 06, 2023 at 17:01:22 +0500, Vitaly Shevtsov wrote: > I think it may be not be possible with sysctl, because sysctl is > read when the kernel is already loaded. So it can be possible > through either boot.cfg or recompiling. It

Re: Disable kernel message prefix timestamps?

2023-02-06 Thread Valery Ushakov
On Mon, Feb 06, 2023 at 00:49:11 -0500, John Rash wrote: > Is it possible to disable the linux kernel-style timestamps that > prefix kernel messages? I don't think there's a canned, ready to use knob for that. For now you can only compile a custom kernel with options KLOG_NOTIMESTAMP Should

Re: NetBSD 9.3 amd64 won't turn off display backlight

2023-01-23 Thread Valery Ushakov
On Thu, Dec 29, 2022 at 21:48:46 +0100, Damien Boureille wrote: > # wsconsctl -d -w backlight=0 > wsconsctl: WSDISPLAYIO_PARAM_BACKLIGHT: Inappropriate ioctl for device > > # sysctl -a | grep acpi.acpi > hw.acpi.acpiout1.brightness = 50 > hw.acpi.acpivga0.bios_switch = 1 > > This works fine but

Re: sending/receiving UTF-8 characters from terminal to program

2023-01-20 Thread Valery Ushakov
On Fri, Jan 20, 2023 at 15:09:44 +0100, r0ller wrote: > Well, checking what printf results in, I get: > > $printf 'n?z'|hexdump -C > 6e e9 7a |n.z| > 0003 > $printf $'n\uE9z'|hexdump -C > 6e c3 a9 7a

Re: 'cd' if HOME is unset

2022-12-25 Thread Valery Ushakov
On Sat, Dec 24, 2022 at 22:32:22 -0500, Jan Schaumann wrote: > Robert Elz wrote: > > Why bother? > > I happily admit that it's a rare edge case. I simply > find it surprising that 'cd' gives up if HOME is > unset. Seems unintuitive to me. Some would say, "gives up", some would say it makes you

Re: Running a service on a console in the foreground

2022-11-20 Thread Valery Ushakov
On Sun, Nov 20, 2022 at 15:41:24 +, Benny Siegert wrote: > Is it possible to have some program running in the foreground on one of the > VTs on startup, instead of getty? I would like it to start up on boot and > use the console for input and output. How do you set up such a thing, or is > thi

Re: updating direct from 5 to 9?

2022-08-20 Thread Valery Ushakov
On Sat, Aug 20, 2022 at 11:15:34 -0400, Greg Troxel wrote: > I am helping someone update an i386 system from 5 to 9, which is on > the net but without console (remote hands possible but really want > to avoid that). You can install netbsd 5 under qemu or vbox and to do a test-drive upgrade to 9 :

Re: Bug in NetBSD grep ?

2022-08-16 Thread Valery Ushakov
On Tue, Aug 16, 2022 at 22:40:52 +0200, Marc Baudoin wrote: > The following command-line: > > echo 00:00: | grep -E '^([0]{2}[:-]){2}$' > > doesn't print anything on NetBSD (9.3) but it prints 00:00: back > (as it should, unless I made a mistake in my regular expression): > - on NetBSD with GNU

Re: NetBSD 9.2 installer can't detect disk of some Hetzner VPSes

2022-07-10 Thread Valery Ushakov
On Sun, Jul 10, 2022 at 15:38:05 +, Chavdar Ivanov wrote: > Without any intention of stealing the topic, talking about vioscsi, I found > a small curio today - my disks attached to vioscsi are detected only when my > VirtualBox host is configured to use UEFI (and that is the sole difference).

Re: Setting keyboard layout on xterm

2022-06-30 Thread Valery Ushakov
On Thu, Jun 30, 2022 at 04:12:37 -0400, Thomas Dickey wrote: > "xsrc" is a separate tree - see > > http://cvsweb.netbsd.org/bsdweb.cgi/?only_with_tag=MAIN > > however, it's mostly empty, and the Git mirror > > https://github.com/NetBSD/xsrc > > doesn't have much source-code (for some reason, e

Re: cannot start detached sessions (with -m -d) back to back

2022-01-01 Thread Valery Ushakov
On Sat, Jan 01, 2022 at 21:49:00 +, RVP wrote: > OK, but, I think we can do better than rudely sending processes a SIGHUP. > Using the BSD-native /dev/ptm device (via openpty(3) & friends) instead of > /dev/ptmx seems to do the right thing: EOF when the PTY master is closed. > > File a PR (Ca

Re: cannot start detached sessions (with -m -d) back to back

2021-12-30 Thread Valery Ushakov
On Fri, Dec 31, 2021 at 02:08:02 +, RVP wrote: > On Fri, 31 Dec 2021, Valery Ushakov wrote: > > > I think screen is racing against the child process in MakeWindow. > > I think something else might also be going on: Ouch. That probably also explains why I was getting

Re: cannot start detached sessions (with -m -d) back to back

2021-12-30 Thread Valery Ushakov
On Fri, Dec 31, 2021 at 03:18:08 +0300, Valery Ushakov wrote: > I think screen is racing against the child process in MakeWindow. I filed https://savannah.gnu.org/bugs/index.php?61749 for this. -uwe

Re: cannot start detached sessions (with -m -d) back to back

2021-12-30 Thread Valery Ushakov
On Thu, Dec 30, 2021 at 06:55:24 +0300, Valery Ushakov wrote: > Building screeen with debugging shows that succesful session start has > for the first read from the window: > > + hit ev fd 5 type 1! > going to read from window fd 5 > -> 5 bytes >

Re: cannot start detached sessions (with -m -d) back to back

2021-12-29 Thread Valery Ushakov
On Wed, Dec 29, 2021 at 13:40:31 -0500, Adam Russell wrote: > What I am finding is that works to some extent, but then that second session > seems to quickly end. > > Here I start a session, list all sessions, quit all sessions, sleep for 10 > seconds, start a new session, list all sessions, slee

Re: cannot start detached sessions (with -m -d) back to back

2021-12-29 Thread Valery Ushakov
On Wed, Dec 29, 2021 at 00:01:38 -0500, Adam Russell wrote: > This is what I see > > -bash-5.1$ /usr/pkg/bin/screen -S some-session -p 0 -m -d > -bash-5.1$ screen -X quit > -bash-5.1$ /usr/pkg/bin/screen -S some-session -p 0 -m -d > -bash-5.1$ screen -X quit > No screen session found. I was goi

Re: man page inquiry

2021-10-08 Thread Valery Ushakov
Chavdar Ivanov wrote: >> > original package might be buggy (autoconf substitutions use @ >> > not #) and needs a fix. >> >> You are no doubt quite correct with that suggestion. I will >> carry it out as simply as I can manage. > > I don't think it is pkgsrc's fault - the original wdm.man.in file

Re: man page inquiry

2021-10-08 Thread Valery Ushakov
Bob Bernstein wrote: >> Looks like a pkgsrc bug that failed to properly substitute the >> actual value before installing the man page. > > Do you care to take a stab at what that value might be were it > to be correctly displayed? I don't have the slightest idea. /usr/pkg/etc/wdm probably.

Re: man page inquiry

2021-10-07 Thread Valery Ushakov
Bob Bernstein wrote: > If I read 'man wdm' I see this: > > --snip-- > -config configuration_file >Names the configuration file, which specifies > resources to control the behavior of wdm. > #configdir#/wdm-config is the default. > --snip-- > > Should I be seeing #configdir# thus litera

Re: backspace in wscons console sends ^H to processes

2021-07-20 Thread Valery Ushakov
On Tue, Jul 20, 2021 at 06:03:55 -, Michael van Elst wrote: > >But anyway. The big point is that teletypes actually just had a key > >labelled "rubout". That key did send a DEL character, though. > > N.B. I haven't actually seen a key labelled "rubout". But the editor manual > mentioned it a

Re: Some questions about build.sh, machine, -u and tools

2021-05-05 Thread Valery Ushakov
On Wed, May 05, 2021 at 12:57:21 +0200, Rocky Hotas wrote: > On mag 03 16:42, Valery Ushakov wrote: > > > TL;DR: src/BUILDING explains most of these things. > > It has the header of a Section 8 manpage, but it is not accessible as > such (`man BUILDING', `man 8 BUILDIN

Re: Some questions about build.sh, machine, -u and tools

2021-05-03 Thread Valery Ushakov
TL;DR: src/BUILDING explains most of these things. On Mon, May 03, 2021 at 12:18:54 +0200, Rocky Hotas wrote: > I struggle instead about MACHINE. Some of them (sparc, vax) have > just one MACHINE_ARCH with the same name. Some of them have just > one MACHINE_ARCH with a different name (amd64). Thi

Re: 9.1 upgrade fails: Shared object"libc.so.12" not found

2021-03-21 Thread Valery Ushakov
Bob Bernstein wrote: > Shared object "libc.so.12" not found [...] > The message shown is what appeared as I finished what appeared > to be an uneventful upgrade from an old 'current' netbsd (May > of last year) to amd64 9.1. [...] > trouble appeared: > panic init died (signal 0, exit 1) As peo

Re: hosts(5) manpage update

2021-03-12 Thread Valery Ushakov
Henry Bent wrote: > I wasn't sure which mailing list to send this to, but I figured this would > get a fair number of eyes. The hosts(5) manpage still includes a section > that dates from 1983(!) and while interesting from an historic perspective > is probably very confusing to any modern user:

Re: Unusable Realtek NIC after upgrading to NetBSD 9

2020-09-11 Thread Valery Ushakov
Rocky Hotas wrote: > Using NetBSD 8.1 in a laptop, both its Ethernet and WiFi NICs worked. > Then, I made a NetBSD 9 (formal release) fresh install and the > Ethernet NIC is almost unusable. > > Here, the relevant dmesg part: > > [ 1.055234] re0 at pci3 dev 0 function 0: RealTek > 8100E/810

Re: Man page names

2020-08-04 Thread Valery Ushakov
Todd Gruhn wrote: > I have noticed that there are many man pages with the name/form > *.conf.5 > > Are all man pages with the form *.* and *.*.* in section 5? ld.so(1), mdoc.sampes(7), rpc.statd(8), etc... > Can anyone see future problems caused by linking > a.b.c --> a_b_c ? Why? -uwe

Re: library cleanup after a system upgrade

2020-05-07 Thread Valery Ushakov
Martin Husemann wrote: > 2) the major version was bumped > -> new version is installed, old version stays around as 3rd party >software in your installation could still refer to it. >There are scripts for finding all references and actually >obsolete

Re: graphical desktop in virtualbox

2020-04-07 Thread Valery Ushakov
On Mon, Apr 06, 2020 at 10:48:45 +0100, Chavdar Ivanov wrote: > 6. Apply the following small patch (perhaps an oversight by whoever > has commited the corresponding file at VirtualBox, it works for me): > > # cat sleepqueue-r0drv-netbsd.patch That's fallout from a *very* recent change in current

Re: ECONNRESET not returned when calling send() on a socket

2019-12-23 Thread Valery Ushakov
On Mon, Dec 23, 2019 at 11:22:41 +, Sad Clouds wrote: > I handle SIGPIPE now, but don't see the value of having both SIGPIPE > and ECONNRESET for a socket. The behaviour is rather inconsistent, > i.e. you call send() and sometimes you get a SIGPIPE signal and > sometimes you don't. Maybe it's

Re: ECONNRESET not returned when calling send() on a socket

2019-12-23 Thread Valery Ushakov
On Sun, Dec 22, 2019 at 21:20:41 +, Sad Clouds wrote: > On Sun, 22 Dec 2019 23:44:33 +0300 > Valery Ushakov wrote: > > > LOL. Sorry :) I mean, you are already using poll(2). It literally > > cannot get *any* worse. Literally. The margins of this email are > >

Re: ECONNRESET not returned when calling send() on a socket

2019-12-22 Thread Valery Ushakov
On Sun, Dec 22, 2019 at 16:47:11 +, Sad Clouds wrote: > On Sun, 22 Dec 2019 16:10:15 +0300 > Valery Ushakov wrote: > > > Of course since you are writing a networking server you DO want to be > > notifed about send() errors and SIGPIPE gets in the way. So you can >

Re: ECONNRESET not returned when calling send() on a socket

2019-12-22 Thread Valery Ushakov
On Sun, Sep 22, 2019 at 11:50:57 +0100, Sad Clouds wrote: > 4. Server goes into a while(1) loop and calls send() until -1 is > returned. When -1 is returned and errno is EAGAIN or EWOULDBLOCK, > server goes back to poll() to wait for read/write events. Otherwise if > errno is something else, serve

Re: About using NetBSD as a guest, why, how etc.

2019-12-12 Thread Valery Ushakov
On Tue, Dec 10, 2019 at 18:39:00 +1100, Malcolm Herbert wrote: > My only gripe with VirtualBox is that it doesn't have native client > tools support for the *BSD family and the vboxfs filesystem isn't > available This is the semi-periodic reminder that Virtual Box Guest Additions do support NetB

Re: daily vs named

2019-09-18 Thread Valery Ushakov
On Wed, Sep 18, 2019 at 12:25:57 +0100, Stephen Borrill wrote: > On Tue, 17 Sep 2019, Dima Veselov wrote: > > > its not a great issue, but I wish to know if there is a clue > > to daily(5) not complaining about relocated named(8). > > I always move named(8) to /var/chroot as it is supposed > > in

Re: Typo in vitut.txt

2019-06-17 Thread Valery Ushakov
adr wrote: > /usr/share/doc/usd/vi/vitut.txt lines 943-984/2970 ... [...] > "...you shoud use a _named_ buffer." Applied. Thank you. -uwe

Re: uniq on open streams

2019-04-23 Thread Valery Ushakov
Andreas Krey wrote: > [...] also: > >netbsd$ uniq --help >uniq: uniq: No such file or directory Thanks, this one should be fixed now. -uwe

Re: Swap over NFS

2019-04-02 Thread Valery Ushakov
Greg Troxel wrote: > BERTRAND Jo?l writes: > >> I'm trying to configure swap over NFS (on a diskless workstation). >> >> I have created a swapfile on nfsserver:/srv/schwarz/ (swapfile.0) and >> added in client /etc/fstab : >> >> nfsserver:/srv/schwarz/swapfile.0 none swap sw,nfsmntpt

Re: rc.d problem

2019-01-18 Thread Valery Ushakov
Dima Veselov wrote: > On Fri, Jan 18, 2019 at 02:16:31PM +0100, Martin Husemann wrote: >> On Fri, Jan 18, 2019 at 04:07:06PM +0300, Dima Veselov wrote: >> > I have completely no idea why 8.0-STABLE can't take non-integer value. >> Is there a locale issu involved? > > Ahh, magician, how did you go

Re: wscons.conf ledstate and screen issues

2018-12-14 Thread Valery Ushakov
Rocky Hotas wrote: > Second issue is about the creation of new screens. I modified from default > the wscons.conf file as follows: > > #screen 0 - vt100 > screen 1- vt100 > screen 2- vt100 > screen 3- vt100 > screen 4- vt100 > s

Re: wscons.conf ledstate and screen issues

2018-12-12 Thread Valery Ushakov
Rocky Hotas wrote: > After installing 8.0 amd64 and tweaking wscons.conf, I experienced exactly > the same issue as in this old message: > > https://mail-index.netbsd.org/netbsd-users/2012/09/24/msg011493.html > > I would like to have num lock (and its led) active at the login screen. > > # ws

Re: Why is TERM=vt100 on the console?

2018-09-14 Thread Valery Ushakov
Valery Ushakov wrote: > Anyway, as I said, if you know you will always/mostly use wscons, > just go and change the value in ttys. Or even better, change console to off and ttyE0, which is already set to wsvt25, to on. This is the default e.g. on macppc (of the ports that I use). -uwe

Re: Why is TERM=vt100 on the console?

2018-09-14 Thread Valery Ushakov
m...@netbsd.org wrote: > On Fri, Sep 14, 2018 at 11:08:29AM +0000, Valery Ushakov wrote: >> m...@netbsd.org wrote: >> >> > Every time we have this discussion someone ends up saying that yes, >> > everything being terrible and not supporting anything modern is a

Re: Why is TERM=vt100 on the console?

2018-09-14 Thread Valery Ushakov
m...@netbsd.org wrote: > Every time we have this discussion someone ends up saying that yes, > everything being terrible and not supporting anything modern is a > great default. they like it that way. /etc/ttys uses wsvt25 on all ttyE* for a long long time. It only uses vt100 for console, which

Re: wip/virtualbox vs emulators/qemu vs xen performance comparison?

2018-06-05 Thread Valery Ushakov
Mayuresh wrote: > Various mailing lists report Virtualbox to be faster. I have used > the same on Linux and found it satisfactory. I have used qemu on > NetBSD and felt it was slower. VirtualBox doesn't support NetBSD as a host. -uwe

Re: PTHREAD_MUTEX_INITIALIZER on 6.1.5 issues

2018-05-30 Thread Valery Ushakov
Martin Husemann wrote: > On Wed, May 30, 2018 at 10:34:10AM +0200, Riccardo Mottola wrote: >> well it should return a value, look here for POSIX: >> >> http://pubs.opengroup.org/onlinepubs/7908799/xsh/pthread_mutex_init.html > > I don't see where it says that it should return a value. Note that

Re: PTHREAD_MUTEX_INITIALIZER on 6.1.5 issues

2018-05-29 Thread Valery Ushakov
Riccardo wrote: > I am testing build og GNUstep base (head) on NetBSD 6.1.5/sparc > > Build fails with: > > Compiling file NSObject.m ... > NSObject.m: In function '+[NSObject initialize]': > NSObject.m:1049:34: error: expected expression before '{' token > NSObject.m: At top level: > > you

Re: nc -N and EOF

2018-02-28 Thread Valery Ushakov
Patrick Welche wrote: > I tried > > echo "hello from server" | nc -l 1234 > > nc -l 1234 << EOF > hello from server > EOF > > echo "hello from server" > tmpfile > nc -l 1234 < tmpfile > > and in all cases > > nc -N 127.0.0.1 1234 > > prints "hello from server" but doesn't exi

Re: vt100

2017-12-30 Thread Valery Ushakov
Kamil Rytarowski wrote: > How to setup correctly vt100 in a terminal? > > I've set exported TERM=vt100, called tset and stty and I keep > observing artifacts. Heh. This is not how terminals work. Forget about terminal emulators for a momemnt. Back in the day people used real CRT terminals an

Re: Getty on USB serial port

2017-09-15 Thread Valery Ushakov
Michael van Elst wrote: > On Fri, Sep 15, 2017 at 05:52:10AM -0400, William D. Jones wrote: > >> ``` >> rpi-ptrain$ ls -l /dev/plcom0 >> crw--- 1 uucp wheel 93, 0 Jun 25 12:49 /dev/plcom0 >> rpi-ptrain$ ls -l /dev/ttyU0 >> crw--- 1 wjones tty 74, 0 Jun 25 17:42 /dev/ttyU0 > >> Why

Re: uts(4) touchscreen calibration

2017-09-15 Thread Valery Ushakov
Frank Wille wrote: > One year ago I successfully used uts(4) on a Raspberry-Pi with a ViewSonic > touch screen monitor. It worked perfectly after eliminating the black > borders in the RPi's config.txt. > > Now we got another ViewSonic touch screen (model TD2421), which is no > longer correctly

Re: Getty on USB serial port

2017-09-15 Thread Valery Ushakov
William D. Jones wrote: > * `getty` is in fact spawning the `NetBSD (hostname) (tty?) login:` > message and prompt, correct? Then `getty` will execve `login > [user]` to ask for the password? One thing that confuses me is that > the "user" prompt from both login and getty are identical. So I >

Re: Error trying to create gre tunnel

2017-08-12 Thread Valery Ushakov
On Sat, Aug 12, 2017 at 08:48:24 -0400, D'Arcy Cain wrote: > On 08/12/2017 12:16 AM, Valery Ushakov wrote: > > You can forward all trafic from the consumer gizmo internet facing > > router (with single public IP address from the provider) to the > > internal netbsd ro

Re: Error trying to create gre tunnel

2017-08-11 Thread Valery Ushakov
Andy Ruhl wrote: > On Fri, Aug 11, 2017 at 3:53 PM, D'Arcy Cain wrote: >> On 08/11/2017 12:37 PM, D'Arcy Cain wrote: >> It turns out that I misunderstood the example. Both servers need to be on >> the public Internet. In my case only the remote was. >> >> Is there some way to do this? I can p

Re: NetBSD 7.1 i386 on Virtualbox (fatal breakpoint trap in supervisor mode)

2017-07-16 Thread Valery Ushakov
Thor Lancelot Simon wrote: > On Sun, Jul 16, 2017 at 05:35:09PM +0000, Valery Ushakov wrote: >> >> Right, because you use VT-x. Older CPUs and low-end CPUs (atoms) >> don't have VT-x. Even if your CPU supports it, you might also need to >> explicitly enable VT-

Re: NetBSD 7.1 i386 on Virtualbox (fatal breakpoint trap in supervisor mode)

2017-07-16 Thread Valery Ushakov
Gua Chung Lim wrote: > * Valery Ushakov (u...@stderr.spb.ru) wrote: >> Without VT-x enabled VirtualBox fails to run NetBSD by default. This >> is a VirtualBox limitation, it cannot correctly handle some low-level >> kernel code that NetBSD uses. IIRC, using --recompile-supe

Re: NetBSD 7.1 i386 on Virtualbox (fatal breakpoint trap in supervisor mode)

2017-07-16 Thread Valery Ushakov
Rodolfo Edgar wrote: > 2017-07-16 8:53 GMT-05:00, Valery Ushakov : >> Rodolfo Edgar wrote: >> >>> 2017-07-15 20:35 GMT-05:00, Valery Ushakov : >>>> Rodolfo Edgar wrote: >>>> >>>>> I have machine when I am using virtualbox, I use

Re: NetBSD 7.1 i386 on Virtualbox (fatal breakpoint trap in supervisor mode)

2017-07-16 Thread Valery Ushakov
Rodolfo Edgar wrote: > 2017-07-15 20:35 GMT-05:00, Valery Ushakov : >> Rodolfo Edgar wrote: >> >>> I have machine when I am using virtualbox, I use 32 bits operating >>> system as Debian, CentOS, FreeBSD, but NetBSD and OpenBSD have >>> problem, i

Re: NetBSD 7.1 i386 on Virtualbox (fatal breakpoint trap in supervisor mode)

2017-07-15 Thread Valery Ushakov
Rodolfo Edgar wrote: > I have machine when I am using virtualbox, I use 32 bits operating > system as Debian, CentOS, FreeBSD, but NetBSD and OpenBSD have > problem, in this case NetBSD 6.x or 7.x have problem: > The screenshot about NetBSD and VirtualBox > > http://i.imgur.com/RtynhXn.png > >

Re: Updates to man-k.org

2017-05-15 Thread Valery Ushakov
Abhinav Upadhyay wrote: > Just wanted to post some recent updates that I have made to > http://man-k.org (a web interface on top of NetBSD's apropos(1)): Thanks for your continuing work on this! There appears to be a problem with NetBSD-7 index. Searching for anything returns nothing: "No rele

Re: Best way to receive netbsd.org list messages?

2017-02-05 Thread Valery Ushakov
Thomas Mueller wrote: >> > I visited their website, also tried to browse messages from the news >> > link on http://www.netbsd.org/mailinglists/ , got blank pages. > >> Those links looks broken indeed, but NNTP does work. E.g. if you look >> at the headers of this message you can see it was sen

Re: Best way to receive netbsd.org list messages?

2017-02-04 Thread Valery Ushakov
Thomas Mueller wrote: > Thomas Mueller wrote: > >> Do I do better to [...] use gmane with NNTP software? There are >> NNTP packages for Linux, *BSD, Haiku, even DOS (let's not forget >> mutt). > [...] >> ... but somebody might be able to say how they fare with gmane. > >> I've been usi

Re: Best way to receive netbsd.org list messages?

2017-02-03 Thread Valery Ushakov
Thomas Mueller wrote: > Do I do better to [...] use gmane with NNTP software? There are > NNTP packages for Linux, *BSD, Haiku, even DOS (let's not forget > mutt). [...] > ... but somebody might be able to say how they fare with gmane. I've been using gmane nntp for a long time now to read a lo

Re: debugging a memory leak

2016-05-20 Thread Valery Ushakov
Timo Buhrmester wrote: > > but it's limited to Linux, Darwin, and Solaris. > > Last time I checked, FreeBSD also had valgrind working. I wonder > how much effort it would be to port it to NetBSD. As far as I understand (I had my brushes with valgrind internals) it's mostly the drudgery of, eff

Re: question; how to build individual userland programs on NetBSD 7-RC3 ?

2015-09-16 Thread Valery Ushakov
Martin Husemann wrote: > On Wed, Sep 16, 2015 at 08:58:22AM +0200, Martin Husemann wrote: >> The officialy sanctioned way is to create tools upfront (e.g. by runing >> "build.sh tools" or a variant of that) and use nbmake-$arch from the >> $TOOLDIR/bin/ directory created by that step. > > Actual

Re: su makes not proper root

2014-09-27 Thread Valery Ushakov
Zoran Kolic wrote: > but mail tries to read /var/mail/user file. I might change it with > "folder /var/mail/root" and read as I should. I'm puzzled how su on > netbsd works. Have I made a mistake or it is normal behaveour? su - (also -l or -d) -uwe

Re: something like linux-fb?

2014-09-10 Thread Valery Ushakov
Mayuresh Kathe wrote: > On 2014-09-10 18:11, Mayuresh wrote: >> On Tue, Sep 09, 2014 at 11:02:42PM +0530, Mayuresh Kathe wrote: >>> is there something under netbsd which provides capabilities similar >>> to the linux graphics framebuffer driver? >> >> https://mail-index.netbsd.org/pkgsrc-wip-revi

Re: stdbool.h gcc compiler query

2013-08-08 Thread Valery Ushakov
Manuel Bouyer wrote: > On Thu, Aug 08, 2013 at 11:09:12AM +0100, Patrick Welche wrote: > >> One of the hunks of XSA-55 which I am trying to apply to xenkernel42 is: >> >> --- a/xen/include/xen/libelf.h >> +++ b/xen/include/xen/libelf.h >> @@ -29,6 +29,11 @@ >> #error define architectural endian

Re: issues running i386 6.1 under VirtualBox 4.2.12

2013-06-21 Thread Valery Ushakov
Malcolm Herbert wrote: > trap type 6 code 0 eip c0100ea6 cs 8 eflags 82 cr2 fbc0ad8b ilevel 1 > kernel: supervisor trap page fault, code=0 > Stopped in pid 0.1 (system) at netbsd:Xspllower+0x16: addb > 0(%eax),%al > db{0}> > > I've set the VM guest to the following parameters: 128MB memory,

  1   2   >