summaryrefslogtreecommitdiff
path: root/pfinet/linux/sched.h
blob: 734a8b4d11b0db6c422d42171698c7f8f578aa7e (plain)
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
#ifndef _HACK_SCHED_H
#define _HACK_SCHED_H

#include <linux/wait.h>
#include <sys/signal.h>

extern unsigned long volatile jiffies;
#define HZ 100
extern struct task_struct *current;

struct task_struct
{
  uid_t pgrp, pid;
  int flags;
  int timeout;
  int signal;
  int blocked;
};

/* FLAGS in task_struct's. */
#define PF_EXITING 1

void wake_up_interruptible (struct wait_queue **);
void interruptible_sleep_on (struct wait_queue **);

int send_sig (u_long, struct task_struct *, int);

int fetch_current_time (void);

#define CURRENT_TIME (fetch_current_time())

#endif