home *** CD-ROM | disk | FTP | other *** search
/ Atari FTP / ATARI_FTP_0693.zip / ATARI_FTP_0693 / Mint / mntlib32.zoo / nice.c < prev    next >
C/C++ Source or Header  |  1991-11-05  |  368b  |  25 lines

  1. /*
  2.  * nice() `emulation' by Dave Gymer
  3.  * I've never been too sure what this should return; my SysV quick
  4.  * ref seems to say "-20 to +19,  or -1 on error". Hmm.
  5.  */
  6.  
  7. #include <unistd.h>
  8. #include <errno.h>
  9. #include <stdlib.h>
  10. #include <mintbind.h>
  11.  
  12. extern long __mint;
  13.  
  14. int
  15. nice(p)
  16.     int p;
  17. {
  18.     if (__mint)
  19.         return Pnice(p);
  20.     else {
  21.         errno = EINVAL;
  22.         return -1;
  23.     }
  24. }
  25.