[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

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: 1606501016151.jpg (1.04 MB, 2058x2430)
1.04 MB JPG
previous: >>108652596

#define __NR_reboot                    169

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

tl;dr:
power off a machine

OR, enable/disable Ctrl+Alt+Del
really kind of strange to bundle those together, but sure.

you can: restart, restart with a command, power off, halt, do a kexec, suspend, or manage the CAD key combination
especially interesting is the behavior of some of these commands within pid namespaces: they'll only reboot that namespace, and not the whole machine

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/
>>
>>108661408
posing in a thread of posers
>>
>>108661492
i think i at least am not a poser
>>
>>108661408
>reboot
one of my favourites, really.
>>
>>108661817
why's that?
>>
Note that CAD here doesn't lock the screen, it restarts the computer, the same as reboot(2) would.
>>
>>108661859
I like that it can only be run if you have special permissions. I use it often. It is very useful and it hasn't failed me once. Another favourite is sync(), maybe that can be the next thread.
>>
>>108661408
>Image
Nooo, what? Only negative feels. Why do women date terrorist refugees from kurdistan/ISIS when stuff like this happen to them?? Culture is so fucked. Refugees are mostly lawless murderers that escape their crimes, dont be fooled, full of STDs
>>
huh, didn't know this syscall/cli wrapper existed. I've only ever used
sudo poweroff
>>
>>108661910
Because the alternative is sleeping with a betamax like you.
>>
File: 6w9xfwp.png (1.46 MB, 887x1272)
1.46 MB PNG
>>108661408
this guy is such an insufferable faggot shitting up this already crappy board with his gay ass tranime spam. when will you finally stop? im tired of seeing your shit
>>
i like your tranime spam. please keep posting to make >>108663342 seething
>>
>>108663396
I second this motion.
>>
>>108663342
this, /po - I mean, /g/ should be dedicated to the discussion of trannies and vidyagaems
>>
>>108664209
This unironically.
>>
bampu
>>
>>108661492
>poser
>in a anonymous board
so, having interesting content is now being a poser.
when did 4chan go for a fun place to learn interesting stuff, to the place that defends mediocrity?

>>108661869
so that's how CAD is disabled when you switch to tty from your DE? interesting.

>>108663342
no one is forcing you to look at the image, RETARDS
>>
>>108663342
kill yourself, pretty please
>>
>>108665353
autist
>>108661817
autist
>>108661869
autist
>>108665248
autist
>>108661980
autist
>>
>>108661885
>I use it often
jesus christ, what a fucking larp.
>>
>>108665548
no u
>>
>>108661793
they all think that
>>
>>108661869
That's what control alt delete always did on any pc on any os, dumbass. Who ever thought that key combo was to "lock the screen?" Larpers are insane
>>
>>108661910
Women refuse to date boring white knights like >>108662443
>>
>>108664209
I, too, post about topics I don't have a clue on to have a vehicle for my not so subtle tranny validation material.
>>
>>108665353
idiots learning from idiots
>>
>>108661408
tranny ahh image
>>
>>108661817
>>108661885
I'm imagining you absolutely clueless and saying that with all the irony in the world, kek.
>>
>>108661408
>really kind of strange to bundle those together, but sure.
not really, ctrl+alt+del is the historical key combo for rebooting a pc. it works in DOS, and it still works in Linux if entered from a TTY/outside of a GUI.
It was later repurposed in GUIs to bring up some form of task manager/killer instead as operating systems became more stable/multi-tasking. (back in the day you killed a program by rebooting because you were only running one program at a time)
>>
>>108661910
women will choose an abusive boyfriend over a kind one because at least the abusive one presents as masculine. it's not so much that they like being abused (most of the time), they're just biologically wired to be attracted to someone at least capable of violence, that is their monkey brain thinks such a man would be violent to protect her as well.

this post isn't intended to put down women, it's just a basic fact
>>
>>108665671
You think rebooting your computer is a LARP?
>>
File: fyl.png (45 KB, 240x240)
45 KB PNG
>>108663342
Kill yourself N*zi.

OP, keep us posted.
>>
>>108665720
Speaking from experience, I take it?
>>
i would date a /g/ anon, so long as he were either cute/hot, or way smarter than me
it's a big ask, though, i know
>>
>>108666049
Holy pickme
>>
>>108666062
what's pickme about that? if anything, my standards are *too* high
>>
>>108666083
>teehee, isn't there a smarter man who'd date me
The smarter men are already bored by you.
>>
>>108666100
i don't know that men smarter than me exist
or at least not on /g/
>>
>>108666124
You wouldn't recognize them if you tried.
>>
>>108666128
it's hard to recognize that which doesn't exist, after all...
>>
>>108666136
Yeah, it's like asking a blind man to find a rainbow.
>>
>>108666228
more like the pot of gold at the end of one, lol
>>
>>108666279
Why would I tell him that?
>>
>>108666004
no, because I'm not a boring white knight like you.
>>
>>108661910
what does that have to do with the image
retarded ass bot posters
>>
>>108666799
Not only am I not, but you will deny that I'm not, because your contrarian identity would otherwise crumble.
>>
>>108665839
This thread is way too stupid to know this. No point in effortposting unless you enjoy getting baited into posting the most LLM ass response ever. That's literally what they want. It's literally the modus operandi of one of these freaks to post the most retarded opinion to bait someone halfway competent into correcting them in earnest.
>>
>>108666810
>I'm not a betamax because I say I'm not
autistic.
>>
>>108666816
Nah, you're just retarded.
>>
>>108665965
leftists hate the jews now tranny.
>>
>>108666827
That's how that works, apparently.
>>
>>108665874
tsmt
>>
>>108666833
I will slit your throat with a blunt caliper, autist.
>>
>>108666844
So you finally learnt to pick the lock on your cage?
>>
>>108666801
>t. the biggest botposter itt
>>
>>108666855
Schizophrenia.
>>
>>108666835
only to a particularly delusional one
>>
File: 1776830113759970.jpg (37 KB, 512x410)
37 KB JPG
>>108666871
Make up your mind.

... hee. Mind. As if.
>>
>>108666049
he'd have to be gay, too
>>
>>108666881
You have it all, you special boy.

... hee. Boy. As if.
>>
>>108666875
So last thread DID teach you a lesson.
>>
>>108666891
last thread? what the fuck are you talking about?
>>
>>108666889
Well, if you say so: >>108666875
>>
>>108666906
sweet summer child...
>>
>>108666906
The one linked in the OP, autist.
>>
>>108665945
>I use (the syscall) often. It is very useful and it hasn't failed me once.
if that's not a larp I don't know what is.
>>
>>108666911
See >>108666871
>>
>>108666124
Check out this syscall whiz over here.
>>108666228
He is too autistic to know.
>>
I for one love the powerless autistic seething.
>>
>>108665711
That sounds about right for the syscall thread.
>>
>>108666918
...holy fuck. what are you doing to this general?
>>
>>108666937
why are you doing this to the general? why do you want it to die?
>>
>>108666954
It's more like that it's acceptable collateral to put autists back into their rightful places.
>>
>>108666966
>he posted it again
are you the barneyfag? did someone post a pony in these threads once? I don't understand what did the syscall troon ever do to you?
>>
File: they_like_them.png (30 KB, 930x370)
30 KB PNG
>>108666970
You want more? Sure.
>>
>>108666974
no I don't. did someone make you seethe in this general once? I just don't get why you're doing this, and with such vigor too.
>>
>>108666979
Couldn't make it ten posts into the thread, hm? >>108656177
>>
>>108666990
>>108656177
>There's none. Kernelspace is completely fucking cooked because they're all copying the same old UNIX shit.
>
>Why? Well, if I'm right it's autism.
>If I'm wrong, then hardware manufacturers - for *some indiscernible reason* - decided to introduce hardware improvement that just can't, can't, CAN'T be used for general-purpose computing, which is about what autists would claim because there's no fucking way they'd ever be wrong.
>
>And any alternative would have to start with thread-local page tables, because otherwise you end up with smashed caches.
... what?
>>
>>108667001
Do you need Google to translate it into your native language or something?
>>
>>108667005
do I need some form of mental illness to even begin to understand what you're getting at? can an anon help me out on this one?
>>
>>108666816
i just enjoy explaining things i happen to know about. i know not everyone cares to know, but if anyone scrolls past it and goes "oh so that's why" or whatever, that's enough for me.
>>
>>108667016
>immediately assumes someone else is at fault
Many autists here today.
>>
>>108667034
is it my fault for not understanding what that run of words you make zero attempts to elucidate or even made clear for the other party? how is that not the hallmark of autism to begin with?
>>
>>108667042
>is it my fault for not understanding what that run of words you make zero attempts to elucidate or even made clear for the other party?
Apparently. After all I'm still waiting for someone to articulate the reason.
>>
>>108667025
That's a good mentality to have, anon. Hopefully this trainwreck of a thread can appreciate it.
>>
>>108667043
so you actually are just shitting up the thread for no good reason, gotcha. funny how people are still buying into your NT/UNIX larp.
>>
>>108667075
Just admit your autism already.
>>
>>108667057
honestly, despite seeing "syscall of the day" several times before, this is the first time posting in one of these threads only because i noticed the confusion regarding the relationship between rebooting and ctrl+alt+del. i don't actually know what this thread is about.
reading OP fully just now i guess it's just "here's a syscall; talk about it", so my comment is kinda relevant i guess. the topic is a bit vague.

and yeah, in general i do like posting things which may be helpful even if not to the person i'm responding to and even if it doesn't get any replies. i believe it's in the spirit of anonymous posting, impersonal, undirected ideas and thoughts.
>>
>>108667093
That's what I do too. But I've grown to be wary of those who abuse this goodwill to frame their questions as blatantly wrong statements to better bait answers out of others.
>>
>>108667104
Autism doesn't make one right.
>>
>>108667090
>>108667114
you are a blight on this general
>>
>>108667126
Seethe about it, autist.
>>
>>108667104
i know what you're talking about, being "maliciously wrong" purely to get a right answer out of people, but i doubt op intended that, he doesn't appear to even be asking if there's a reason rebooting and ctrl+alt+del are bundled together, much less give a wrong opinion (he gives no opinion regarding why it's there).
that said, even if it is that i will sometimes still answer it, if it's something that's not terribly obvious. i know CAD as a reboot combination as i'm just old enough to have used MS-DOS, so i understand it's relationship to rebooting and also the relationship between rebooting and killing programs, which is how CAD is used today
>>
>>108666049
same, except that i'm ugly and stupid and no anon would date me
>>
>>108665874
I think that women like violent rapist because it is a better genetic investment. A violent rapist will get violent rapist sons, and if they dont get pussy, they will take it by force. Just a smarter genetic strategy, and women are tools of their biology.
>>
>>108665965
>Why does history have so many plot holes and deus ex machina moments?>ask the r*ssians and amerifats, they wrote it.
Wow, im so sad because of all the "jews" that got killed in consentration camps that looked like gulaks next to the easter front. Hmm, maybe I WILL take a trip to Argentina...
>>
... so *that's* what you get up to when I leave this thread for half an hour.

The opinions of autists never mattered.
>>
>>108667137
*she
>>
>>108667220
i don't disagree, from a biological standpoint it makes sense. and yes, women are natural followers, they follow the trends amongs themselves, they follow the demands of strong masculine figures and they follow their biological instincts.
if you aren't willing to take control of a woman they will go with someone who does.
>>
>>108667291
i'm using "he" in the neutral/"i don't know" sense here, i don't know op's sex nor do i care to speculate
>>
>>108667183
op...
>>
>>108667683
oh, that wasn't me
i'm >>108666049
i'm very cute and quite the catch, if i'm being perfectly honest
>>
>>108667025
>anyone scrolls past it and goes "oh so that's why"
I have, anon. I have.
>>
File: Fsvlb8qaIAMYT5-.jpg (43 KB, 680x653)
43 KB JPG
>>108667900
and i appreciate you saying this
>>
>>108667131
why do you want op to stop making these threads so badly? is it your love for windows NT and hatred of UNIX?
>>
>>108667683
nope, not op
>>
>>108668073
>the autist actually believes this
>actually
>believes this
>>
>>108668679
are you trying to deny it? but that's the only logical conclusion any anon must draw from your AI ramblings.
>>
>>108668691
Only if you're so fucking autistic that you should actually be banned from the fucking internet: >>108659812

