Changeset d006519b in rtems


Ignore:
Timestamp:
Apr 15, 1999, 7:01:32 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
4bfb139
Parents:
a68e6b9
Message:

Added reentrant versions.

Files:
6 edited

Legend:

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

    ra68e6b9 rd006519b  
    5959  return (*parent_loc.ops->link)( &existing_loc, &parent_loc, name_start );
    6060}
     61
     62/*
     63 *  _link_r
     64 *
     65 *  This is the Newlib dependent reentrant version of link().
     66 */
     67
     68#if defined(RTEMS_NEWLIB)
     69
     70#include <reent.h>
     71
     72int _link_r(
     73  struct _reent *ptr,
     74  const char    *existing,
     75  const char    *new
     76)
     77{
     78  return link( existing, new );
     79}
     80#endif
     81
  • c/src/exec/libcsupport/src/unlink.c

    ra68e6b9 rd006519b  
    4343  return (*loc.ops->unlink)( &loc );
    4444}
     45
     46/*
     47 *  _unlink_r
     48 *
     49 *  This is the Newlib dependent reentrant version of unlink().
     50 */
     51
     52#if defined(RTEMS_NEWLIB)
     53
     54#include <reent.h>
     55
     56int _unlink_r(
     57  struct _reent *ptr,
     58  const char    *path
     59)
     60{
     61  return unlink( path );
     62}
     63#endif
     64
  • c/src/lib/libc/link.c

    ra68e6b9 rd006519b  
    5959  return (*parent_loc.ops->link)( &existing_loc, &parent_loc, name_start );
    6060}
     61
     62/*
     63 *  _link_r
     64 *
     65 *  This is the Newlib dependent reentrant version of link().
     66 */
     67
     68#if defined(RTEMS_NEWLIB)
     69
     70#include <reent.h>
     71
     72int _link_r(
     73  struct _reent *ptr,
     74  const char    *existing,
     75  const char    *new
     76)
     77{
     78  return link( existing, new );
     79}
     80#endif
     81
  • c/src/lib/libc/unlink.c

    ra68e6b9 rd006519b  
    4343  return (*loc.ops->unlink)( &loc );
    4444}
     45
     46/*
     47 *  _unlink_r
     48 *
     49 *  This is the Newlib dependent reentrant version of unlink().
     50 */
     51
     52#if defined(RTEMS_NEWLIB)
     53
     54#include <reent.h>
     55
     56int _unlink_r(
     57  struct _reent *ptr,
     58  const char    *path
     59)
     60{
     61  return unlink( path );
     62}
     63#endif
     64
  • cpukit/libcsupport/src/link.c

    ra68e6b9 rd006519b  
    5959  return (*parent_loc.ops->link)( &existing_loc, &parent_loc, name_start );
    6060}
     61
     62/*
     63 *  _link_r
     64 *
     65 *  This is the Newlib dependent reentrant version of link().
     66 */
     67
     68#if defined(RTEMS_NEWLIB)
     69
     70#include <reent.h>
     71
     72int _link_r(
     73  struct _reent *ptr,
     74  const char    *existing,
     75  const char    *new
     76)
     77{
     78  return link( existing, new );
     79}
     80#endif
     81
  • cpukit/libcsupport/src/unlink.c

    ra68e6b9 rd006519b  
    4343  return (*loc.ops->unlink)( &loc );
    4444}
     45
     46/*
     47 *  _unlink_r
     48 *
     49 *  This is the Newlib dependent reentrant version of unlink().
     50 */
     51
     52#if defined(RTEMS_NEWLIB)
     53
     54#include <reent.h>
     55
     56int _unlink_r(
     57  struct _reent *ptr,
     58  const char    *path
     59)
     60{
     61  return unlink( path );
     62}
     63#endif
     64
Note: See TracChangeset for help on using the changeset viewer.