[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ast-developers
Subject:    [ast-developers] Wrong turns on tvgetatime() and other macros
From:       "Dr. Werner Fink" <werner () suse ! de>
Date:       2012-03-06 15:23:18
Message-ID: 20120306152318.GA8222 () boole ! suse ! de
[Download RAW message or body]

Hi,

I've just done

 grep -rs tvget.time ksh93/

which has lead to this:

 ksh93/src/lib/libast/features/tv:       #define tvgetatime(t,s) \
((t)->tv_nsec=ST_ATIME_NSEC_GET(s),(t)->tv_sec=(s)->st_atime)  \
ksh93/src/lib/libast/features/tv:       #define tvgetmtime(t,s) \
((t)->tv_nsec=ST_MTIME_NSEC_GET(s),(t)->tv_sec=(s)->st_mtime)  \
ksh93/src/lib/libast/features/tv:       #define tvgetctime(t,s) \
((t)->tv_nsec=ST_CTIME_NSEC_GET(s),(t)->tv_sec=(s)->st_ctime)  \
ksh93/src/lib/libast/man/tv.3:.SS "time_t tvgetatime(const struct stat* st, Tv_t* \
tv)"  ksh93/src/lib/libast/man/tv.3:.SS "time_t tvgetmtime(const struct stat* st, \
Tv_t* tv)"  ksh93/src/lib/libast/man/tv.3:.SS "time_t tvgetctime(const struct stat* \
st, Tv_t* tv)"

seems that the macro its self has turned the arguments into the
other possible order than the manual page describes.

Werner


-- 
  "Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool." -- Edward Burr
_______________________________________________
ast-developers mailing list
ast-developers@research.att.com
https://mailman.research.att.com/mailman/listinfo/ast-developers


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic