Changeset d6c98451 in mainline for uspace/lib/posix/include


Ignore:
Timestamp:
2015-09-20T11:12:33Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fbf4dc1
Parents:
8a45707d
Message:

Move (u)intmax_t to libc. Some stdint.h work.

Location:
uspace/lib/posix/include/posix
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/include/posix/inttypes.h

    r8a45707d rd6c98451  
    4343#include "libc/inttypes.h"
    4444
    45 extern __POSIX_DEF__(intmax_t) __POSIX_DEF__(strtoimax)(const char *restrict nptr,
     45extern intmax_t __POSIX_DEF__(strtoimax)(const char *restrict nptr,
    4646    char **restrict endptr, int base);
    47 extern __POSIX_DEF__(uintmax_t) __POSIX_DEF__(strtoumax)(const char *restrict nptr,
     47extern uintmax_t __POSIX_DEF__(strtoumax)(const char *restrict nptr,
    4848    char **restrict endptr, int base);
    4949
  • uspace/lib/posix/include/posix/stdint.h

    r8a45707d rd6c98451  
    104104#include "libc/sys/types.h"
    105105
    106 typedef int64_t __POSIX_DEF__(intmax_t);
    107 typedef uint64_t __POSIX_DEF__(uintmax_t);
    108 
    109 
    110106/*
    111107 * Fast* and least* integer types.
    112108 *
    113  * The definitions below are definitely safe if not the best.
     109 * The definitions below are correct as long as uint8/16/32/64_t are defined.
     110 * Considering the entire rest of the system would break down if they were not,
     111 * these definitions are just fine.
    114112 */
    115113typedef uint8_t uint_least8_t;
Note: See TracChangeset for help on using the changeset viewer.