/*
* Copyright (C) 2013 Internet Systems Consortium, Inc. ("ISC")
*
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
#include <ctype.h>
#include <errno.h>
#include <unistd.h>
#include <string.h>
#include "dlz_minimal.h"
#include "dir.h"
void
}
char *p;
return (ISC_R_NOSPACE);
*p++ = '/';
*p++ = '*';
*p = '\0';
switch (errno) {
case ENOTDIR:
case ELOOP:
case EINVAL:
case ENAMETOOLONG:
case EBADF:
case ENOENT:
case EACCES:
case EPERM:
case ENOMEM:
default:
}
}
return (result);
}
/*!
* \brief Return previously retrieved file or get next one.
* Unix's dirent has
* separate open and read functions, but the Win32 and DOS interfaces open
* the dir stream and reads the first file in one operation.
*/
return (ISC_R_NOMORE);
return (ISC_R_UNEXPECTED);
return (ISC_R_SUCCESS);
}
/*!
* \brief Close directory stream.
*/
void
}
/*!
* \brief Reposition directory stream at start.
*/
return (ISC_R_SUCCESS);
}