summaryrefslogtreecommitdiffstats
path: root/source/lib
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-09-25 22:20:05 +0000
committerLuke Leighton <lkcl@samba.org>1998-09-25 22:20:05 +0000
commitd0f7b0d915973ccb85409af3d6d951a716cd66d2 (patch)
treeb16e52d2c28c5cb04015a94ed0f70949ccc9a41d /source/lib
parent8d23da91cbd74a45a5b030688fd89d88a25738dc (diff)
downloadsamba-d0f7b0d915973ccb85409af3d6d951a716cd66d2.tar.gz
samba-d0f7b0d915973ccb85409af3d6d951a716cd66d2.tar.xz
samba-d0f7b0d915973ccb85409af3d6d951a716cd66d2.zip
added in samr commands. assistance in returning the missing functions,
automatically removed because they were "unused", would be appreciated.
Diffstat (limited to 'source/lib')
-rw-r--r--source/lib/time.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/lib/time.c b/source/lib/time.c
index 7b7ca51204e..89a83ebfc18 100644
--- a/source/lib/time.c
+++ b/source/lib/time.c
@@ -236,6 +236,17 @@ struct tm *LocalTime(time_t *t)
return(gmtime(&t2));
}
+/****************************************************************************
+take an NTTIME structure, containing high / low time. convert to unix time.
+lkclXXXX this may need 2 SIVALs not a memcpy. we'll see...
+****************************************************************************/
+time_t interpret_nt_time(NTTIME *t)
+{
+ char data[8];
+ memcpy(data, t, sizeof(data));
+ return interpret_long_date(data);
+}
+
#define TIME_FIXUP_CONSTANT (369.0*365.25*24*60*60-(3.0*24*60*60+6.0*60*60))
@@ -532,3 +543,4 @@ time_t get_create_time(SMB_STRUCT_STAT *st,BOOL fake_dirs)
*/
return ret;
}
+