1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-10 05:03:06 +03:00
Files
glibc/sysdeps/unix/sysv/linux
Adhemerval Zanella 02c91eb611 linux: Add helper function to optimize 64-bit time_t fallback support
These helper functions are used to optimize the 64-bit time_t support on
configurations that requires support for 32-bit time_t fallback
(!__ASSUME_TIME64_SYSCALLS).  The idea is once the kernel advertises that
it does not have 64-bit time_t support, glibc will stop to try issue the
64-bit time_t syscall altogether.

For instance:

  #ifndef __NR_symbol_time64
  # define __NR_symbol_time64 __NR_symbol
  #endif
  int r;
  if (supports_time64 ())
    {
      r = INLINE_SYSCALL_CALL (symbol, ...);
      if (r == 0 || errno != ENOSYS)
        return r;

      mark_time64_unsupported ();
    }
  #ifndef __ASSUME_TIME64_SYSCALLS
  <32-bit fallback syscall>
  #endif
  return r;

On configuration with default 64-bit time_t this optimization should be
optimized away by the compiler resulting in no overhead.
2020-08-24 14:27:15 -03:00
..
2020-08-07 14:38:43 +00:00
2020-08-07 14:38:43 +00:00
2020-08-07 14:38:43 +00:00
2020-07-16 17:55:35 +02:00
2020-08-07 14:38:43 +00:00
2020-08-07 14:38:43 +00:00
2020-08-07 14:38:43 +00:00
2020-08-07 14:38:43 +00:00
2020-08-07 14:38:43 +00:00
2020-08-07 14:38:43 +00:00
2020-08-07 14:38:43 +00:00
2020-08-07 14:38:43 +00:00
2020-08-07 14:38:43 +00:00
2020-08-07 14:38:43 +00:00
2020-07-16 17:55:35 +02:00
2020-07-16 17:55:35 +02:00
2020-02-14 21:12:45 -03:00
2020-02-14 21:12:45 -03:00
2020-04-30 10:42:43 -07:00
2020-02-14 21:12:45 -03:00
2020-07-16 17:55:35 +02:00
2020-02-14 21:12:45 -03:00
2020-02-14 21:12:45 -03:00
2020-01-03 11:22:07 -03:00
2020-02-14 21:12:45 -03:00
2020-07-16 17:55:35 +02:00