Changeset b1459dc in rtems


Ignore:
Timestamp:
Aug 22, 1997, 7:17:09 PM (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
b57992a
Parents:
78d87bd
Message:

Moved reentrant wrappers into their own file.

Files:
1 added
5 edited

Legend:

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

    r78d87bd rb1459dc  
    372372 */
    373373
    374 #if !defined(RTEMS_POSIX_API)
    375374pid_t __getpid(void)
    376375{
    377   return 0;
    378 }
    379 #endif
     376  return getpid();
     377}
    380378
    381379/* #if !defined(RTEMS_POSIX_API) || defined(__GO32__) */
     
    383381pid_t getpid(void)
    384382{
    385   return __getpid();
     383  return (0);
    386384}
    387385#endif
  • c/src/lib/libc/Makefile.in

    r78d87bd rb1459dc  
    1313# C and C++ source names, if any, go here -- minus the .c or .cc
    1414C_PIECES=__gettod __brk __times malloc syscalls \
    15          no_libc newlibc newlibif support unixlibc libio hosterr tcattr
     15    no_libc newlibc newlibif newlibifr support unixlibc \
     16    libio hosterr tcattr
    1617C_FILES=$(C_PIECES:%=%.c)
    1718C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
  • c/src/lib/libc/newlibc.c

    r78d87bd rb1459dc  
    372372 */
    373373
    374 #if !defined(RTEMS_POSIX_API)
    375374pid_t __getpid(void)
    376375{
    377   return 0;
    378 }
    379 #endif
     376  return getpid();
     377}
    380378
    381379/* #if !defined(RTEMS_POSIX_API) || defined(__GO32__) */
     
    383381pid_t getpid(void)
    384382{
    385   return __getpid();
     383  return (0);
    386384}
    387385#endif
  • c/src/lib/libc/newlibif.c

    r78d87bd rb1459dc  
    1717#include <sys/stat.h>
    1818#include <errno.h>
     19#include <reent.h>
    1920
    2021#include <termios.h>
  • cpukit/libcsupport/src/newlibc.c

    r78d87bd rb1459dc  
    372372 */
    373373
    374 #if !defined(RTEMS_POSIX_API)
    375374pid_t __getpid(void)
    376375{
    377   return 0;
    378 }
    379 #endif
     376  return getpid();
     377}
    380378
    381379/* #if !defined(RTEMS_POSIX_API) || defined(__GO32__) */
     
    383381pid_t getpid(void)
    384382{
    385   return __getpid();
     383  return (0);
    386384}
    387385#endif
Note: See TracChangeset for help on using the changeset viewer.