Changeset 8d7a1d76 in rtems


Ignore:
Timestamp:
Jun 18, 1996, 7:06:58 PM (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
b7acc57f
Parents:
c486e917
Message:

minor changes to insure the few posix-ish routines needed in non-posix
mode have stubs.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/libcsupport/src/newlibc.c

    rc486e917 r8d7a1d76  
    3636
    3737#include <sys/reent.h>          /* for extern of _REENT (aka _impure_ptr) */
     38#include <errno.h>
    3839
    3940/*
     
    290291}
    291292
     293/*
     294 *  Routines required by the gnat runtime.
     295 */
     296
     297int get_errno()
     298{
     299  return errno;
     300}
    292301
    293302/*
     
    339348 */
    340349
    341 #ifndef RTEMS_POSIX_API
    342 
    343 #include <assert.h>
     350#if !defined(__RTEMS_POSIX_API__)
    344351
    345352pid_t __getpid(void)
    346353{
    347   assert( 0 );
    348354  return 0;
    349355}
     356#endif
     357
     358#if !defined(__RTEMS_POSIX_API__) && !defined(__GO32__)
     359pid_t getpid(void)
     360{
     361  return __getpid();
     362}
     363#endif
     364
     365#if !defined(__RTEMS_POSIX_API__) && !defined(__GO32__)
     366int kill( pid_t pid, int sig )
     367{
     368  return 0;
     369}
     370#endif
    350371
    351372int __kill( pid_t pid, int sig )
    352373{
    353   assert( 0 );
    354374  return 0;
    355375}
     
    380400}
    381401
    382 #endif
    383 
    384 #endif
     402
     403#endif
  • c/src/lib/libc/newlibc.c

    rc486e917 r8d7a1d76  
    3636
    3737#include <sys/reent.h>          /* for extern of _REENT (aka _impure_ptr) */
     38#include <errno.h>
    3839
    3940/*
     
    290291}
    291292
     293/*
     294 *  Routines required by the gnat runtime.
     295 */
     296
     297int get_errno()
     298{
     299  return errno;
     300}
    292301
    293302/*
     
    339348 */
    340349
    341 #ifndef RTEMS_POSIX_API
    342 
    343 #include <assert.h>
     350#if !defined(__RTEMS_POSIX_API__)
    344351
    345352pid_t __getpid(void)
    346353{
    347   assert( 0 );
    348354  return 0;
    349355}
     356#endif
     357
     358#if !defined(__RTEMS_POSIX_API__) && !defined(__GO32__)
     359pid_t getpid(void)
     360{
     361  return __getpid();
     362}
     363#endif
     364
     365#if !defined(__RTEMS_POSIX_API__) && !defined(__GO32__)
     366int kill( pid_t pid, int sig )
     367{
     368  return 0;
     369}
     370#endif
    350371
    351372int __kill( pid_t pid, int sig )
    352373{
    353   assert( 0 );
    354374  return 0;
    355375}
     
    380400}
    381401
    382 #endif
    383 
    384 #endif
     402
     403#endif
  • cpukit/libcsupport/src/newlibc.c

    rc486e917 r8d7a1d76  
    3636
    3737#include <sys/reent.h>          /* for extern of _REENT (aka _impure_ptr) */
     38#include <errno.h>
    3839
    3940/*
     
    290291}
    291292
     293/*
     294 *  Routines required by the gnat runtime.
     295 */
     296
     297int get_errno()
     298{
     299  return errno;
     300}
    292301
    293302/*
     
    339348 */
    340349
    341 #ifndef RTEMS_POSIX_API
    342 
    343 #include <assert.h>
     350#if !defined(__RTEMS_POSIX_API__)
    344351
    345352pid_t __getpid(void)
    346353{
    347   assert( 0 );
    348354  return 0;
    349355}
     356#endif
     357
     358#if !defined(__RTEMS_POSIX_API__) && !defined(__GO32__)
     359pid_t getpid(void)
     360{
     361  return __getpid();
     362}
     363#endif
     364
     365#if !defined(__RTEMS_POSIX_API__) && !defined(__GO32__)
     366int kill( pid_t pid, int sig )
     367{
     368  return 0;
     369}
     370#endif
    350371
    351372int __kill( pid_t pid, int sig )
    352373{
    353   assert( 0 );
    354374  return 0;
    355375}
     
    380400}
    381401
    382 #endif
    383 
    384 #endif
     402
     403#endif
Note: See TracChangeset for help on using the changeset viewer.