Mercurial > remote-gamepad-server
comparison restartOp.h @ 0:e70ea46d6073
Initial import from http://wouhanegaine.free.fr/dev/DSPad02b_neo07.zip
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 22 Feb 2015 01:38:06 +0100 |
parents | |
children | f362b20de51e |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e70ea46d6073 |
---|---|
1 /* | |
2 Signal interruptible fonctions handlers | |
3 */ | |
4 | |
5 | |
6 | |
7 #ifndef RESTARTOP_H | |
8 #define RESTARTOP_H | |
9 | |
10 #include <sys/types.h> | |
11 #include <sys/sem.h> | |
12 #include <sys/socket.h> | |
13 | |
14 /********************************************************/ | |
15 /* fork */ | |
16 /********************************************************/ | |
17 | |
18 extern pid_t fork_rs(void); | |
19 | |
20 /********************************************************/ | |
21 /* wait, waitpid */ | |
22 /********************************************************/ | |
23 | |
24 //extern pid_t wait_rs(int *status); | |
25 //extern pid_t waitpid_rs(pid_t pid, int *status, int options); | |
26 | |
27 /********************************************************/ | |
28 /* sleep */ | |
29 /********************************************************/ | |
30 | |
31 extern unsigned int sleep_rs(unsigned int seconds); | |
32 | |
33 /********************************************************/ | |
34 /* read, write, close */ | |
35 /********************************************************/ | |
36 | |
37 //extern ssize_t read_rs(int fd, void *buf, size_t len); | |
38 //extern ssize_t write_rs(int fd, const void *buf, size_t count); | |
39 //extern int close_rs(int fd); | |
40 | |
41 /********************************************************/ | |
42 /* dup, dup2 */ | |
43 /********************************************************/ | |
44 | |
45 //extern int dup_rs(int oldfd); | |
46 //extern int dup2_rs(int oldfd, int newfd); | |
47 | |
48 /********************************************************/ | |
49 /* semop */ | |
50 /********************************************************/ | |
51 //extern int semop_rs(int semid, struct sembuf *sops,unsigned nsops); | |
52 | |
53 /********************************************************/ | |
54 /* msgsnd, msgrcv */ | |
55 /********************************************************/ | |
56 | |
57 //extern int msgsnd_rs(int msqid, /* const */ void* msgp, int msgsz, int msgflg); | |
58 //extern int msgrcv_rs(int msqid, void* msgp, int msgsz, long msgtyp,int msgflg); | |
59 | |
60 /********************************************************/ | |
61 /* connect, accept */ | |
62 /********************************************************/ | |
63 | |
64 //extern int connect_rs(int sockfd, struct sockaddr *serv_addr,socklen_t addrlen); | |
65 //extern int accept_rs(int sockfd, struct sockaddr *addr,socklen_t *addrlen); | |
66 | |
67 /********************************************************/ | |
68 /* recv, send */ | |
69 /********************************************************/ | |
70 | |
71 //extern ssize_t recv_rs(int sockfd, void *buf, size_t len, int flags); | |
72 //extern ssize_t send_rs(int sockfd, const void *buf, size_t count, int flags); | |
73 | |
74 /********************************************************/ | |
75 /* recvfrom, sendto */ | |
76 /********************************************************/ | |
77 extern ssize_t recvfrom_rs(int sockfd, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *fromlen); | |
78 //extern ssize_t sendto_rs(int sockfd, const void *msg, size_t count, int flags, const struct sockaddr *to, socklen_t tolen); | |
79 | |
80 #endif /* RESTARTOP_H */ |