I swear to god, I'm surrounded by it.
>>
>>108668741
(In addition, one thing that Linux does absolutely better is user => kernel copies. That's a neat trick with the page fault interrupt. NT could've copied that one ages ago).
>>
>>108667280
I thought they were you.
>>
>>108668741
>>108668753
autism.
>>
>>108668781
>>108667280
>>
>>108668789
>>108668781
>>
>>108668753
do you really believe a single praise is enough to convince anyone that you're not trying your best to kill this general for milady NT?
>>
>>108668797
>>108667280

I for one wouldn't mind if we just outlawed autists. We could put them in a special hole in ADX where the prisoners could just beat them up for recreation, and we could record the interactions and sell them as audio books to get in some additional revenue.
>>
>>108668806
>>108667280
>>
>>108668818
okay.. this is just you blowing a gasket. come back to me when you've cooled down a bit you total sperg.
>>
>>108668831
The audio books would help: >>108668812
What I wouldn't give to listen to two hours of blood-curdling autistic screaming and moaning.
>>
>>108668812
>>108668781
>>
>>108668847
meds
>>
i think autists are cute and molestable, but i might just be biased
t OP
>>
>>108668930
to be clear, i meant that i am biased because i am myself a molestable autist
>>
>>108668893
Why would I advocate for myself to be sent to ADX? That only makes sense for non-autists, autist.

