Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ham_en/ham/clientlib/ha_open.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ham_en/ham/clientlib/ha_open.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ham_en/ham/clientlib/ha_open.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ham_en/ham/clientlib/ha_open.html on line 8

ha_open(), ha_open64()

Open a connection and attach it to the HA lib

Synopsis:

#include <ha/fcntl.h>
    
int ha_open(const char *path, 
            int oflag, 
            RFp rfn,
            void *rhdl, 
            unsigned haflags, ...);

int ha_open64(const char *path,
            int oflag, 
            RFp rfn,
            void *rhdl, 
            unsigned haflags, ...);

Library:

libha

Description:

In addition to opening the connection using the standard open|64() call, these convenience functions also call ha_attach() with the connection returned by the open() call.

The parameters rfn(), and rhdl(), and haflags() are passed to the ha_attach() call along with the connection ID returned by the open() call.

The remaining parameters are passed to the corresponding parameters in the open() call in their appropriate positions.

Returns:

A new connection ID or -1 if an error occurred (errno is set).

Errors:

The ha_open() call returns errors as returned by either the underlying open() call or the ha_attach() call.

Classification:

QNX Neutrino

Safety:
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes

See also:

ha_attach(), ha_creat(), ha_close(), ha_detach()

In the Library Reference: open()


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ham_en/ham/clientlib/ha_open.html on line 128

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ham_en/ham/clientlib/ha_open.html on line 128