Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 25a76ab8 in mainline for boot/generic/include/errno.h


Ignore:
Timestamp:
2010-05-08T07:53:23Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
051bc69a
Parents:
6c39a907 (diff), 1317380 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • boot/generic/include/errno.h

    r6c39a907 r25a76ab8  
    11/*
    2  * Copyright (c) 2006 Jakub Jermar
     2 * Copyright (c) 2005 Martin Decky
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup generic
    30  * @{
    31  */
    3229/** @file
    3330 */
    3431
    35 #ifndef BOOT_ALIGN_H_
    36 #define BOOT_ALIGN_H_
     32#ifndef BOOT_ERRNO_H_
     33#define BOTT_ERRNO_H_
    3734
    38 /** Align to the nearest higher address.
    39  *
    40  * @param addr  Address or size to be aligned.
    41  * @param align Size of alignment, must be power of 2.
    42  */
    43 #define ALIGN_UP(addr, align) (((addr) + ((align) - 1)) & ~((align) - 1))
     35#define EOK        0    /* No error. */
     36#define ENOENT     -1   /* No such entry. */
     37#define ENOMEM     -2   /* Not enough memory. */
     38#define ELIMIT     -3   /* Limit exceeded. */
     39#define EINVAL     -14  /* Invalid value. */
     40#define EOVERFLOW  -16  /* The result does not fit its size. */
    4441
    4542#endif
Note: See TracChangeset for help on using the changeset viewer.