Changeset c0699467 in mainline for abi/include/synch.h


Ignore:
Timestamp:
2011-08-09T18:08:23Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b538ca5c
Parents:
3666d38
Message:

do not provide general access to kernel headers from uspace, only allow specific headers to be accessed or shared
externalize headers which serve as kernel/uspace API/ABI into a special tree

File:
1 moved

Legend:

Unmodified
Added
Removed
  • abi/include/synch.h

    r3666d38 rc0699467  
    3333 */
    3434
    35 #ifndef KERN_SYNCH_H_
    36 #define KERN_SYNCH_H_
     35#ifndef ABI_SYNCH_H_
     36#define ABI_SYNCH_H_
    3737
    3838/** Request with no timeout. */
    39 #define SYNCH_NO_TIMEOUT        0
     39#define SYNCH_NO_TIMEOUT  0
    4040
    4141/** No flags specified. */
    42 #define SYNCH_FLAGS_NONE                0
     42#define SYNCH_FLAGS_NONE           0
    4343/** Non-blocking operation request. */
    44 #define SYNCH_FLAGS_NON_BLOCKING        (1 << 0)
     44#define SYNCH_FLAGS_NON_BLOCKING   (1 << 0)
    4545/** Interruptible operation. */
    46 #define SYNCH_FLAGS_INTERRUPTIBLE       (1 << 1)
     46#define SYNCH_FLAGS_INTERRUPTIBLE  (1 << 1)
    4747
    4848/** Could not satisfy the request without going to sleep. */
    49 #define ESYNCH_WOULD_BLOCK      1
     49#define ESYNCH_WOULD_BLOCK  1
    5050/** Timeout occurred. */
    51 #define ESYNCH_TIMEOUT          2
     51#define ESYNCH_TIMEOUT      2
    5252/** Sleep was interrupted. */
    53 #define ESYNCH_INTERRUPTED      4
     53#define ESYNCH_INTERRUPTED  4
    5454/** Operation succeeded without sleeping. */
    55 #define ESYNCH_OK_ATOMIC        8
     55#define ESYNCH_OK_ATOMIC    8
    5656/** Operation succeeded and did sleep. */
    57 #define ESYNCH_OK_BLOCKED       16
     57#define ESYNCH_OK_BLOCKED   16
    5858
    5959#define SYNCH_FAILED(rc) \
    6060        ((rc) & (ESYNCH_WOULD_BLOCK | ESYNCH_TIMEOUT | ESYNCH_INTERRUPTED))
     61
    6162#define SYNCH_OK(rc) \
    6263        ((rc) & (ESYNCH_OK_ATOMIC | ESYNCH_OK_BLOCKED))
Note: See TracChangeset for help on using the changeset viewer.