Changeset b169590e in rtems for c/src/lib/libc/newlibc.c


Ignore:
Timestamp:
May 30, 1996, 8:34:46 PM (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
5600661
Parents:
53fd6e2
Message:

added dummy versions of kill and getpid which assert(0) so that
applications which use only the rtems api (i.e. not the posix api) will
link.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libc/newlibc.c

    r53fd6e2 rb169590e  
    334334#endif
    335335
    336 #endif
     336
     337/*
     338 *  These are only supported in the posix api.
     339 */
     340
     341#ifndef RTEMS_POSIX_API
     342
     343#include <assert.h>
     344
     345pid_t __getpid(void)
     346{
     347  assert( 0 );
     348  return 0;
     349}
     350
     351int __kill( pid_t pid, int sig )
     352{
     353  assert( 0 );
     354  return 0;
     355}
     356
     357#endif
     358
     359#endif
Note: See TracChangeset for help on using the changeset viewer.