Changeset 4db1fbf in mainline


Ignore:
Timestamp:
2011-01-28T20:34:57Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e26a4633
Parents:
007e6efa
Message:

make the libc private header really private (i.e. do not allow to be included from outside the library easily)

Location:
uspace/lib/c/generic
Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/async.c

    r007e6efa r4db1fbf  
    9494#include <futex.h>
    9595#include <async.h>
    96 #include <async_priv.h>
    9796#include <fibril.h>
    9897#include <stdio.h>
     
    105104#include <arch/barrier.h>
    106105#include <bool.h>
     106#include "priv/async.h"
    107107
    108108atomic_t async_futex = FUTEX_INITIALIZER;
  • uspace/lib/c/generic/fibril_synch.c

    r007e6efa r4db1fbf  
    3636#include <fibril.h>
    3737#include <async.h>
    38 #include <async_priv.h>
    3938#include <adt/list.h>
    4039#include <futex.h>
     
    4443#include <stacktrace.h>
    4544#include <stdlib.h>
     45#include "priv/async.h"
    4646
    4747static void optimize_execution_power(void)
  • uspace/lib/c/generic/priv/async.h

    r007e6efa r4db1fbf  
    3333 */
    3434
    35 #ifndef LIBC_ASYNC_PRIV_H_
    36 #define LIBC_ASYNC_PRIV_H_
     35#ifndef LIBC_PRIV_ASYNC_H_
     36#define LIBC_PRIV_ASYNC_H_
    3737
    3838#include <adt/list.h>
     
    5151        /** If true, we have timed out. */
    5252        bool occurred;
    53 
     53       
    5454        /** Expiration time. */
    5555        struct timeval expires;
     
    6565} wu_event_t;
    6666
    67 
    6867/** Structures of this type represent a waiting fibril. */
    6968typedef struct {
     
    7372        /** If true, this fibril is currently active. */
    7473        bool active;
    75 
     74       
    7675        /** Timeout wait data. */
    7776        to_event_t to_event;
     
    8079} awaiter_t;
    8180
    82 extern void async_insert_timeout(awaiter_t *wd);
     81extern void async_insert_timeout(awaiter_t *);
    8382
    8483#endif
Note: See TracChangeset for help on using the changeset viewer.