-/*
- * Copyright (C) 1997-1999, Index Data
- * All rights reserved.
- * Sebastian Hammer, Adam Dickmeiss
- *
- * $Log: dirent.c,v $
- * Revision 1.4 2002-04-04 14:14:14 adam
- * Multiple registers (alpha early)
- *
- * Revision 1.3 1999/02/02 14:51:38 adam
- * Updated WIN32 code specific sections. Changed header.
- *
- * Revision 1.2 1997/09/17 12:19:24 adam
- * Zebra version corresponds to YAZ version 1.4.
- * Changed Zebra server so that it doesn't depend on global common_resource.
- *
- *
- *
- * This utility implements a opendir/readdir/close on Windows.
- */
+/* $Id: dirent.c,v 1.10 2007-01-15 15:10:26 adam Exp $
+ Copyright (C) 1995-2007
+ Index Data ApS
-#ifdef WIN32
+This file is part of the Zebra server.
+
+Zebra is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation; either version 2, or (at your option) any later
+version.
+
+Zebra is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+*/
+
+
+
+#include <ctype.h>
#include <assert.h>
+#ifdef WIN32
#include <io.h>
+#endif
#include <string.h>
#include <stdlib.h>
#include <direntz.h>
+#ifdef WIN32
+
struct DIR {
HANDLE handle;
WIN32_FIND_DATA find_data;
#endif
-int zebra_is_abspath (const char *p)
-{
- if (*p == '/')
- return 1;
-#ifdef WIN32
- if (*p == '\\')
- return 1;
- if (*p && p[1] == ':' && isalpha(*p))
- return 1;
-#endif
- return 0;
-}
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+