Changeset 18a623e in rtems-libbsd


Ignore:
Timestamp:
Mar 6, 2017, 11:07:32 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
fd86c091b97759106da7355ce1dd81ebe030e285, f020f08430150c1656a0ad0a1de13699db9b980b
Children:
517e229
Parents:
08f4881
git-author:
Sebastian Huber <sebastian.huber@…> (03/06/17 11:07:32)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/06/17 11:09:54)
Message:

Provide strtoq() and strtouq()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/sys/systm.h

    r08f4881 r18a623e  
    277277long    strtol(const char *, char **, int) __nonnull(1);
    278278u_long  strtoul(const char *, char **, int) __nonnull(1);
     279#ifndef __rtems__
    279280quad_t  strtoq(const char *, char **, int) __nonnull(1);
    280281u_quad_t strtouq(const char *, char **, int) __nonnull(1);
     282#else /* __rtems__ */
     283long long strtoll(const char *, char **, int);
     284unsigned long long strtoull(const char *, char **, int);
     285
     286static inline quad_t __nonnull(1)
     287strtoq(const char *nptr, char **endptr, int base)
     288{
     289
     290        return (strtoll(nptr, endptr, base));
     291}
     292
     293static inline u_quad_t __nonnull(1)
     294strtouq(const char *nptr, char **endptr, int base)
     295{
     296
     297        return (strtoull(nptr, endptr, base));
     298}
     299#endif /* __rtems__ */
    281300void    tprintf(struct proc *p, int pri, const char *, ...) __printflike(3, 4);
    282301void    vtprintf(struct proc *, int, const char *, __va_list) __printflike(3, 0);
Note: See TracChangeset for help on using the changeset viewer.