Changeset dbdb6a32 in rtems


Ignore:
Timestamp:
Sep 27, 2017, 1:14:33 PM (19 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
441993a8
Parents:
e2fe881a
git-author:
Sebastian Huber <sebastian.huber@…> (09/27/17 13:14:33)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/27/17 13:33:01)
Message:

posix: Remove superfluous includes

Location:
cpukit/posix/src
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/src/condattrdestroy.c

    re2fe881a rdbdb6a32  
    1919#endif
    2020
     21#include <errno.h>
    2122#include <pthread.h>
    22 #include <errno.h>
    23 
    24 #include <rtems/system.h>
    25 #include <rtems/score/watchdog.h>
    26 #include <rtems/posix/condimpl.h>
    27 #include <rtems/posix/muteximpl.h>
     23#include <stddef.h>
     24#include <stdbool.h>
    2825
    2926/*
     
    3633)
    3734{
    38   if ( !attr || attr->is_initialized == false )
     35  if ( attr == NULL || !attr->is_initialized )
    3936    return EINVAL;
    4037
  • cpukit/posix/src/condattrinit.c

    re2fe881a rdbdb6a32  
    2222#include <errno.h>
    2323
    24 #include <rtems/system.h>
    25 #include <rtems/score/watchdog.h>
    2624#include <rtems/posix/condimpl.h>
    27 #include <rtems/posix/muteximpl.h>
    2825
    2926/*
     
    3633)
    3734{
    38   if ( !attr )
     35  if ( attr == NULL )
    3936    return EINVAL;
    4037
  • cpukit/posix/src/mutexattrdestroy.c

    re2fe881a rdbdb6a32  
    2121#include <errno.h>
    2222#include <pthread.h>
    23 
    24 #include <rtems/system.h>
    25 #include <rtems/score/coremuteximpl.h>
    26 #include <rtems/score/watchdog.h>
    27 #include <rtems/posix/muteximpl.h>
    28 #include <rtems/posix/priorityimpl.h>
     23#include <stddef.h>
     24#include <stdbool.h>
    2925
    3026/**
     
    3531)
    3632{
    37   if ( !attr || !attr->is_initialized )
     33  if ( attr == NULL || !attr->is_initialized )
    3834    return EINVAL;
    3935
  • cpukit/posix/src/mutexattrgetprioceiling.c

    re2fe881a rdbdb6a32  
    2121#include <errno.h>
    2222#include <pthread.h>
    23 
    24 #include <rtems/system.h>
    25 #include <rtems/score/coremuteximpl.h>
    26 #include <rtems/score/watchdog.h>
    27 #include <rtems/posix/muteximpl.h>
    28 #include <rtems/posix/priorityimpl.h>
     23#include <stddef.h>
    2924
    3025/*
     
    3732)
    3833{
    39   if ( !attr || !attr->is_initialized || !prioceiling )
     34  if ( attr == NULL || !attr->is_initialized || prioceiling == NULL)
    4035    return EINVAL;
    4136
  • cpukit/posix/src/mutexattrgetprotocol.c

    re2fe881a rdbdb6a32  
    2121#include <errno.h>
    2222#include <pthread.h>
    23 
    24 #include <rtems/system.h>
    25 #include <rtems/score/coremuteximpl.h>
    26 #include <rtems/score/watchdog.h>
    27 #include <rtems/posix/muteximpl.h>
    28 #include <rtems/posix/priorityimpl.h>
     23#include <stddef.h>
    2924
    3025/*
     
    3732)
    3833{
    39   if ( !attr || !attr->is_initialized || !protocol )
     34  if ( attr == NULL || !attr->is_initialized || protocol == NULL )
    4035    return EINVAL;
    4136
  • cpukit/posix/src/mutexattrgetpshared.c

    re2fe881a rdbdb6a32  
    2121#include <errno.h>
    2222#include <pthread.h>
    23 
    24 #include <rtems/system.h>
    25 #include <rtems/score/coremuteximpl.h>
    26 #include <rtems/score/watchdog.h>
    27 #include <rtems/posix/muteximpl.h>
    28 #include <rtems/posix/priorityimpl.h>
     23#include <stddef.h>
    2924
    3025/*
     
    3732)
    3833{
    39   if ( !attr || !attr->is_initialized || !pshared )
     34  if ( attr == NULL || !attr->is_initialized || pshared == NULL )
    4035    return EINVAL;
    4136
  • cpukit/posix/src/mutexattrgettype.c

    re2fe881a rdbdb6a32  
    2121#include <errno.h>
    2222#include <pthread.h>
    23 
    24 #include <rtems/system.h>
    25 #include <rtems/score/coremuteximpl.h>
    26 #include <rtems/score/watchdog.h>
    27 #include <rtems/posix/muteximpl.h>
    28 #include <rtems/posix/priorityimpl.h>
     23#include <stddef.h>
    2924
    3025#if defined(_UNIX98_THREAD_MUTEX_ATTRIBUTES)
     
    3429)
    3530{
    36   if ( !attr )
    37     return EINVAL;
    38 
    39   if ( !attr->is_initialized )
    40     return EINVAL;
    41 
    42   if ( !type )
     31  if ( attr == NULL || !attr->is_initialized || type == NULL )
    4332    return EINVAL;
    4433
  • cpukit/posix/src/mutexattrinit.c

    re2fe881a rdbdb6a32  
    2121#include <errno.h>
    2222#include <pthread.h>
     23#include <stddef.h>
    2324
    24 #include <rtems/system.h>
    25 #include <rtems/score/coremuteximpl.h>
    26 #include <rtems/score/watchdog.h>
    2725#include <rtems/posix/muteximpl.h>
    28 #include <rtems/posix/priorityimpl.h>
    2926
    3027/**
     
    3532)
    3633{
    37   if ( !attr )
     34  if ( attr == NULL )
    3835    return EINVAL;
    3936
Note: See TracChangeset for help on using the changeset viewer.