diff options
author | Alexander Bokovoy <ab@samba.org> | 2003-08-12 04:35:47 +0000 |
---|---|---|
committer | Alexander Bokovoy <ab@samba.org> | 2003-08-12 04:35:47 +0000 |
commit | 7bc6f49fe425072a20274581b734ec12638a27a9 (patch) | |
tree | 3a2e410848330057de6adf0a63c09cc5d7fb3eeb /source3/modules/getdate.h | |
parent | 4511b334a8f68048d176dd381b9f1a3530a0a8cd (diff) | |
download | samba-7bc6f49fe425072a20274581b734ec12638a27a9.tar.gz samba-7bc6f49fe425072a20274581b734ec12638a27a9.tar.bz2 samba-7bc6f49fe425072a20274581b734ec12638a27a9.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
(This used to be commit 8b263c2fda89ff6aa2dc3a60460c5d46cf0814c6)
Diffstat (limited to 'source3/modules/getdate.h')
-rw-r--r-- | source3/modules/getdate.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/source3/modules/getdate.h b/source3/modules/getdate.h new file mode 100644 index 0000000000..674c474f11 --- /dev/null +++ b/source3/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)); |