#include <sys/types.h> #include <netinet/in.h> #include <arpa/nameser.h> #include <resolv.h> int res_nmkupdate(state* res, ns_updrec *update_record, unsigned char *buffer, int buffer_length)
The res_nmkupdate() function builds a dynamic update packet from the linked list of update records.
No authorization is required.
res_nmkupdate() returns an integer. Possible values are:
When the res_nmkupdate() function fails, res_nmkupdate() can set errno to one of the following:
Either the input packet could not be translated to ASCII or the answer received could not be translated to the coded character set identifier (CCSID) currently in effect for the job.
The system detected a pointer that was invalid while attempting to access an input pointer.
One of the following reasons:
Note: No attempt is made to initialize the res structure if it was initialized previous to the res_nmkupdate() being issued.
The message buffer was too small. The return value was -2.
Top | UNIX-Type APIs | APIs by category |