| 4 | mmm. that is unfortunately not a replacement function. |
| 5 | |
| 6 | Here's another, but GPL3: |
| 7 | <https://github.com/cfengine/core/blob/master/libcompat/fstatat.c> |
| 8 | |
| 9 | GPL2: |
| 10 | <https://github.com/gittup/tup/blob/master/src/compat/fstatat.c> |
| 11 | |
| 12 | This looks possibly promising; GPL2+: |
| 13 | <https://www.google.ca/url?sa=t&rct=j&q=&esrc=s&source=web&cd=21&ved=0ahUKEwjIirD-lubVAhUQ22MKHSUjBoI4FBAWCCcwAA&url=http%3A%2F%2Fwww.mirrorservice.org%2Fpub%2FNetBSD%2FNetBSD-current%2Fsrc%2Fexternal%2Fgpl2%2Fxcvs%2Fdist%2Flib%2Fopenat.c&usg=AFQjCNGQ5Veqt1Y-XLCEkyEQFIz6Vwo-rg> |
| 14 | |