public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: Thomas Munro <[email protected]>
Cc: Peter Eisentraut <[email protected]>
Cc: Heikki Linnakangas <[email protected]>
Cc: pgsql-hackers <[email protected]>
Subject: Re: Remove support for old realpath() API
Date: Mon, 12 Aug 2024 10:35:48 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<[email protected]>
	<[email protected]>
	<CA+hUKGLpmrr-vQHVWtMe-O=_AvS_CWWRJ+Y=UnGHd3P31S1RbQ@mail.gmail.com>
	<[email protected]>
	<[email protected]>

I wrote:
> Peter Eisentraut <[email protected]> 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



Attachments:

  [text/x-c] testrealpath.c (257B, ../[email protected]/2-testrealpath.c)
  download | inline:
#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;
}

view thread (2+ messages)

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected]
  Subject: Re: Remove support for old realpath() API
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox