context.c revision 1a70537f01305cb84d402c84b1ba7cc89b97a5dc
b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4Mark Andrews * Copyright (C) 2000 Internet Software Consortium.
b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4Mark Andrews * Permission to use, copy, modify, and distribute this software for any
b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4Mark Andrews * purpose with or without fee is hereby granted, provided that the above
b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4Mark Andrews * copyright notice and this permission notice appear in all copies.
b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4Mark Andrews * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4Mark Andrews * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4Mark Andrews * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4Mark Andrews * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4Mark Andrews * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4Mark Andrews * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4Mark Andrews * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
#include "context_p.h"
#include "assert_p.h"
return (LWRES_R_NOMEMORY);
return (LWRES_R_SUCCESS);
void *mem;
(void)arg;
return (NULL);
return (mem);
(void)arg;
int ret;
return (LWRES_R_IOERROR);
if (ret != 0) {
close(s);
return (LWRES_R_IOERROR);
return (LWRES_R_SUCCESS);
int *recvd_len)
int ret;
int fromlen;
if (ret < 0)
return (ret);
return (LWRES_R_IOERROR);
if (ret < 0)
return (LWRES_R_IOERROR);
goto again;
return (LWRES_R_SUCCESS);