public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] safe_touch and utimensat
@ 2013-11-13 14:30 Stanislav Kholmanskikh
  2013-11-13 14:30 ` [LTP] [RFC PATCH 1/2] autoconf check for utimensat(2) Stanislav Kholmanskikh
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Stanislav Kholmanskikh @ 2013-11-13 14:30 UTC (permalink / raw)
  To: ltp-list; +Cc: vasily.isaenko

Hi!

Some distributions (RHEL5, for instance) don't have defined utimensat()
system call. So I introduced an autoconf check for this, otherwise safe_file_ops.c can 
not be compiled on these distributions.

Actually, I'm not satisfied with
    utimes(pathname, NULL)
because it throws away the time-changing logic from safe_touch().

How do you think it is safe to explicitly define UTIME_* constants in LTP
sources (safe_file_ops.h):

#ifndef UTIME_NOW
#define UTIME_NOW ((1l << 30) - 1l)
#endif

#ifndef UTIME_OMIT
#define UTIME_OMIT     ((1l << 30) - 2l)
#endif

?


------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2013-12-02 18:28 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-13 14:30 [LTP] safe_touch and utimensat Stanislav Kholmanskikh
2013-11-13 14:30 ` [LTP] [RFC PATCH 1/2] autoconf check for utimensat(2) Stanislav Kholmanskikh
2013-11-14 15:08   ` chrubis
2013-11-21 18:22   ` Mike Frysinger
2013-11-13 14:30 ` [LTP] [RFC PATCH 2/2] safe_touch: use utimes(2) if utimensat(2) is not defined Stanislav Kholmanskikh
2013-11-14 15:06 ` [LTP] safe_touch and utimensat chrubis
2013-11-26 16:06 ` chrubis
     [not found]   ` <5296FAB8.8050702@oracle.com>
2013-11-28 11:36     ` chrubis
2013-11-29  7:58       ` [LTP] [PATCH V2 1/3] autoconf check for utimensat(2) Stanislav Kholmanskikh
2013-11-29  7:58       ` [LTP] [PATCH V2 2/3] created lapi/utime.h Stanislav Kholmanskikh
2013-11-29  7:58       ` [LTP] [PATCH V2 3/3] safe_touch: use utimes(2) if utimensat(2) is not defined Stanislav Kholmanskikh
2013-12-02 18:27         ` chrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox