News for hackers. Stuff that matters.
Re:Anatomy of a system call, part 1 by willvarfar on Friday July 18, 2014 @05:55AM (#8052318)
Please explain better ways for a syscall to return an error that negative status, and explain how OS other than Linux get it right.
Re:Anatomy of a system call, part 1 by justincormack on Friday July 18, 2014 @07:23AM (#8052469)
Its Linux so you don't even need to look at a different OS. Each architecture is different. PowerPC returns the return value and error code in different registers which is very clean.
Re:Anatomy of a system call, part 1 by lelf on Friday July 18, 2014 @08:30AM (#8052631)
By setting cpu flag for example. Pretty standard way.