home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 3 / CDPDIII.bin / pd / programming / gnuc / library / rcs / ix_stubs.c,v < prev    next >
Encoding:
Text File  |  1992-08-09  |  2.0 KB  |  134 lines

  1. head    1.2;
  2. access;
  3. symbols
  4.     version39-41:1.1;
  5. locks;
  6. comment    @ *  @;
  7.  
  8.  
  9. 1.2
  10. date    92.08.09.20.56.15;    author amiga;    state Exp;
  11. branches;
  12. next    1.1;
  13.  
  14. 1.1
  15. date    92.05.22.01.48.08;    author mwild;    state Exp;
  16. branches;
  17. next    ;
  18.  
  19.  
  20. desc
  21. @stubs for unix functions that are common and nice to have
  22. @
  23.  
  24.  
  25. 1.2
  26. log
  27. @add setgid
  28. @
  29. text
  30. @/*
  31.  *  This file is part of ixemul.library for the Amiga.
  32.  *  Copyright (C) 1991, 1992  Markus M. Wild
  33.  *
  34.  *  This library is free software; you can redistribute it and/or
  35.  *  modify it under the terms of the GNU Library General Public
  36.  *  License as published by the Free Software Foundation; either
  37.  *  version 2 of the License, or (at your option) any later version.
  38.  *
  39.  *  This library is distributed in the hope that it will be useful,
  40.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  41.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  42.  *  Library General Public License for more details.
  43.  *
  44.  *  You should have received a copy of the GNU Library General Public
  45.  *  License along with this library; if not, write to the Free
  46.  *  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  47.  *
  48.  *  $Id: ix_stubs.c,v 1.1 1992/05/22 01:48:08 mwild Exp $
  49.  *
  50.  *  $Log: ix_stubs.c,v $
  51.  *  Revision 1.1  1992/05/22  01:48:08  mwild
  52.  *  Initial revision
  53.  *
  54.  */
  55.  
  56. #define KERNEL
  57. #include "ixemul.h"
  58.  
  59. void
  60. endpwent (void) 
  61. {
  62. }
  63.  
  64. int
  65. sync (void)
  66. {
  67.   /* could probably walk the entire file table and fsync each, but
  68.      this is too much of a nuisance ;-)) */
  69.   errno = ENOSYS;
  70.   return -1;
  71. }
  72.  
  73. int
  74. fork (void)
  75. {
  76.   errno = ENOSYS;
  77.   return -1;
  78. }
  79.  
  80. int
  81. mkfifo (const char *path, int mode)
  82. {
  83.   errno = ENOSYS;
  84.   return -1;
  85. }
  86.  
  87. int
  88. mknod (const char *path, int mode, int dev)
  89. {
  90.   errno = ENOSYS;
  91.   return -1;
  92. }
  93.  
  94. int
  95. setuid (int uid)
  96. {
  97.   /* just always succeed... */
  98.   return 0;
  99. }
  100.  
  101. int
  102. setgid (int gid)
  103. {
  104.   /* just always succeed... */
  105.   return 0;
  106. }
  107.  
  108. int
  109. nice (int niceval)
  110. {
  111.   errno = ENOSYS;
  112.   return -1;
  113. }
  114.  
  115. @
  116.  
  117.  
  118. 1.1
  119. log
  120. @Initial revision
  121. @
  122. text
  123. @d19 1
  124. a19 1
  125.  *  $Id$
  126. d21 4
  127. a24 1
  128.  *  $Log$
  129. d68 9
  130. a76 2
  131.   errno = EPERM;
  132.   return -1;
  133. @
  134.