NO

Author Topic: sys_nerr  (Read 3633 times)

giva

  • Guest
sys_nerr
« on: December 20, 2005, 11:09:15 PM »
Why is this variable not declared in <errno.h>? An omission or...

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
sys_nerr
« Reply #1 on: December 21, 2005, 07:20:12 AM »
No. It's not part of standard C. It's not part of POSIX.

Pelle
/Pelle

giva

  • Guest
Re: sys_nerr
« Reply #2 on: December 21, 2005, 02:49:42 PM »
And EINTR is missing too. PellesC is the only compiler I ever have used
that misses this. Is there really no libc function that can set EINTR?

giva

  • Guest
sys_nerr
« Reply #3 on: December 21, 2005, 02:53:40 PM »
Quote from: "Pelle"
No. It's not part of standard C. It's not part of POSIX.


So what? Neither are all the extension in <intrin.h>.
sys_nerr should IMHO be added. It is after all giving the bound
of errors that can be used in strerror().