In article <20160324222716.d93feb1174a7d3218aa49...@schemamania.org>, James K. Lowden <tech-userlevel@netbsd.org> wrote: >On Thu, 24 Mar 2016 17:09:50 +0000 (UTC) >chris...@astron.com (Christos Zoulas) wrote: > >> [1] There is at least one syscall stub that clears errno before the >> syscall which I find bogus; can you guess which one? > >As penance, I checked and found quite a few that set errno to 0, but >all in section 3. Must be looking in the wrong place?
:-) Yes, these are not syscalls. System calls are in section 2... There are few stubs in c in libc/sys and others are in arch/, but most are generated on the fly in assembly. christos