summaryrefslogtreecommitdiffstats
path: root/source/modules/getdate.h
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2003-08-12 04:35:47 +0000
committerAlexander Bokovoy <ab@samba.org>2003-08-12 04:35:47 +0000
commit8b263c2fda89ff6aa2dc3a60460c5d46cf0814c6 (patch)
treeb2ab49bf7a9dcc928998bd7f6c8841a87cb1e7f5 /source/modules/getdate.h
parentc043835c878ff062cb6eede02334f9e0ebb01050 (diff)
downloadsamba-8b263c2fda89ff6aa2dc3a60460c5d46cf0814c6.tar.gz
samba-8b263c2fda89ff6aa2dc3a60460c5d46cf0814c6.tar.xz
samba-8b263c2fda89ff6aa2dc3a60460c5d46cf0814c6.zip
Add vfs_readonly module which allows to enforce periodic read-only limit on a share based on a specified start and end dates according to date(1) format
Diffstat (limited to 'source/modules/getdate.h')
-rw-r--r--source/modules/getdate.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/source/modules/getdate.h b/source/modules/getdate.h
new file mode 100644
index 00000000000..674c474f115
--- /dev/null
+++ b/source/modules/getdate.h
@@ -0,0 +1,46 @@
+/* Copyright (C) 1995, 1997, 1998 Free Software Foundation, Inc.
+
+ This program 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.
+
+ This program 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+
+#if HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#ifndef PARAMS
+# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
+# define PARAMS(Args) Args
+# else
+# define PARAMS(Args) ()
+# endif
+#endif
+
+#ifdef vms
+# include <types.h>
+# include <time.h>
+#else
+# include <sys/types.h>
+# if TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+# else
+# if HAVE_SYS_TIME_H
+# include <sys/time.h>
+# else
+# include <time.h>
+# endif
+# endif
+#endif /* defined (vms) */
+
+time_t get_date PARAMS ((const char *p, const time_t *now));