Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0a8da82

Browse files
committed
Correct erroneous documentation of PQsetnonblocking().
1 parent8609d4a commit0a8da82

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

‎doc/src/sgml/libpq.sgml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.53 2000/12/22 18:57:49 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.54 2000/12/28 00:16:11 tgl Exp $
33
-->
44

55
<chapter id="libpq-chapter">
@@ -1153,12 +1153,16 @@ connection to the backend.
11531153
<itemizedlist>
11541154
<listitem>
11551155
<para>
1156-
<function>PQsetnonblocking</function> Sets thestateof the connection
1157-
to non-blocking.
1156+
<function>PQsetnonblocking</function> Sets thenonblocking statusof the
1157+
connection.
11581158
<synopsis>
1159-
int PQsetnonblocking(PGconn *conn)
1159+
int PQsetnonblocking(PGconn *conn, int arg)
11601160
</synopsis>
1161-
this function will ensure that calls to
1161+
Sets the state of the connection to nonblocking if arg is TRUE,
1162+
blocking if arg is FALSE. Returns 0 if OK, -1 if error.
1163+
</para>
1164+
<para>
1165+
In the nonblocking state, calls to
11621166
<function>PQputline</function>, <function>PQputnbytes</function>,
11631167
<function>PQsendQuery</function> and <function>PQendcopy</function>
11641168
will not block but instead return an error if they need to be called

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp