Changeset fbfb5926 in rtems


Ignore:
Timestamp:
Dec 13, 2007, 4:52:21 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
8728969
Parents:
8d8daef4
Message:

2007-12-13 Joel Sherrill <joel.sherrill@…>

  • posix/Makefile.am, posix/src/clockgetcpuclockid.c, posix/src/clockgetenableattr.c, posix/src/clockgettime.c, posix/src/clocksetenableattr.c, posix/src/clocksettime.c, posix/src/devctl.c, posix/src/execl.c, posix/src/execle.c, posix/src/execlp.c, posix/src/execv.c, posix/src/execve.c, posix/src/execvp.c, posix/src/fork.c, posix/src/mutexinit.c, posix/src/pthreadatfork.c, posix/src/pthreadgetcpuclockid.c, posix/src/pthreadkill.c, posix/src/semaphorecreatesupp.c, posix/src/sysconf.c, posix/src/wait.c, posix/src/waitpid.c: Split files into one function per file.
  • posix/src/aio_cancel.c, posix/src/aio_error.c, posix/src/aio_fsync.c, posix/src/aio_read.c, posix/src/aio_return.c, posix/src/aio_suspend.c, posix/src/aio_write.c, posix/src/lio_listio.c, posix/src/sched_getparam.c, posix/src/sched_getprioritymax.c, posix/src/sched_getprioritymin.c, posix/src/sched_getscheduler.c, posix/src/sched_rr_get_interval.c, posix/src/sched_setparam.c, posix/src/sched_setscheduler.c, posix/src/sched_yield.c: New files.
  • posix/src/aio.c, posix/src/sched.c, posix/src/types.c: Removed.
