File:  [DVB] / dietlibc / lib / _getpriority.c
Revision 1.1: download - view: text, annotated - select for diffs
Sun Jan 15 18:56:57 2012 UTC (12 years, 4 months ago) by leitner
Branches: MAIN
CVS tags: HEAD
fix getpriority

#include <sys/resource.h>

extern int __syscall_getpriority(int which, int who);

int getpriority(int which, int who) {
  int r;

  r = __syscall_getpriority(which, who);
  if (r >= 0) r = 20 - r;
  return r;
}


LinuxTV legacy CVS <linuxtv.org/cvs>