Re: Remove support for old realpath() API
От | Tom Lane |
---|---|
Тема | Re: Remove support for old realpath() API |
Дата | |
Msg-id | 491004.1723473348@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: Remove support for old realpath() API (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Remove support for old realpath() API
|
Список | pgsql-hackers |
I wrote: > Peter Eisentraut <peter@eisentraut.org> writes: >> Tom had tested this on and found that it does actually work on AIX 7.1 >> and 7.3 but the documentation is wrong. > I too have a distinct recollection of having tested this (using the > gcc compile farm machines), but I cannot find anything saying so in > the mailing list archives. I can go check it again, I guess. I can confirm that the attached program works on cfarm111 (AIX 7.1) and cfarm119 (AIX 7.3), though "man realpath" denies it on both systems. I also found leftover test files demonstrating that I checked this same point on Apr 26 2024, so I'm not sure why that didn't turn up in a mail list search. regards, tom lane #include <stdio.h> #include <stdlib.h> int main(int argc, char **argv) { char *pth = realpath(argv[1], NULL); if (pth) { printf("successfully resolved \"%s\" as \"%s\"\n", argv[1], pth); free(pth); } else perror("realpath"); return 0; }
В списке pgsql-hackers по дате отправления: