cvs commit: src/sys/sys errno.h

Simon Schubert corecode at crater.dragonflybsd.org
Sat Jul 2 11:14:29 PDT 2005


corecode    2005/07/02 11:13:52 PDT

DragonFly src repository

  Modified files:
    sys/sys              errno.h 
  Log:
  Lots of third party programs declare
  extern int errno;
  
  This breaks when errno is declared as
  extern __thread int errno;
  
  Fix the breakage by using a hack as we had before:
  Define errno as (*__error()), but this time also
  define a static inline __error(void) so that ABI
  doesn't break (and we're saving a call as well).
  
  Revision  Changes    Path
  1.7       +8 -5      src/sys/sys/errno.h


http://www.dragonflybsd.org/cvsweb/src/sys/sys/errno.h.diff?r1=1.6&r2=1.7&f=u





More information about the Commits mailing list