Changeset 1ae9c07 in mainline


Ignore:
Timestamp:
2018-06-15T11:39:53Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
55092672
Parents:
e6bab27b
git-author:
Jiri Svoboda <jiri@…> (2018-06-14 21:38:49)
git-committer:
Jiri Svoboda <jiri@…> (2018-06-15 11:39:53)
Message:

iso646.h is ISO C. (A)OFF64_MIN/MAX are neither POSIX nor ISO C.

Location:
uspace/lib
Files:
1 added
4 edited

Legend:

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

    re6bab27b r1ae9c07  
    3636#define POSIX_INTTYPES_H_
    3737
    38 #include "stdint.h"
     38/*
     39 * Just a pass-through to libc inttypes.
     40 */
    3941#include "libc/inttypes.h"
    4042
  • uspace/lib/posix/include/posix/iso646.h

    re6bab27b r1ae9c07  
    11/*
    2  * Copyright (c) 2011 Jiri Zarevucky
     2 * Copyright (c) 2018 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    3030 * @{
    3131 */
    32 /** @file Alternative spellings.
    33  */
    3432
    3533#ifndef POSIX_ISO646_H_
    3634#define POSIX_ISO646_H_
    3735
    38 #define and &&
    39 #define and_eq &=
    40 #define bitand &
    41 #define bitor |
    42 #define compl ˜
    43 #define not !
    44 #define not_eq !=
    45 #define or ||
    46 #define or_eq |=
    47 #define xor ^
    48 #define xor_eq ^=
     36/*
     37 * Just a pass-through to libc iso646.
     38 */
     39#include "libc/iso646.h"
    4940
    50 #endif /* POSIX_ISO646_H_ */
     41#endif
    5142
    5243/** @}
  • uspace/lib/posix/include/posix/limits.h

    re6bab27b r1ae9c07  
    3636#define POSIX_LIMITS_H_
    3737
    38 #include "posix/stdint.h"
    3938#include "libc/limits.h"
    4039
  • uspace/lib/posix/include/posix/stdint.h

    re6bab27b r1ae9c07  
    11/*
    2  * Copyright (c) 2011 Petr Koupy
     2 * Copyright (c) 2018 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    3030 * @{
    3131 */
    32 /** @file Integer types.
    33  */
    3432
    3533#ifndef POSIX_STDINT_H_
    3634#define POSIX_STDINT_H_
    3735
     36/*
     37 * Just a pass-through to libc stdint.
     38 */
    3839#include "libc/stdint.h"
    3940
    40 #undef OFF64_MAX
    41 #undef OFF64_MIN
    42 #define OFF64_MAX  INT64_MAX
    43 #define OFF64_MIN  INT64_MIN
    44 
    45 #undef AOFF64_MAX
    46 #undef AOFF64_MIN
    47 #define AOFF64_MAX  UINT64_MAX
    48 #define AOFF64_MIN  UINT64_MIN
    49 
    50 #endif /* POSIX_STDINT_H_ */
     41#endif
    5142
    5243/** @}
Note: See TracChangeset for help on using the changeset viewer.