File: priority.cpp

package info (click to toggle)
vdr-plugin-markad 4.2.15-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,084 kB
  • sloc: cpp: 22,441; python: 613; makefile: 270; sh: 95
file content (33 lines) | stat: -rw-r--r-- 623 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include "priority.h"
#include <errno.h>

/* None of those below is supported on WIN32.
 *
 * As no functionality is expected and not an error,
 * zero is returned and errno set to zero.
 *
 * Otherwise, these functions are just dummies. 
 */

int getpriority(int which, int who) {
  (void)which;
  (void)who;
  errno = 0;
  return 0;
}

int setpriority(int which, int who, int prio) {
  (void)which;
  (void)who;
  (void)prio;
  errno = 0;
  return 0;
}

int ioprio_get(int which, int who) {
  return getpriority(which, who);
}

int ioprio_set(int which, int who, int ioprio) {
  return setpriority(which, who, ioprio);
}