logoalt Hacker News

CyberDildonicsyesterday at 7:15 PM6 repliesview on HN

if I implemented a couple of traps

What does this mean? System calls?


Replies

rtkweyesterday at 7:28 PM

Similar but traps are triggered automatically on attempts to execute a protected instruction.

https://www.geeksforgeeks.org/operating-systems/traps-and-sy...

show 1 reply
rolphyesterday at 7:29 PM

if you know a particular process or system callmakes errors,then you run code that checks for that error,or exception,or preempively hooks a problematic system call,to redirect to "your"code that handles the state of exception,and returns.

https://en.wikipedia.org/wiki/Interrupt#Terminology

therealfigtreetoday at 8:25 AM

It's a trap

jjk7yesterday at 7:23 PM

Before SYSCALL there was INT

show 1 reply
fintlertoday at 3:31 AM

Need to pee? Take the a-trap to Shell.

hack1312yesterday at 7:24 PM

[dead]