99 *
1010 *
1111 * IDENTIFICATION
12- * $PostgreSQL: pgsql/src/port/exec.c,v 1.32 2004/11/06 23:06:29 tgl Exp $
12+ * $PostgreSQL: pgsql/src/port/exec.c,v 1.33 2004/11/27 22:44:15 petere Exp $
1313 *
1414 *-------------------------------------------------------------------------
1515 */
2828#include <unistd.h>
2929#endif
3030
31- #define _ (x ) gettext(x)
32-
3331#ifndef S_IRUSR /* XXX [TRH] should be in a header */
3432#define S_IRUSR S_IREAD
3533#define S_IWUSR S_IWRITE
@@ -192,7 +190,7 @@ find_my_exec(const char *argv0, char *retpath)
192190
193191if (!getcwd (cwd ,MAXPGPATH ))
194192{
195- log_error (_ ("could not identify current directory: %s" ),
193+ log_error (gettext ("could not identify current directory: %s" ),
196194strerror (errno ));
197195return -1 ;
198196}
@@ -306,7 +304,7 @@ resolve_symlinks(char *path)
306304 */
307305if (!getcwd (orig_wd ,MAXPGPATH ))
308306{
309- log_error (_ ("could not identify current directory: %s" ),
307+ log_error (gettext ("could not identify current directory: %s" ),
310308strerror (errno ));
311309return -1 ;
312310}
@@ -322,7 +320,7 @@ resolve_symlinks(char *path)
322320* lsep = '\0' ;
323321if (chdir (path )== -1 )
324322{
325- log_error (_ ("could not change directory to \"%s\"" ),path );
323+ log_error (gettext ("could not change directory to \"%s\"" ),path );
326324return -1 ;
327325}
328326fname = lsep + 1 ;
@@ -337,7 +335,7 @@ resolve_symlinks(char *path)
337335rllen = readlink (fname ,link_buf ,sizeof (link_buf ));
338336if (rllen < 0 || rllen >=sizeof (link_buf ))
339337{
340- log_error (_ ("could not read symbolic link \"%s\"" ),fname );
338+ log_error (gettext ("could not read symbolic link \"%s\"" ),fname );
341339return -1 ;
342340}
343341link_buf [rllen ]= '\0' ;
@@ -349,7 +347,7 @@ resolve_symlinks(char *path)
349347
350348if (!getcwd (path ,MAXPGPATH ))
351349{
352- log_error (_ ("could not identify current directory: %s" ),
350+ log_error (gettext ("could not identify current directory: %s" ),
353351strerror (errno ));
354352return -1 ;
355353}
@@ -358,7 +356,7 @@ resolve_symlinks(char *path)
358356
359357if (chdir (orig_wd )== -1 )
360358{
361- log_error (_ ("could not change directory to \"%s\"" ),orig_wd );
359+ log_error (gettext ("could not change directory to \"%s\"" ),orig_wd );
362360return -1 ;
363361}
364362
@@ -568,13 +566,13 @@ pclose_check(FILE *stream)
568566perror ("pclose failed" );
569567}
570568else if (WIFEXITED (exitstatus ))
571- log_error (_ ("child process exited with exit code %d" ),
569+ log_error (gettext ("child process exited with exit code %d" ),
572570WEXITSTATUS (exitstatus ));
573571else if (WIFSIGNALED (exitstatus ))
574- log_error (_ ("child process was terminated by signal %d" ),
572+ log_error (gettext ("child process was terminated by signal %d" ),
575573WTERMSIG (exitstatus ));
576574else
577- log_error (_ ("child process exited with unrecognized status %d" ),
575+ log_error (gettext ("child process exited with unrecognized status %d" ),
578576exitstatus );
579577
580578return -1 ;