Changeset 18a623e in rtems-libbsd


Ignore:
Timestamp:
03/06/17 11:07:32 (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, 5-freebsd-12, 6-freebsd-12, master
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.