[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 1741473312029583.jpg (78 KB, 550x577)
78 KB
78 KB JPG
previous: >>107939911

#define __NR_writev                20

https://man7.org/linux/man-pages/man2/writev.2.html

oh man, this is basically the same as the last one.... not much to say today. i am really not looking forward to the setuid and xattr doldrums. i honestly am a bit tempted to squish them all together, and then maybe we can fit in some newer syscalls that weren't included in musl libc. maybe even start doing something similar with all the read/write and set/get pairs... but that's for me to decide another day.
talk some more about vectored io, i guess. i am very eepy, so that's all you'll get from me today in terms of discussion starters. thank u for subscribing to my blog

relevant resources:
man man

man syscalls

https://man7.org/linux/man-pages/
https://linux.die.net/man/
https://elixir.bootlin.com/linux/
https://elixir.bootlin.com/musl/
https://elixir.bootlin.com/glibc/
>>
>>107948632
this is actually faster than plain write when writing to the tty
no idea why
>>
>>107949050
how extensive was your testing?
>>
>oh man, this is basically the same as the last one....
unlike readv, which is worthless, writev has an actual use case though
>>
>>107949498
go on?
>>
>>107949303
no testing, I realized it once but never cared enough to look into it
>>
>>107949623
Short reads are possible so readv is useless.
>>
>>107948632
Thanks chatgpt
>>
>>107949840
are short writes impossible?
>>
>>107950578
possible but much rarer
>>
>>107952365
why do you feel that way?
>>
>>107949840
Just retry the read surely? Adjusting the slices is annoying but not hard
>>
>>107953873
>Adjusting the slices
Linux guarantees that you won't need that
>>
>coding thread on a nocoder board
>filled with nocoder posts
lomoa
>>
>>107953900
Can't it stop halfway through a slice as with non-vectored I/O?



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.