Changeset 1eb97ad in rtems


Ignore:
Timestamp:
Dec 1, 2009, 2:22:58 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
d382f6e
Parents:
0b0485ae
Message:

2009-12-01 Joel Sherrill <joel.sherrill@…>

  • libcsupport/Makefile.am: Split no_posix.c so using sleep() does not pull in kill() stubs.
  • libcsupport/src/kill_noposix.c, libcsupport/src/sleep_noposix.c: New files.
  • libcsupport/src/no_posix.c: Removed.
Location:
cpukit
Files:
1 added
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r0b0485ae r1eb97ad  
     12009-12-01      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * libcsupport/Makefile.am: Split no_posix.c so using sleep() does not
     4        pull in kill() stubs.
     5        * libcsupport/src/kill_noposix.c, libcsupport/src/sleep_noposix.c:
     6        New files.
     7        * libcsupport/src/no_posix.c: Removed.
     8
    192009-12-01      Sebastian Huber <sebastian.huber@embedded-brains.de>
    210
  • cpukit/libcsupport/Makefile.am

    r0b0485ae r1eb97ad  
    104104LIBC_GLUE_C_FILES = src/__getpid.c src/__gettod.c src/__times.c \
    105105    src/truncate.c src/access.c src/stat.c src/lstat.c src/pathconf.c \
    106     src/newlibc_reent.c src/newlibc_init.c src/newlibc_exit.c src/no_posix.c \
    107     src/utsname.c
     106    src/newlibc_reent.c src/newlibc_init.c src/newlibc_exit.c \
     107    src/kill_noposix.c src/sleep_noposix.c src/utsname.c
    108108
    109109BSD_LIBC_C_FILES = src/strlcpy.c src/strlcat.c src/issetugid.c
  • cpukit/libcsupport/src/sleep_noposix.c

    r0b0485ae r1eb97ad  
    2424
    2525/*
    26  *  These are directly supported (and completely correct) in the posix api.
    27  */
    28 
    29 #if !defined(RTEMS_POSIX_API)
    30 int kill( pid_t pid, int sig )
    31 {
    32   return 0;
    33 }
    34 
    35 #if defined(RTEMS_NEWLIB)
    36 #include <reent.h>
    37 
    38 int _kill_r( struct _reent *ptr, pid_t pid, int sig )
    39 {
    40   return 0;
    41 }
    42 #endif
    43 #endif
    44 
    45 int __kill( pid_t pid, int sig )
    46 {
    47   return 0;
    48 }
    49 
    50 
    51 /*
    5226 *  3.4.3 Delay Process Execution, P1003.1b-1993, p. 81
    5327 *
     
    6943  rtems_interval    ticks;
    7044
    71   status = rtems_clock_get(
    72   RTEMS_CLOCK_GET_TICKS_PER_SECOND,
    73   &ticks_per_second
    74   );
    75 
    76   ticks = seconds * ticks_per_second;
     45  ticks_per_second = rtems_clock_get_ticks_per_second() * seconds;
    7746
    7847  status = rtems_task_wake_after( ticks );
Note: See TracChangeset for help on using the changeset viewer.