home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume25 / trash / part01 / posix.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-03-22  |  1.3 KB  |  108 lines

  1. #include    <stdio.h>
  2. #include    "sysentry.h"
  3. #include    "nels.h"
  4.  
  5. extern FILE    *outfp;
  6.  
  7. static sysentry    posix_systab[]    =
  8. {
  9.     { "syscall",    0,    "",    '\0',    (int (*)())0,    },
  10. };
  11.  
  12. sysentry    *
  13. posix_systab_entry(n)
  14. int    n;
  15. {
  16.     if (n >= 0 && n < nels(posix_systab))
  17.         return &posix_systab[n];
  18.  
  19.     return (sysentry *)0;
  20. }
  21.  
  22. int
  23. posix_print_open_flags(arg)
  24. long    arg;
  25. {
  26.     vcouldnot("print posix open flags 0x%x", arg);
  27.     return -1;
  28. }
  29.  
  30. int
  31. posix_print_stat(arg)
  32. long    arg;
  33. {
  34.     vcouldnot("print posix stat structure at address 0x%x", arg);
  35.     return -1;
  36. }
  37.  
  38. int
  39. posix_print_ioctl_cmd(cmd)
  40. unsigned long    cmd;
  41. {
  42.     char    *cname;
  43.  
  44.     switch (cmd)
  45.     {
  46.     default:
  47.         cname = (char *)0;
  48.         break;
  49.     }
  50.  
  51.     if (cname == (char *)0)
  52.         fprintf(outfp, "0x%x", cmd);
  53.     else
  54.         fprintf(outfp, "%s", cname);
  55.  
  56.     return 0;
  57. }
  58.  
  59. int
  60. posix_print_ioctl_arg(args)
  61. unsigned long    *args;
  62. {
  63.     switch (args[1])
  64.     {
  65.     default:
  66.         fprintf(outfp, "0x%x", args[2]);
  67.         break;
  68.     }
  69.  
  70.     return 0;
  71. }
  72.  
  73. int
  74. posix_print_fdset(nfds, arg)
  75. int        nfds;
  76. unsigned long    arg;
  77. {
  78.     fprintf(outfp, "0x%x", arg);
  79.  
  80.     return 0;
  81. }
  82.  
  83. int
  84. posix_print_whence(arg)
  85. unsigned long    arg;
  86. {
  87.     fprintf(outfp, "0x%x", arg);
  88.  
  89.     return 0;
  90. }
  91.  
  92. int
  93. posix_print_statfs(arg)
  94. unsigned long    arg;
  95. {
  96.     fprintf(outfp, "0x%x", arg);
  97.  
  98.     return 0;
  99. }
  100.  
  101. void
  102. posix_print_sigcontext(outfp, p)
  103. FILE        *outfp;
  104. unsigned long    p;
  105. {
  106.     fprintf(outfp, "0x%x");
  107. }
  108.