Changeset 12d6c98 in mainline


Ignore:
Timestamp:
2013-10-16T16:09:14Z (11 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2923c7b
Parents:
c2a6983
Message:

Add not-implemented warnings to pthread functions

Location:
uspace/lib/posix/source/pthread
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/source/pthread/condvar.c

    rc2a6983 r12d6c98  
    3838#include "posix/pthread.h"
    3939#include "errno.h"
     40#include "../internal/common.h"
    4041
    4142int pthread_cond_init(pthread_cond_t *restrict condvar,
    4243    const pthread_condattr_t *restrict attr)
    4344{
     45        not_implemented();
    4446        return ENOTSUP;
    4547}
     
    4749int pthread_cond_destroy(pthread_cond_t *condvar)
    4850{
     51        not_implemented();
    4952        return ENOTSUP;
    5053}
     
    5255int pthread_cond_broadcast(pthread_cond_t *condvar)
    5356{
     57        not_implemented();
    5458        return ENOTSUP;
    5559}
     
    5761int pthread_cond_signal(pthread_cond_t *condvar)
    5862{
     63        not_implemented();
    5964        return ENOTSUP;
    6065}
     
    6368    pthread_mutex_t *restrict mutex, const struct __POSIX_DEF__(timespec) *restrict timeout)
    6469{
     70        not_implemented();
    6571        return ENOTSUP;
    6672}
     
    6975    pthread_mutex_t *restrict mutex)
    7076{
     77        not_implemented();
    7178        return ENOTSUP;
    7279}
     
    7582int pthread_condattr_init(pthread_condattr_t *attr)
    7683{
     84        not_implemented();
    7785        return ENOTSUP;
    7886}
     
    8088int pthread_condattr_destroy(pthread_condattr_t *attr)
    8189{
     90        not_implemented();
    8291        return ENOTSUP;
    8392}
  • uspace/lib/posix/source/pthread/keys.c

    rc2a6983 r12d6c98  
    3939#include "posix/pthread.h"
    4040#include "errno.h"
     41#include "../internal/common.h"
    4142
    4243
    4344void *pthread_getspecific(pthread_key_t key)
    4445{
     46        not_implemented();
    4547        return NULL;
    4648}
     
    4850int pthread_setspecific(pthread_key_t key, const void *data)
    4951{
     52        not_implemented();
    5053        return ENOTSUP;
    5154}
     
    5356int pthread_key_delete(pthread_key_t key)
    5457{
     58        not_implemented();
    5559        return ENOTSUP;
    5660}
     
    5862int pthread_key_create(pthread_key_t *key, void (*destructor)(void*))
    5963{
     64        not_implemented();
    6065        return ENOTSUP;
    6166}
  • uspace/lib/posix/source/pthread/mutex.c

    rc2a6983 r12d6c98  
    3838#include "posix/pthread.h"
    3939#include "errno.h"
     40#include "../internal/common.h"
    4041
    4142
     
    4344    const pthread_mutexattr_t *restrict attr)
    4445{
     46        not_implemented();
    4547        return ENOTSUP;
    4648}
     
    4850int pthread_mutex_destroy(pthread_mutex_t *mutex)
    4951{
     52        not_implemented();
    5053        return ENOTSUP;
    5154}
     
    5356int pthread_mutex_lock(pthread_mutex_t *mutex)
    5457{
     58        not_implemented();
    5559        return ENOTSUP;
    5660}
     
    5862int pthread_mutex_trylock(pthread_mutex_t *mutex)
    5963{
     64        not_implemented();
    6065        return ENOTSUP;
    6166}
     
    6368int pthread_mutex_unlock(pthread_mutex_t *mutex)
    6469{
     70        not_implemented();
    6571        return ENOTSUP;
    6672}
     
    6874int pthread_mutexattr_init(pthread_mutexattr_t *attr)
    6975{
     76        not_implemented();
    7077        return ENOTSUP;
    7178}
     
    7380int pthread_mutexattr_destroy(pthread_mutexattr_t *attr)
    7481{
     82        not_implemented();
    7583        return ENOTSUP;
    7684}
     
    7987    int *restrict type)
    8088{
     89        not_implemented();
    8190        return ENOTSUP;
    8291}
     
    8493int pthread_mutexattr_settype(pthread_mutexattr_t *attr, int type)
    8594{
     95        not_implemented();
    8696        return ENOTSUP;
    8797}
  • uspace/lib/posix/source/pthread/threads.c

    rc2a6983 r12d6c98  
    4040#include "posix/stdlib.h"
    4141#include "libc/thread.h"
     42#include "../internal/common.h"
    4243
    4344pthread_t pthread_self(void)
     
    5455    void *(*start_routine)(void *), void *arg)
    5556{
     57        not_implemented();
    5658        return ENOTSUP;
    5759}
     
    5961int pthread_join(pthread_t thread, void **ret_val)
    6062{
     63        not_implemented();
    6164        return ENOTSUP;
    6265}
     
    6467int pthread_detach(pthread_t thread)
    6568{
     69        not_implemented();
    6670        return ENOTSUP;
    6771}
     
    6973int pthread_attr_init(pthread_attr_t *attr)
    7074{
     75        not_implemented();
    7176        return ENOTSUP;
    7277}
     
    7479int pthread_attr_destroy(pthread_attr_t *attr)
    7580{
     81        not_implemented();
    7682        return ENOTSUP;
    7783}
Note: See TracChangeset for help on using the changeset viewer.