1*4887Schintst dat_sys_nerr note{ sys_nerr in default libs }end compile{ 2*4887Schin extern int sys_nerr; 3*4887Schin int f() 4*4887Schin { 5*4887Schin return sys_nerr > 0; 6*4887Schin } 7*4887Schin}end 8*4887Schin 9*4887Schintst def_errno_sys_nerr note{ sys_nerr declared in errno.h }end compile{ 10*4887Schin #include <errno.h> 11*4887Schin int f() 12*4887Schin { 13*4887Schin return sys_nerr > 0; 14*4887Schin } 15*4887Schin}end 16*4887Schin 17*4887Schintst dat_sys_errlist note{ sys_errlist in default libs }end compile{ 18*4887Schin extern char* sys_errlist[]; 19*4887Schin int f() 20*4887Schin { 21*4887Schin return *sys_errlist[1] != 0; 22*4887Schin } 23*4887Schin}end 24*4887Schin 25*4887Schintst def_errno_sys_errlist note{ sys_errlist declared in errno.h }end compile{ 26*4887Schin #include <errno.h> 27*4887Schin int f() 28*4887Schin { 29*4887Schin return *sys_errlist[1] != 0; 30*4887Schin } 31*4887Schin}end 32