openenvutils/commandshell/shell/src/dummy.c
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 /*
       
     2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 /* 
       
    20  * This file implements the stubs for unsupported functions. These functions
       
    21  * should be revisited to check the feasibility of supporting them.  
       
    22  */
       
    23 
       
    24 #ifdef __SYMBIAN32__
       
    25 #ifdef __WINSCW__
       
    26 #pragma warn_unusedarg off
       
    27 #endif//__WINSCW__
       
    28 #include "dummy.h"
       
    29 
       
    30 int dummy_sigprocmask (int how, const sigset_t *a, sigset_t *b)
       
    31 	{
       
    32 	return 0;
       
    33 	}
       
    34 
       
    35 int killpg(pid_t pgrp, int sig)
       
    36 	{
       
    37 	return 0;		
       
    38 	}
       
    39 
       
    40 int dummy_kill(pid_t pid, int sig)
       
    41 	{
       
    42 	return 0;
       
    43 	}
       
    44 
       
    45 int setrlimit(int resource, const struct rlimit *rlp)
       
    46 	{
       
    47 	return 0;
       
    48 	}
       
    49 
       
    50 int getrlimit(int resource, struct rlimit *rlp)
       
    51 	{
       
    52 	return 0;	
       
    53 	}
       
    54 
       
    55 int getrusage(int who, struct rusage *r_usage)
       
    56 	{
       
    57 	return 0;	
       
    58 	}
       
    59 
       
    60 unsigned dummy_alarm(unsigned seconds)
       
    61 	{
       
    62 	return 0;	
       
    63 	}
       
    64 
       
    65 int dummy_sigaddset(sigset_t *set, int signo)
       
    66 	{
       
    67 	return 0;
       
    68 	}
       
    69 
       
    70 int dummy_sigfillset(sigset_t *set)
       
    71 	{
       
    72 	return 0;	
       
    73 	}
       
    74 	
       
    75 int dummy_sigdelset(sigset_t *set, int signo)
       
    76 	{
       
    77 	return 0;
       
    78 	}
       
    79 
       
    80 int dummy_sigsuspend(const sigset_t *sigmask)
       
    81 	{
       
    82 	return 0;
       
    83 	}
       
    84 
       
    85 int	tcgetattr(int i, struct termios * p)
       
    86 	{
       
    87 	return 0;
       
    88 	}
       
    89 
       
    90 int	tcsetattr(int i , int y, const struct termios *p)
       
    91 	{
       
    92 	return 0;
       
    93 	}
       
    94 
       
    95 int tcsetpgrp(int fildes, pid_t pgid_id)
       
    96 	{
       
    97 	return 0;	
       
    98 	}
       
    99 
       
   100 pid_t tcgetpgrp(int fildes)
       
   101 	{
       
   102 	return 0; //	shud return the foreground process grp id.
       
   103 	}
       
   104 
       
   105 int grantpt(int fildes)
       
   106 	{
       
   107 	return 0;	
       
   108 	}
       
   109  
       
   110 int unlockpt(int fildes)
       
   111 	{
       
   112 	return 0;
       
   113 	}
       
   114 
       
   115 char *ptsname(int fildes)
       
   116 	{
       
   117 	return NULL;
       
   118 	}
       
   119 
       
   120 char *mktemp(char *template)
       
   121 	{
       
   122 	return 0;
       
   123 	}
       
   124 
       
   125 void sync(void)
       
   126 	{
       
   127 	return;
       
   128 	}
       
   129 
       
   130 speed_t cfgetospeed(const struct termios *termios_p)
       
   131 	{
       
   132 	return (speed_t)0;
       
   133 	}
       
   134 
       
   135 int tputs (char * t, int x, int (*p)(int))
       
   136 	{
       
   137 	return 0;
       
   138 	}
       
   139 
       
   140 int tgetent (char *t, char *p)
       
   141 	{
       
   142 	return 0;
       
   143 	}
       
   144 
       
   145 char * tgetstr (char *t, char **p)
       
   146 	{
       
   147 	return (char*)0;
       
   148 	}
       
   149 
       
   150 int tgetflag (char *t)
       
   151 	{
       
   152 	return 0;
       
   153 	}
       
   154 
       
   155 int tgetnum (char *t)
       
   156 	{
       
   157 	return 0;
       
   158 	}
       
   159 
       
   160 char * tgoto (char *x, int y, int z)
       
   161 	{
       
   162 	return 0;
       
   163 	}
       
   164 
       
   165 int tigetnum (char *p)
       
   166 	{
       
   167 	return 0;
       
   168 	}
       
   169 
       
   170 int tigetflag (char *p)
       
   171 	{
       
   172 	return 0;
       
   173 	}
       
   174 
       
   175 char * tigetstr (char *p)
       
   176 	{
       
   177 	return 0;	
       
   178 	}
       
   179 
       
   180 int putp (const char *p)
       
   181 	{
       
   182 	return 0;
       
   183 	}
       
   184 
       
   185 char * tparm (char *p, ...)
       
   186 	{
       
   187 	return 0;
       
   188 	}
       
   189 	
       
   190 char *getlogin(void)
       
   191 	{
       
   192 	return NULL;
       
   193 	}
       
   194 
       
   195 char *ttyname(int fildes)
       
   196 	{
       
   197 	return NULL;
       
   198 	}
       
   199 
       
   200 int dummy_sigemptyset(sigset_t *set)
       
   201 	{
       
   202 	return 0;
       
   203 	}
       
   204 
       
   205 void dummy_signal(int sig, __sighandler_t* ptr)
       
   206 	{
       
   207 	return;
       
   208 	}
       
   209 
       
   210 #endif//__SYMBIAN32__
       
   211