>>108668753
Oh, here's another one that is going to confuse the bejesus out of autists: larger page sizes.
>have to open a process token
>look to up the current value for the privilege in question
>(which, for the record, creates and closes an LSA hande for every single call, that could've been used in subsequent interactions - but who's counting)
>actually adjust the token privilege
>close the token
>now have to use special APIs like NtAllocateVirtualMemoryEx that don't specifically block requests for 1 GiB pages
>only for this shit to fail randomly
>because Windows cannot be bothered to keep its memory unfragmented
>and MS cannot be bothered to provide a boot option to reserve bigger pages

Or we could talk about the fact that, on Windows, memcpy will switch to NT stores at payloads higher than 512 KiB, or how they still use SSE instructions, or how it's a fucking crime interfaces cannot reveal information about their implementations (i.e. "don't worry, I'm not using SIMD instructions, you don't have to generate a fucking VZEROUPPER or preserve your own registers if you call me").

But that would require, y'know, intelligence. And autists are retards. Which is why I'm so OK with outlawing them.
>>
>>108668962
holy fuck, now that is a wall of stupid.
>>
>>108668976
>>108667280
>>
>>108668962
Dunning Kruger ahh post
>>
>>108668995
>>108667280
>>
>>108668990
is your goal to just call everyone itt an autist now? you are much more stupid than previously thought.
>>
>>108668962
You can't just call engineering tradeoffs "retarded" and expect some naive fool to come to your aid in tediously explaining every point for you.
>>
>>108668936
Well you're in good company with the NT autist. Wasn't he here since the first thread?
>>
>>108669011
and still as dumb as ever
>>
>>108669001
Hey, if I manage to get but one autist to kill themselves by reminding an entire group that they will never ever belong to the rest of humanity, then I will do that until I'm blue in the face.

>>108669007
>engineering tradeoffs
That's been the excuse of autists for over thirty years. It doesn't work anymore.
>>
>>108665874
>this post isn't intended to put down women, it's just a basic fact
ritualistic reddit disclaimer
>>
File: memcpy2.png (46 KB, 1630x720)
46 KB PNG
>>108669036
>and that's not even going into the weeds about you actually needing the data below the 512KiB threshold again
>because there's a good chance that you don't
>and that memcpy's NT heuristics are yet another exhibit of the same autistic nonsense caused by poor interface decisions, like the lack of a cache policy parameter
>but, hey, engineering tradeoffs
>>
>>108669056
i wouldn't know
>>
>>108669076
Note how the autists fall silent once it becomes obvious they've been barking up the wrong tree all along. Again: outlaw autism, send them all to ADX, and lets make money off of their broken brains.
>>
Ok so basically Bash is an interface layer for POSIX syscalls, correct?

When I execute reboot, bash does the syscall for me.

Is this correct?
>>
>>108669771
... no, those are programs, usually in /usr/bin or whatever. Those do the syscall for you; bash just executes them.
>>
KILL ALL AUTISTS
KILL ALL AUTISTS
KILL ALL AUTISTS
>>
File: 1596875722658.jpg (39 KB, 960x574)
39 KB JPG
>>108669786
Nah, if you kill them they can no longer suffer.

We want to exploit them.
>>
>>108669779
I understand. Thank you.
>>
>page 9
Wow, the autists sure took a thorough beating today.
>>
>>108669036
tism
>>
File: 1775540624366262.png (136 KB, 1400x1400)
136 KB PNG
>see syscall thread has 100+ replies
>oh cool lets learn some intricacies about rebooting
>open bread
>>
Did an autist give him a wedgie when he was young because he sat once in the autist's spot during lunch?
>>
>>108672544
autist
>>108669771
autist
>>
>>108669771
some of those things are part of the language. see builtin(1)
man 1 builtin
>>
>>108672550
... lol.

You tell autists exactly what's going on, and they can not, will not acknowledge it. They have to come up with alternate scenarios because their brains are incapable of understanding that which is written right in front of their eyes.
>>
>>108672550
he probably got called an autist one too many times in his life and it buck broke him
>>
>>108673290
says the biggest autist itt
>>
>>108677399
>>108669636



[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.