search for: opnd2

Displaying 1 result from an estimated 1 matches for "opnd2".

Did you mean: opnd
2023 Jan 03
1
mips64el stat/time/…? problem
...I noticed a failure of mksh built with klibc on mips64el. The failing test, on a high level, is this: :>a sleep 2 :>b test a -nt b echo $? This is supposed to echo 1 (false) because a is not newer than b. The test code is roughly: // const char *opnd1 = "a"; // const char *opnd2 = "b"; // struct stat b1, b2; // int s; return (test_stat(opnd1, &b1) == 0 && (((s = test_stat(opnd2, &b2)) == 0 && mtimecmp(&b1, &b2) > 0) || s < 0)); // #define st_mtimensec st_mtim.tv_nsec // #define HAVE_ST_MTIMENSEC 1 static int mti...