Changeset 7530a00 in mainline
- Timestamp:
- 2011-06-26T11:41:42Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f232189
- Parents:
- 230fcfe
- Location:
- uspace/lib/posix
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/Makefile
r230fcfe r7530a00 44 44 math.c \ 45 45 pwd.c \ 46 signal.c \ 46 47 stdio.c \ 47 48 stdlib.c \ -
uspace/lib/posix/signal.h
r230fcfe r7530a00 57 57 #define SIG_IGN ((void (*)(int)) 0) 58 58 59 #define signal(sig,func) (errno = ENOTSUP, SIG_ERR)60 #define raise(sig) ((int) -1)61 #define kill(pid,sig) (errno = ENOTSUP, (int) -1)62 63 59 typedef int posix_sig_atomic_t; 64 60 typedef int posix_sigset_t; … … 87 83 int si_errno; 88 84 89 p id_t si_pid;90 uid_t si_uid;85 posix_pid_t si_pid; 86 posix_uid_t si_uid; 91 87 void *si_addr; 92 88 int si_status; … … 195 191 }; 196 192 197 /* Just declared to avoid compiler warnings. */ 193 extern void (*posix_signal(int sig, void (*func)(int)))(int); 194 extern int posix_raise(int sig); 195 extern int posix_kill(posix_pid_t pid, int sig); 196 198 197 extern int posix_sigemptyset(posix_sigset_t *set); 199 198 extern int posix_sigprocmask(int how, const posix_sigset_t *restrict set, … … 210 209 #define stack_t posix_stack_t 211 210 #define siginfo_t posix_siginfo_t 211 212 #define signal posix_signal 213 #define raise posix_raise 214 #define kill posix_kill 212 215 #define sigemptyset posix_sigemptyset 213 216 #define sigprocmask posix_sigprocmask -
uspace/lib/posix/unistd.c
r230fcfe r7530a00 41 41 42 42 /* Array of environment variable strings (NAME=VALUE). */ 43 char ** environ = NULL;43 char **posix_environ = NULL; 44 44 45 45 /**
Note:
See TracChangeset
for help on using the changeset viewer.