|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // dummy.c |
|
15 // This file declares the stubs for unsupported functions. These functions |
|
16 // should be revisited to check the feasibility of supporting them. |
|
17 // |
|
18 // |
|
19 |
|
20 #ifndef dummy_h |
|
21 #define dummy_h |
|
22 |
|
23 #include <sys/resource.h> |
|
24 #include <sys/types.h> |
|
25 #include <sys/signal.h> |
|
26 #include "termios.h" |
|
27 #include <unistd.h> |
|
28 #include <setjmp.h> |
|
29 #include "poll.h" |
|
30 #include "times.h" |
|
31 |
|
32 #define sigprocmask dummy_sigprocmask |
|
33 #define kill dummy_kill |
|
34 #define sigemptyset dummy_sigemptyset |
|
35 #define sigaddset dummy_sigaddset |
|
36 #define sigfillset dummy_sigfillset |
|
37 #define sigdelset dummy_sigdelset |
|
38 #define sigsuspend dummy_sigsuspend |
|
39 #define alarm dummy_alarm |
|
40 #define signal dummy_signal |
|
41 |
|
42 int dummy_sigprocmask (int how, const sigset_t *a, sigset_t *b); |
|
43 int setrlimit(int resource, const struct rlimit *rlp); |
|
44 extern int killpg(pid_t pgrp, int sig); |
|
45 int dummy_kill(pid_t pid, int sig); |
|
46 int getrlimit(int resource, struct rlimit *rlp); |
|
47 extern int getrusage(int who, struct rusage *r_usage); |
|
48 extern unsigned dummy_alarm(unsigned seconds); |
|
49 int dummy_sigemptyset(sigset_t *set); |
|
50 int dummy_sigaddset(sigset_t *set, int signo); |
|
51 int dummy_sigfillset(sigset_t *set); |
|
52 int dummy_sigdelset(sigset_t *set, int signo); |
|
53 int dummy_sigsuspend(const sigset_t *sigmask); |
|
54 int tcgetattr(int, struct termios *); |
|
55 int tcsetattr(int, int, const struct termios *); |
|
56 int tcsetpgrp(int fildes, pid_t pgid_id); |
|
57 pid_t tcgetpgrp(int fildes); |
|
58 int grantpt(int fildes); |
|
59 int unlockpt(int fildes); |
|
60 char *ptsname(int fildes); |
|
61 |
|
62 |
|
63 char *mktemp(char *template); |
|
64 void sync(void); |
|
65 speed_t cfgetospeed(const struct termios *termios_p); |
|
66 |
|
67 int tputs (char *, int, int (*)(int)); |
|
68 int tgetent (char *, char *); |
|
69 char * tgetstr (char *, char **); |
|
70 int tgetflag (char *); |
|
71 int tgetnum (char *); |
|
72 char * tgoto (char *, int, int); |
|
73 int tigetnum (char *); |
|
74 int tigetflag (char *); |
|
75 char * tigetstr (char *); |
|
76 int putp (const char *); |
|
77 char * tparm (char *, ...); |
|
78 void dummy_signal(int, __sighandler_t*); |
|
79 |
|
80 |
|
81 char *getlogin(void); |
|
82 char *ttyname(int fildes); |
|
83 |
|
84 #endif//dummy_h |
|
85 |