1DPNS_ENDTRANS(3)            DPNS Library Functions            DPNS_ENDTRANS(3)
2
3
4

NAME

6       dpns_endtrans - end transaction mode
7

SYNOPSIS

9       #include <sys/types.h>
10       #include "dpns_api.h"
11
12       int dpns_endtrans (void)
13

DESCRIPTION

15       dpns_endtrans  ends  transaction mode.  If all the DB update operations
16       between dpns_starttrans and dpns_endtrans are successful, a  COMMIT  is
17       done. The connection to the Name Server is closed.
18

RETURN VALUE

20       This  routine  returns  0  if the operation was successful or -1 if the
21       operation failed. In the latter case, serrno is set appropriately.
22

ERRORS

24       SENOSHOST    Host unknown.
25
26       SENOSSERV    Service unknown.
27
28       SECOMERR     Communication error.
29
30       ENSNACT      Name server is not running or is being shutdown.
31

SEE ALSO

33       dpns_aborttrans(3), dpns_starttrans(3)
34
35
36
37DPNS                     $Date: 2004/10/06 14:55:55 $         DPNS_ENDTRANS(3)
Impressum