@itsericwoodward@itsericwoodward.com Iâm not a hardcore OS/2 fan, either, but it does spark a great deal of nostalgia for me. đ For example: https://movq.de/blog/postings/2024-12-25/0/POSTING-en.html
Crazy, who comes up with things like that?
I didnât come up with it, but I was close, I guess. DOS is so small, you donât have much of a choice but to search for âanything related to timeâ. There arenât that many syscalls/functions. Youâll quickly notice that thereâs no global tick counter. So what else is there? Hmm, âget the mtime of a fileâ is pretty much the only other time-related thing. And which file is âstableâ, probably allocated just once at boot? Mark Aitchison tried to use NUL, which is a pretty good idea. Thinking about it in retrospect, stdin does indeed make more sense, though, because that object really does get allocated just once at âbootâ and then it stays the same. Thatâs not guaranteed for NUL (although just as likely).
But, it is possible in DOS to move âthe consoleâ to a serial port:

I wonder what that does to my little uptime program. :-)
Today, I also learned that
-Ris an alias for-rinrm.
Ah, I remember that. Dug it up and saved it in the blog: -R is more portable/consistent: http://movq.de/blog/postings/2026-09-30/0/POSTING-en.html
@prologic@twtxt.net Oh gosh, that looks wonderful. đ
A few more pics if my trip đ

@movq@www.uninformativ.de OS/2?

I hadnât thought about that in 20+ years⊠In high school, I had a friend who was a die-hard OS/2 Warp fanboy, but I never got into it (and wound up jumping ship to Linux in college).
@movq@www.uninformativ.de Oh, itâs been a hot minute since I last came across Pascal. :-) When I first quickly skimmed through the code, my eyes fell on the reproducer in the comment and I immediately thought: This reminds me of Delphi! And sure enough, I then saw the .PAS file extension in the URL. That Kiwi applied some strange code formatting, I have to say, though.
Haha, thatâs a sweet trick with stdin. Crazy, who comes up with things like that? It would have never crossed my mind to do stunts like that. :-D
Today, I also learned that -R is an alias for -r in rm. I think I never saw -R used here before. Of course for chmod and chown, but not rm.
@zyak@twtxt.z85b.xyz Oh yeah. I know that too well with my digicam. It has good zoom, but it doesnât help when birds are quickly disappearing again. You did good, keep âem coming. :-)
@zyak@twtxt.z85b.xyz Beautiful! Is that the lizard snack? Poor little guy. When I visited Down Under, I petted a blue-tongued lizard. That was really cool. And I was very surprised how rough and bumpy that was. I expected it to be very smooth, but no, not at all.
Made a little program to print the systemâs uptime on DOS, OS/2, and Windows NT:
https://movq.de/git/retrouptime/
(Release pending.)
This was pretty easy to do on Windows, a bit harder on OS/2 (because documentation is scarce), and quite the mess on DOS. DOS doesnât explicitly keep track of the systemâs uptime, so you have to resort to tricks like âgive me the mtime of stdinâ, which probably works ⊠Yeah.


