<_ngn>
using ATAPI with AHCI, is there a way to check if the device is write-protected (read-only)?
<_ngn>
i checked out some of the SCSI commands but none of them seem to deliever this information
edr has quit [Quit: Leaving]
_ngn has quit [Quit: WeeChat 4.4.2]
_ngn has joined #osdev
pabs3 has quit [Quit: Don't rest until all the world is paved in moss and greenery.]
pabs3 has joined #osdev
<zid`>
ASC 27h?
<_ngn>
do i get that by sending MODE SENSE?
hwpplayer1 has joined #osdev
hwpplayer1 has quit [Remote host closed the connection]
_ngn has quit [Quit: WeeChat 4.4.2]
Gooberpatrol_66 has joined #osdev
<kof673>
> became poorly portable > the number is how technical you want to be well, what can you do, simulate vulkan on dos? opengl for atari? provide a base "lowest common deniminator" and let people optionally use more if available?
Gooberpatrol66 has quit [Ping timeout: 260 seconds]
<kof673>
*denominator. not sure there is a good answer here if they want to also implement modern stuff
<kof673>
> what's there has been battle-hardened in Steam and DOTA2 and CS2 for over a year now those people would arguably not like a lowest common denominator version :D split it into 2 libraries, a lite and a "modern" ?
<kof673>
> like things breaking out of their order in heirarchy of names of things? firefox and seamonkey, this happens all the time :D
<zid`>
til shm_open on linux is just a wrapper that prepends /dev/shm
<zid`>
I assume it's that way so that people could... not implement it that way
<zid`>
proper handles not filesystem handles
randm has quit [Remote host closed the connection]
<immibis>
i say windows and linux are the same platform because they both run code. Discrete digital logic, now that's a different platform.
<heat>
as if BSD hasn't used gcc for 30 years?
<heat>
and commonly zsh because no one uses csh
<nikolar>
Actually they are using clang generally
<heat>
that's fairly new
<pog>
it really really depends on what you mean by platform
<nikolar>
Netbsd is still on GCC
<pog>
Windows NT had a conformant subsystem for POSIX
<nikolar>
Do you mean wsl
<zid`>
no
<zid`>
it has select
<zid`>
and stuff
<pog>
no i mean the NT subsystem for posix
<pog>
SFU
<pog>
way older
<immibis>
well every linux i've ever had used bash or dash as the default shell, while zsh is something the user has to explicitly opt into. So that's a difference.
<zid`>
xp literally has select() and so does w11... but it only supports MAX_FDS of 32 :D
<nikolar>
Yeah that was a joke pog
rlittl01 has joined #osdev
<pog>
oh lol
<immibis>
actually is the default login shell ever dash? i know debian replaced sh with dash but you still log in with bash by default right?
<pog>
so platform is a fungible term
<zid`>
pog: Can I get that in the form of a non-token?
<immibis>
windows select works differently
<heat>
zid`, are you talking about the winsock select or are you thinking of a different select?
<pog>
zid`: yes
rlittl01 is now known as rlitt
<immibis>
it doesn't have file descriptors, just emulates something like select to make porting easier. It really wants to use IOCPs or at least async window messages.
<zid`>
yea it's part of winsock2 apparently
rlitt is now known as rlittl01
<immibis>
popular opinion: IOCP > select/poll/epoll
<zid`>
but open is part of msvcrt
<immibis>
msvcrt emulates an API similar to file descriptors to help with porting. so does winsock. two different but similar modules
<zid`>
the most annoying thing about windows is that its fopen is C not POSIX, ngl
<heat>
io completion ports aren't even the same thing as select/poll/epoll
<immibis>
no, they're better
<heat>
no, they're not the same thing at all
<zid`>
means you have to throw in random fseeks everywhere
<zid`>
immibis can't decide if he's a lumper or a splitter
<immibis>
yes, they're not the same thing and they're better
<zid`>
he's splitting unices but lumping io
<pog>
i'm lumping while i split
<immibis>
zid`: sounds like your lumper and splitter categories need to be split more
<pog>
and splitting while i lump
<zid`>
pog: You always struck me as the type to lump a lot
<pog>
yeah it's a false dichotomy
<zid`>
all over the carpet
<heat>
zid`, is it that one thing where you need to seek after fread/fwrite?
<zid`>
heat: ye a
<immibis>
pog: i split open your mom's lump (the more i ponder that sentence the more i wonder wtf does that even mean)
<pog>
lmao
<zid`>
C says file pointer isn't valid if you write then read, posix says it is
Dead_Bush_Sanpai has quit [Ping timeout: 264 seconds]
Dead_Bush_Sanpa1 is now known as Dead_Bush_Sanpai
theyneversleep has quit [Remote host closed the connection]
Left_Turn has joined #osdev
steelswords94 has quit [Read error: Connection reset by peer]
Turn_Left has quit [Ping timeout: 245 seconds]
steelswords94 has joined #osdev
Gooberpatrol66 has joined #osdev
Gooberpatrol_66 has quit [Ping timeout: 260 seconds]
Turn_Left has joined #osdev
Left_Turn has quit [Ping timeout: 248 seconds]
GeDaMo has quit [Quit: 0wt 0f v0w3ls.]
goliath has joined #osdev
kuan has joined #osdev
heat has quit [Read error: Connection reset by peer]
heat has joined #osdev
heat has quit [Read error: Connection reset by peer]
heat has joined #osdev
kuan has quit [Ping timeout: 265 seconds]
<the_oz_>
"immibis> not every program is a highly concurrent web server" this sounds like a dare
<the_oz_>
">not everything is a file" ">not everything is a CSP tasklet" ">not everything is web aware"
<the_oz_>
quick, hide, it's rob pike
<the_oz_>
russ cox, kernighan and crew
<the_oz_>
and they have taken that personally
jedesa has quit [Read error: Connection reset by peer]
<kof673>
> But as for the first person to mention lumpers and splitters in the same breath, the credit is due (as far as I can tell) to Edward Newman (1801–1876) > “The time has arrived for discarding imaginary species, and the duty of doing this is as imperative as the admission of new ones when such are really discovered. The talents described under the respective names of ‘hair-splitting’ and ‘lumping’ are unquestionably y
<kof673>
ielding their power to the mightier power of Truth.”
<kof673>
it is likely based on misunderstanding truth and Truth, which was always double
<kof673>
people capitalize "Truth" as singular, when it meant double
jedesa has joined #osdev
<kof673>
p1: let me show you this amazing new invention, it is known as an automobile. p2: great, let me get my horses and donkey and hook them up to this amazing new wagon. what a wonderful new stagecoach!
<kof673>
confusion of tongues is eternal :)
Turn_Left has quit [Read error: Connection reset by peer]
<kof673>
looking at other newman quotes, this is almost certain
rlittl01 has quit [Remote host closed the connection]