- Main Page
- Data Structures
- Files
- Directories

- Search for |

- File List
- Globals

# syscalls_new.h

Go to the documentation of this file.

    00001 /*****************************************************************************************
    00002  Copyright (c) 2002-2004 The UbixOS Project
    00003  All rights reserved.
    00004
    00005  Redistribution and use in source and binary forms, with or without modification, are
    00006  permitted provided that the following conditions are met:
    00007
    00008  Redistributions of source code must retain the above copyright notice, this list of
    00009  conditions, the following disclaimer and the list of authors.  Redistributions in binary
    00010  form must reproduce the above copyright notice, this list of conditions, the following
    00011  disclaimer and the list of authors in the documentation and/or other materials provided
    00012  with the distribution. Neither the name of the UbixOS Project nor the names of its
    00013  contributors may be used to endorse or promote products derived from this software
    00014  without specific prior written permission.
    00015
    00016  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
    00017  EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    00018  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
    00019  THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    00020  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
    00021  OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    00022  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
    00023  TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    00024  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    00025
    00026  $Id: syscalls__new_8h-source.html 88 2016-01-12 00:11:29Z reddawg $
    00027
    00028 *****************************************************************************************/
    00029
    00030 #ifndef _SYSCALLS_NEW_H
    00031 #define _SYSCALLS_NEW_H
    00032
    00033 #include <sys/sysproto.h>
    00034
    00035 int sysExit();
    00036 int read();
    00037 int getpid();
    00038 int fcntl();
    00039 int issetugid();
    00040 int __sysctl();
    00041 int pipe();
    00042 int readlink();
    00043 int getuid();
    00044 int getgid();
    00045 int close();
    00046 int mmap();
    00047 int obreak();
    00048 int sigaction();
    00049 int getdtablesize();
    00050 int munmap();
    00051 int sigprocmask();
    00052 int gettimeofday_new();
    00053 int fstat();
    00054 int ioctl();
    00055
    00056 #define  invalid_call    0x0
    00057 #define  PSL_C           0x00000001      /* carry bit */
    00058 #define  EJUSTRETURN     (-2)            /* don't modify regs, just return */
    00059 #define  ERESTART        (-1)            /* restart syscall */
    00060
    00061 typedef int (*functionPTR)();
    00062
    00066 functionPTR systemCalls_new[] = {
    00067   invalid_call,
    00068   sysExit,
    00069   invalid_call,
    00070   read,
    00071   sys_write,
    00072   sys_open,
    00073   close,
    00074   invalid_call,
    00075   invalid_call,
    00076   invalid_call,
    00077   invalid_call,
    00078   invalid_call,
    00079   invalid_call,
    00080   invalid_call,
    00081   invalid_call,
    00082   invalid_call,
    00083   invalid_call,
    00084   obreak,
    00085   invalid_call,
    00086   invalid_call,
    00087   getpid,
    00088   invalid_call,
    00089   invalid_call,
    00090   invalid_call,
    00091   getuid,
    00092   invalid_call,
    00093   invalid_call,
    00094   invalid_call,
    00095   invalid_call,
    00096   invalid_call,
    00097   invalid_call,
    00098   invalid_call,
    00099   invalid_call,
    00100   invalid_call,
    00101   invalid_call,
    00102   invalid_call,
    00103   invalid_call,
    00104   invalid_call,
    00105   invalid_call,
    00106   invalid_call,
    00107   invalid_call,
    00108   invalid_call,
    00109   pipe,
    00110   invalid_call,
    00111   invalid_call,
    00112   invalid_call,
    00113   invalid_call,
    00114   getgid,
    00115   invalid_call,
    00116   invalid_call,
    00117   invalid_call,
    00118   invalid_call,
    00119   invalid_call,
    00120   invalid_call,
    00121   ioctl,
    00122   invalid_call,
    00123   invalid_call,
    00124   invalid_call,
    00125   readlink,
    00126   invalid_call,
    00127   invalid_call,
    00128   invalid_call,
    00129   invalid_call,
    00130   invalid_call,
    00131   invalid_call,
    00132   invalid_call,
    00133   invalid_call,
    00134   invalid_call,
    00135   invalid_call,
    00136   invalid_call,
    00137   invalid_call,
    00138   invalid_call,
    00139   invalid_call,
    00140   munmap,
    00141   invalid_call,
    00142   invalid_call,
    00143   invalid_call,
    00144   invalid_call,
    00145   invalid_call,
    00146   invalid_call,
    00147   invalid_call,
    00148   invalid_call,
    00149   invalid_call,
    00150   setitimer,
    00151   invalid_call,
    00152   invalid_call,
    00153   invalid_call,
    00154   invalid_call,
    00155   invalid_call,
    00156   getdtablesize,
    00157   invalid_call,
    00158   invalid_call,
    00159   fcntl,
    00160   invalid_call,
    00161   invalid_call,
    00162   invalid_call,
    00163   invalid_call,
    00164   invalid_call,
    00165   invalid_call,
    00166   invalid_call,
    00167   invalid_call,
    00168   invalid_call,
    00169   invalid_call,
    00170   invalid_call,
    00171   invalid_call,
    00172   invalid_call,
    00173   invalid_call,
    00174   invalid_call,
    00175   invalid_call,
    00176   invalid_call,
    00177   invalid_call,
    00178   invalid_call,
    00179   invalid_call,
    00180   invalid_call,
    00181   invalid_call,
    00182   invalid_call,
    00183   gettimeofday_new,
    00184   invalid_call,
    00185   invalid_call,
    00186   invalid_call,
    00187   invalid_call,
    00188   invalid_call,
    00189   invalid_call,
    00190   invalid_call,
    00191   invalid_call,
    00192   invalid_call,
    00193   invalid_call,
    00194   invalid_call,
    00195   invalid_call,
    00196   invalid_call,
    00197   invalid_call,
    00198   invalid_call,
    00199   invalid_call,
    00200   invalid_call,
    00201   invalid_call,
    00202   invalid_call,
    00203   invalid_call,
    00204   invalid_call,
    00205   invalid_call,
    00206   invalid_call,
    00207   invalid_call,
    00208   invalid_call,
    00209   invalid_call,
    00210   invalid_call,
    00211   invalid_call,
    00212   invalid_call,
    00213   invalid_call,
    00214   invalid_call,
    00215   invalid_call,
    00216   invalid_call,
    00217   invalid_call,
    00218   invalid_call,
    00219   invalid_call,
    00220   invalid_call,
    00221   invalid_call,
    00222   invalid_call,
    00223   invalid_call,
    00224   invalid_call,
    00225   invalid_call,
    00226   invalid_call,
    00227   invalid_call,
    00228   invalid_call,
    00229   invalid_call,
    00230   invalid_call,
    00231   invalid_call,
    00232   invalid_call,
    00233   invalid_call,
    00234   invalid_call,
    00235   invalid_call,
    00236   invalid_call,
    00237   invalid_call,
    00238   invalid_call,
    00239   invalid_call,
    00240   invalid_call,
    00241   invalid_call,
    00242   invalid_call,
    00243   invalid_call,
    00244   invalid_call,
    00245   invalid_call,
    00246   invalid_call,
    00247   invalid_call,
    00248   invalid_call,
    00249   invalid_call,
    00250   invalid_call,
    00251   invalid_call,
    00252   invalid_call,
    00253   invalid_call,
    00254   invalid_call,
    00255   invalid_call,
    00256   fstat,
    00257   invalid_call,
    00258   invalid_call,
    00259   invalid_call,
    00260   invalid_call,
    00261   invalid_call,
    00262   invalid_call,
    00263   invalid_call,
    00264   mmap,
    00265   invalid_call,
    00266   invalid_call,
    00267   invalid_call,
    00268   invalid_call,
    00269   __sysctl,
    00270   invalid_call,
    00271   invalid_call,
    00272   invalid_call,
    00273   invalid_call,
    00274   invalid_call,
    00275   invalid_call,
    00276   invalid_call,
    00277   invalid_call,
    00278   invalid_call,
    00279   invalid_call,
    00280   invalid_call,
    00281   invalid_call,
    00282   invalid_call,
    00283   invalid_call,
    00284   invalid_call,
    00285   invalid_call,
    00286   invalid_call,
    00287   invalid_call,
    00288   invalid_call,
    00289   invalid_call,
    00290   invalid_call,
    00291   invalid_call,
    00292   invalid_call,
    00293   invalid_call,
    00294   invalid_call,
    00295   invalid_call,
    00296   invalid_call,
    00297   invalid_call,
    00298   invalid_call,
    00299   invalid_call,
    00300   invalid_call,
    00301   invalid_call,
    00302   invalid_call,
    00303   invalid_call,
    00304   invalid_call,
    00305   invalid_call,
    00306   invalid_call,
    00307   invalid_call,
    00308   invalid_call,
    00309   invalid_call,
    00310   invalid_call,
    00311   invalid_call,
    00312   invalid_call,
    00313   invalid_call,
    00314   invalid_call,
    00315   invalid_call,
    00316   invalid_call,
    00317   invalid_call,
    00318   invalid_call,
    00319   invalid_call,
    00320   issetugid,
    00321   invalid_call,
    00322   invalid_call,
    00323   invalid_call,
    00324   invalid_call,
    00325   invalid_call,
    00326   invalid_call,
    00327   invalid_call,
    00328   invalid_call,
    00329   invalid_call,
    00330   invalid_call,
    00331   invalid_call,
    00332   invalid_call,
    00333   invalid_call,
    00334   invalid_call,
    00335   invalid_call,
    00336   invalid_call,
    00337   invalid_call,
    00338   invalid_call,
    00339   invalid_call,
    00340   invalid_call,
    00341   invalid_call,
    00342   invalid_call,
    00343   invalid_call,
    00344   invalid_call,
    00345   invalid_call,
    00346   invalid_call,
    00347   invalid_call,
    00348   invalid_call,
    00349   invalid_call,
    00350   invalid_call,
    00351   invalid_call,
    00352   invalid_call,
    00353   invalid_call,
    00354   invalid_call,
    00355   invalid_call,
    00356   invalid_call,
    00357   invalid_call,
    00358   invalid_call,
    00359   invalid_call,
    00360   invalid_call,
    00361   invalid_call,
    00362   invalid_call,
    00363   invalid_call,
    00364   invalid_call,
    00365   invalid_call,
    00366   invalid_call,
    00367   invalid_call,
    00368   invalid_call,
    00369   invalid_call,
    00370   invalid_call,
    00371   invalid_call,
    00372   invalid_call,
    00373   invalid_call,
    00374   invalid_call,
    00375   invalid_call,
    00376   invalid_call,
    00377   invalid_call,
    00378   invalid_call,
    00379   invalid_call,
    00380   invalid_call,
    00381   invalid_call,
    00382   invalid_call,
    00383   invalid_call,
    00384   invalid_call,
    00385   invalid_call,
    00386   invalid_call,
    00387   invalid_call,
    00388   invalid_call,
    00389   invalid_call,
    00390   invalid_call,
    00391   invalid_call,
    00392   invalid_call,
    00393   invalid_call,
    00394   invalid_call,
    00395   invalid_call,
    00396   invalid_call,
    00397   invalid_call,
    00398   invalid_call,
    00399   invalid_call,
    00400   invalid_call,
    00401   invalid_call,
    00402   invalid_call,
    00403   invalid_call,
    00404   invalid_call,
    00405   invalid_call,
    00406   invalid_call,
    00407   sigprocmask,
    00408   invalid_call,
    00409   invalid_call,
    00410   invalid_call,
    00411   invalid_call,
    00412   invalid_call,
    00413   invalid_call,
    00414   invalid_call,
    00415   invalid_call,
    00416   invalid_call,
    00417   invalid_call,
    00418   invalid_call,
    00419   invalid_call,
    00420   invalid_call,
    00421   invalid_call,
    00422   invalid_call,
    00423   invalid_call,
    00424   invalid_call,
    00425   invalid_call,
    00426   invalid_call,
    00427   invalid_call,
    00428   invalid_call,
    00429   invalid_call,
    00430   invalid_call,
    00431   invalid_call,
    00432   invalid_call,
    00433   invalid_call,
    00434   invalid_call,
    00435   invalid_call,
    00436   invalid_call,
    00437   invalid_call,
    00438   invalid_call,
    00439   invalid_call,
    00440   invalid_call,
    00441   invalid_call,
    00442   invalid_call,
    00443   invalid_call,
    00444   invalid_call,
    00445   invalid_call,
    00446   invalid_call,
    00447   invalid_call,
    00448   invalid_call,
    00449   invalid_call,
    00450   invalid_call,
    00451   invalid_call,
    00452   invalid_call,
    00453   invalid_call,
    00454   invalid_call,
    00455   invalid_call,
    00456   invalid_call,
    00457   invalid_call,
    00458   invalid_call,
    00459   invalid_call,
    00460   invalid_call,
    00461   invalid_call,
    00462   invalid_call,
    00463   invalid_call,
    00464   invalid_call,
    00465   invalid_call,
    00466   invalid_call,
    00467   invalid_call,
    00468   invalid_call,
    00469   invalid_call,
    00470   invalid_call,
    00471   invalid_call,
    00472   invalid_call,
    00473   invalid_call,
    00474   invalid_call,
    00475   invalid_call,
    00476   invalid_call,
    00477   invalid_call,
    00478   invalid_call,
    00479   invalid_call,
    00480   invalid_call,
    00481   invalid_call,
    00482   invalid_call,
    00483   sigaction,
    00484   invalid_call,
    00485   invalid_call,
    00486   invalid_call,
    00487   invalid_call,
    00488   invalid_call,
    00489   invalid_call,
    00490   invalid_call,
    00491   invalid_call,
    00492   invalid_call,
    00493   invalid_call,
    00494   invalid_call,
    00495   invalid_call,
    00496   invalid_call,
    00497   invalid_call,
    00498   invalid_call,
    00499   invalid_call,
    00500   invalid_call,
    00501   invalid_call,
    00502   invalid_call,
    00503   invalid_call,
    00504   invalid_call,
    00505   invalid_call,
    00506   invalid_call,
    00507   invalid_call,
    00508   invalid_call,
    00509   invalid_call,
    00510   invalid_call,
    00511   invalid_call,
    00512   invalid_call,
    00513   invalid_call,
    00514   invalid_call,
    00515   invalid_call,
    00516   invalid_call,
    00517   invalid_call,
    00518   invalid_call,
    00519   invalid_call,
    00520   invalid_call,
    00521   invalid_call,
    00522   invalid_call,
    00523   };
    00524
    00525 int totalCalls_new = sizeof(systemCalls_new)/sizeof(functionPTR);
    00526
    00527 #endif
    00528
    00529 /***
    00530  END
    00531  ***/
    00532