Location:
cpukit
Files:
16 added
3 deleted
23 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r8d8daef4 rfbfb5926  
     12007-12-13      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * posix/Makefile.am, posix/src/clockgetcpuclockid.c,
     4        posix/src/clockgetenableattr.c, posix/src/clockgettime.c,
     5        posix/src/clocksetenableattr.c, posix/src/clocksettime.c,
     6        posix/src/devctl.c, posix/src/execl.c, posix/src/execle.c,
     7        posix/src/execlp.c, posix/src/execv.c, posix/src/execve.c,
     8        posix/src/execvp.c, posix/src/fork.c, posix/src/mutexinit.c,
     9        posix/src/pthreadatfork.c, posix/src/pthreadgetcpuclockid.c,
     10        posix/src/pthreadkill.c, posix/src/semaphorecreatesupp.c,
     11        posix/src/sysconf.c, posix/src/wait.c, posix/src/waitpid.c: Split
     12        files into one function per file.
     13        * posix/src/aio_cancel.c, posix/src/aio_error.c, posix/src/aio_fsync.c,
     14        posix/src/aio_read.c, posix/src/aio_return.c,
     15        posix/src/aio_suspend.c, posix/src/aio_write.c,
     16        posix/src/lio_listio.c, posix/src/sched_getparam.c,
     17        posix/src/sched_getprioritymax.c, posix/src/sched_getprioritymin.c,
     18        posix/src/sched_getscheduler.c, posix/src/sched_rr_get_interval.c,
     19        posix/src/sched_setparam.c, posix/src/sched_setscheduler.c,
     20        posix/src/sched_yield.c: New files.
     21        * posix/src/aio.c, posix/src/sched.c, posix/src/types.c: Removed.
     22
    1232007-12-13      Joel Sherrill <joel.sherrill@OARcorp.com>
    224
  • cpukit/posix/Makefile.am

    r8d8daef4 rfbfb5926  
    5252# These are really in the stand but not really functional
    5353## BUILD_FOR_NOW_C_FILES
    54 libposix_a_SOURCES += src/aio.c src/devctl.c
     54libposix_a_SOURCES += src/aio_cancel.c src/aio_error.c src/aio_fsync.c \
     55    src/aio_read.c src/aio_return.c src/aio_suspend.c src/aio_write.c \
     56    src/lio_listio.c src/devctl.c
    5557
    5658## ENOSYS_C_FILES
     
    164166EXTRA_DIST += src/README.mqueue
    165167
    166 libposix_a_SOURCES += src/sched.c src/sysconf.c src/types.c
     168libposix_a_SOURCES += src/sched_getparam.c src/sched_getprioritymax.c \
     169    src/sched_getprioritymin.c src/sched_getscheduler.c \
     170    src/sched_rr_get_interval.c src/sched_setparam.c \
     171    src/sched_setscheduler.c src/sched_yield.c src/sysconf.c
    167172endif
    168173endif
  • cpukit/posix/src/clockgetcpuclockid.c

    r8d8daef4 rfbfb5926  
    11/*
     2 *  COPYRIGHT (c) 1989-2007.
     3 *  On-Line Applications Research Corporation (OAR).
     4 *
     5 *  The license and distribution terms for this file may be
     6 *  found in the file LICENSE in this distribution or at
     7 *  http://www.rtems.com/license/LICENSE.
     8 *
    29 *  $Id$
    310 */
  • cpukit/posix/src/clockgetenableattr.c

    r8d8daef4 rfbfb5926  
    11/*
     2 *  COPYRIGHT (c) 1989-2007.
     3 *  On-Line Applications Research Corporation (OAR).
     4 *
     5 *  The license and distribution terms for this file may be
     6 *  found in the file LICENSE in this distribution or at
     7 *  http://www.rtems.com/license/LICENSE.
     8 *
    29 *  $Id$
    310 */
  • cpukit/posix/src/clockgettime.c

    r8d8daef4 rfbfb5926  
    11/*
     2 *  COPYRIGHT (c) 1989-2007.
     3 *  On-Line Applications Research Corporation (OAR).
     4 *
     5 *  The license and distribution terms for this file may be
     6 *  found in the file LICENSE in this distribution or at
     7 *  http://www.rtems.com/license/LICENSE.
     8 *
    29 *  $Id$
    310 */
  • cpukit/posix/src/clocksetenableattr.c

    r8d8daef4 rfbfb5926  
    11/*
     2 *  COPYRIGHT (c) 1989-2007.
     3 *  On-Line Applications Research Corporation (OAR).
     4 *
     5 *  The license and distribution terms for this file may be
     6 *  found in the file LICENSE in this distribution or at
     7 *  http://www.rtems.com/license/LICENSE.
     8 *
    29 *  $Id$
    310 */
  • cpukit/posix/src/clocksettime.c

    r8d8daef4 rfbfb5926  
    11/*
     2 *  COPYRIGHT (c) 1989-2007.
     3 *  On-Line Applications Research Corporation (OAR).
     4 *
     5 *  The license and distribution terms for this file may be
     6 *  found in the file LICENSE in this distribution or at
     7 *  http://www.rtems.com/license/LICENSE.
     8 *
    29 *  $Id$
    310 */
  • cpukit/posix/src/devctl.c

    r8d8daef4 rfbfb5926  
    11/*
     2 *  COPYRIGHT (c) 1989-2007.
     3 *  On-Line Applications Research Corporation (OAR).
     4 *
     5 *  The license and distribution terms for this file may be
     6 *  found in the file LICENSE in this distribution or at
     7 *  http://www.rtems.com/license/LICENSE.
     8 *
    29 *  $Id$
    310 */
  • cpukit/posix/src/execl.c

    r8d8daef4 rfbfb5926  
    11/*
    22 *  execl() - POSIX 1003.1b 3.1.2
     3 *
     4 *  COPYRIGHT (c) 1989-2007.
     5 *  On-Line Applications Research Corporation (OAR).
     6 *
     7 *  The license and distribution terms for this file may be
     8 *  found in the file LICENSE in this distribution or at
     9 *  http://www.rtems.com/license/LICENSE.
    310 *
    411 *  $Id$
     
    1017
    1118#include <errno.h>
     19#include <rtems/seterr.h>
    1220
    1321int execl(
     
    1725)
    1826{
    19   errno = ENOSYS;
    20   return -1;
     27  rtems_set_errno_and_return_minus_one( ENOSYS );
    2128}
  • cpukit/posix/src/execle.c

    r8d8daef4 rfbfb5926  
    11/*
    22 *  execle() - POSIX 1003.1b 3.1.2
     3 *
     4 *  COPYRIGHT (c) 1989-2007.
     5 *  On-Line Applications Research Corporation (OAR).
     6 *
     7 *  The license and distribution terms for this file may be
     8 *  found in the file LICENSE in this distribution or at
     9 *  http://www.rtems.com/license/LICENSE.
    310 *
    411 *  $Id$
     
    1017
    1118#include <errno.h>
     19#include <rtems/seterr.h>
    1220
    1321int execle(
     
    1725)
    1826{
    19   errno = ENOSYS;
    20   return -1;
     27  rtems_set_errno_and_return_minus_one( ENOSYS );
    2128}
  • cpukit/posix/src/execlp.c

    r8d8daef4 rfbfb5926  
    11/*
    22 *  execlp() - POSIX 1003.1b 3.1.2
     3 *
     4 *  COPYRIGHT (c) 1989-2007.
     5 *  On-Line Applications Research Corporation (OAR).
     6 *
     7 *  The license and distribution terms for this file may be
     8 *  found in the file LICENSE in this distribution or at
     9 *  http://www.rtems.com/license/LICENSE.
    310 *
    411 *  $Id$
     
    1017
    1118#include <errno.h>
     19#include <rtems/seterr.h>
    1220
    1321int execlp(
     
    1725)
    1826{
    19   errno = ENOSYS;
    20   return -1;
     27  rtems_set_errno_and_return_minus_one( ENOSYS );
    2128}
  • cpukit/posix/src/execv.c

    r8d8daef4 rfbfb5926  
    11/*
    22 *  execv() - POSIX 1003.1b 3.1.2
     3 *
     4 *  COPYRIGHT (c) 1989-2007.
     5 *  On-Line Applications Research Corporation (OAR).
     6 *
     7 *  The license and distribution terms for this file may be
     8 *  found in the file LICENSE in this distribution or at
     9 *  http://www.rtems.com/license/LICENSE.
    310 *
    411 *  $Id$
     
    1017
    1118#include <errno.h>
     19#include <rtems/seterr.h>
    1220
    1321int execv(
     
    1624)
    1725{
    18   errno = ENOSYS;
    19   return -1;
     26  rtems_set_errno_and_return_minus_one( ENOSYS );
    2027}
  • cpukit/posix/src/execve.c

    r8d8daef4 rfbfb5926  
    11/*
    22 *  execve() - POSIX 1003.1b 3.1.2
     3 *
     4 *  COPYRIGHT (c) 1989-2007.
     5 *  On-Line Applications Research Corporation (OAR).
     6 *
     7 *  The license and distribution terms for this file may be
     8 *  found in the file LICENSE in this distribution or at
     9 *  http://www.rtems.com/license/LICENSE.
    310 *
    411 *  $Id$
     
    1017
    1118#include <errno.h>
     19#include <rtems/seterr.h>
    1220
    1321int execve(
     
    1725)
    1826{
    19   errno = ENOSYS;
    20   return -1;
     27  rtems_set_errno_and_return_minus_one( ENOSYS );
    2128}
  • cpukit/posix/src/execvp.c

    r8d8daef4 rfbfb5926  
    11/*
    22 *  execvp() - POSIX 1003.1b 3.1.2
     3 *
     4 *  COPYRIGHT (c) 1989-2007.
     5 *  On-Line Applications Research Corporation (OAR).
     6 *
     7 *  The license and distribution terms for this file may be
     8 *  found in the file LICENSE in this distribution or at
     9 *  http://www.rtems.com/license/LICENSE.
    310 *
    411 *  $Id$
     
    1017
    1118#include <errno.h>
     19#include <rtems/seterr.h>
    1220
    1321int execvp(
     
    1624)
    1725{
    18   errno = ENOSYS;
    19   return -1;
     26  rtems_set_errno_and_return_minus_one( ENOSYS );
    2027}
  • cpukit/posix/src/fork.c

    r8d8daef4 rfbfb5926  
    11/*
    22 *  fork() - POSIX 1003.1b 3.1.1
     3 *
     4 *  COPYRIGHT (c) 1989-2007.
     5 *  On-Line Applications Research Corporation (OAR).
     6 *
     7 *  The license and distribution terms for this file may be
     8 *  found in the file LICENSE in this distribution or at
     9 *  http://www.rtems.com/license/LICENSE.
    310 *
    411 *  $Id$
     
    1118#include <sys/types.h>
    1219#include <errno.h>
     20#include <rtems/seterr.h>
    1321
    1422int fork( void )
    1523{
    16   errno = ENOSYS;
    17   return -1;
     24  rtems_set_errno_and_return_minus_one( ENOSYS );
    1825}
  • cpukit/posix/src/mutexinit.c

    r8d8daef4 rfbfb5926  
    11/*
     2 *  COPYRIGHT (c) 1989-2007.
     3 *  On-Line Applications Research Corporation (OAR).
     4 *
     5 *  The license and distribution terms for this file may be
     6 *  found in the file LICENSE in this distribution or at
     7 *  http://www.rtems.com/license/LICENSE.
     8 *
    29 *  $Id$
    310 */
  • cpukit/posix/src/pthreadatfork.c

    r8d8daef4 rfbfb5926  
    1111 *   provided."
    1212 *
     13 *  COPYRIGHT (c) 1989-2007.
     14 *  On-Line Applications Research Corporation (OAR).
     15 *
     16 *  The license and distribution terms for this file may be
     17 *  found in the file LICENSE in this distribution or at
     18 *  http://www.rtems.com/license/LICENSE.
     19 *
    1320 *  $Id$
    1421 */
     
    1825#endif
    1926
    20 #include <sys/types.h>
    2127#include <errno.h>
     28#include <rtems/seterr.h>
    2229
    2330int pthread_atfork(
     
    2734)
    2835{
    29   errno = ENOSYS;
    30   return -1;
     36  rtems_set_errno_and_return_minus_one( ENOSYS );
    3137}
  • cpukit/posix/src/pthreadgetcpuclockid.c

    r8d8daef4 rfbfb5926  
    22 *  20.1.6 Accessing a Thread CPU-time Clock, P1003.4b/Draft 8, p. 58
    33 *
    4  *  COPYRIGHT (c) 1989-1999.
     4 *  COPYRIGHT (c) 1989-2007.
    55 *  On-Line Applications Research Corporation (OAR).
    66 *
  • cpukit/posix/src/pthreadkill.c

    r8d8daef4 rfbfb5926  
    4141    rtems_set_errno_and_return_minus_one( EINVAL );
    4242
    43 /* commented out when posix timers added
    44   if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO )
    45     rtems_set_errno_and_return_minus_one( ENOSYS );
    46 */
    47 
    4843  the_thread = _POSIX_Threads_Get( thread, &location );
    4944  switch ( location ) {
  • cpukit/posix/src/semaphorecreatesupp.c

    r8d8daef4 rfbfb5926  
    11/*
     2 *  COPYRIGHT (c) 1989-2007.
     3 *  On-Line Applications Research Corporation (OAR).
     4 *
     5 *  The license and distribution terms for this file may be
     6 *  found in the file LICENSE in this distribution or at
     7 *  http://www.rtems.com/license/LICENSE.
     8 *
    29 *  $Id$
    310 */
  • cpukit/posix/src/sysconf.c

    r8d8daef4 rfbfb5926  
    1212
    1313#include <rtems/system.h>
     14#include <rtems/seterr.h>
    1415#include <rtems/score/tod.h>
    1516
     
    5051  }
    5152
    52   errno = EINVAL;
    53   return -1;
     53  rtems_set_errno_and_return_minus_one( EINVAL );
    5454}
  • cpukit/posix/src/wait.c

    r8d8daef4 rfbfb5926  
    11/*
    22 *  waitpid() - POSIX 1003.1b 3.2.1
     3 *
     4 *  COPYRIGHT (c) 1989-2007.
     5 *  On-Line Applications Research Corporation (OAR).
     6 *
     7 *  The license and distribution terms for this file may be
     8 *  found in the file LICENSE in this distribution or at
     9 *  http://www.rtems.com/license/LICENSE.
    310 *
    411 *  $Id$
     
    1219#include <sys/wait.h>
    1320#include <errno.h>
     21#include <rtems/seterr.h>
    1422
    1523int wait(
     
    1725)
    1826{
    19   errno = ENOSYS;
    20   return -1;
     27  rtems_set_errno_and_return_minus_one( ENOSYS );
    2128}
  • cpukit/posix/src/waitpid.c

    r8d8daef4 rfbfb5926  
    11/*
    22 *  waitpid() - POSIX 1003.1 3.2.1
     3 *
     4 *  COPYRIGHT (c) 1989-2007.
     5 *  On-Line Applications Research Corporation (OAR).
     6 *
     7 *  The license and distribution terms for this file may be
     8 *  found in the file LICENSE in this distribution or at
     9 *  http://www.rtems.com/license/LICENSE.
    310 *
    411 *  $Id$
     
    1219#include <sys/wait.h>
    1320#include <errno.h>
     21#include <rtems/seterr.h>
    1422
    1523int waitpid(
     
    1927)
    2028{
    21   errno = ENOSYS;
    22   return -1;
     29  rtems_set_errno_and_return_minus_one( ENOSYS );
    2330}
Note: See TracChangeset for help on using the changeset viewer.