| From: | Ian Lance Taylor <ian(at)airs(dot)com> |
|---|---|
| To: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: pg_dump return status.. |
| Date: | 2001-01-05 22:26:13 |
| Message-ID: | sizoh5y6t6.fsf@daffy.airs.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general pgsql-hackers |
ncm(at)zembu(dot)com (Nathan Myers) writes:
> An fprintf returning 0 is a suspicious event; it's easy to imagine
> cases where it makes sense, but I don't think I have ever coded one.
> Probably >N (where N is the smallest reasonable output, defaulting
> to 1) may be a better test in real code.
On older systems fprintf returns 0 on success and EOF on failure.
> As I recall, on SunOS 4 the printf()s don't return the number of
> characters written. I don't recall what they do instead, and have
> no access to such machines any more.
Probably 0/EOF. sprintf on SunOS returns its first argument.
Ian
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2001-01-05 23:01:48 | Re: SHM ids (was running pgsql 7 under Jail'ed virtual machine on FreeBSD 4.2) |
| Previous Message | Uro Gruber | 2001-01-05 22:17:29 | PHP and PostgreSQL |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ross J. Reedstrom | 2001-01-05 22:28:07 | bootstrap tables |
| Previous Message | Nathan Myers | 2001-01-05 22:17:09 | Re: pg_dump return status.. |