Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- #include <stdlib.h>
- #include <arpa/inet.h>
- #include <sys/socket.h>
- #include <sys/time.h>
- #include <unistd.h>
- /*XENOMAI*/
- #include "task.h"
- #include <rtdm/rtdm.h>
- #include <asm/ioctl.h>
- #define SERVER "192.168.127.10"
- #define BUFLEN 512
- #define PORT 8888
- void die(char *s)
- {
- perror(s);
- exit(1);
- }
- #ifndef _XENO_TASK_H
- #define _XENO_TASK_H
- #include <nucleus/sched.h>
- #include <native/types.h>
- /* Creation flags. */
- #define T_FPU XNFPU
- #define T_SUSP XNSUSP
- /* <!> High bits must not conflict with XNFPU|XNSHADOW|XNSUSP. */
- #define T_CPU(cpu) (1 << (24 + (cpu & 7))) /* Up to 8 cpus [0-7] */
- #define T_CPUMASK 0xff000000
- #ifndef _RTDM_H
- #define _RTDM_H
- #ifdef __KERNEL__
- #include <linux/types.h>
- #include <linux/fcntl.h>
- #include <linux/ioctl.h>
- #include <linux/sched.h>
- #include <linux/socket.h>
- typedef u32 socklen_t;
- typedef struct task_struct rtdm_user_info_t;
- #else /* !__KERNEL__ */
- #include <fcntl.h>
- #include <stddef.h>
- #include <stdint.h>
- #include <sys/ioctl.h>
- #include <sys/socket.h>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement