Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
b6620f3d
Commit
b6620f3d
authored
Jul 27, 2002
by
Howard Chu
Browse files
Use lutil_gentime
parent
d4df52a6
Changes
3
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-monitor/conn.c
View file @
b6620f3d
...
...
@@ -292,10 +292,10 @@ conn_create(
ldap_pvt_thread_mutex_lock
(
&
gmtime_mutex
);
ltm
=
gmtime
(
&
c
->
c_starttime
);
strf
time
(
buf2
,
sizeof
(
buf2
),
"%Y%m%d%H%M%SZ"
,
ltm
);
lutil_gen
time
(
buf2
,
sizeof
(
buf2
),
ltm
);
ltm
=
gmtime
(
&
c
->
c_activitytime
);
strf
time
(
buf3
,
sizeof
(
buf2
),
"%Y%m%d%H%M%SZ"
,
ltm
);
lutil_gen
time
(
buf3
,
sizeof
(
buf2
),
ltm
);
ldap_pvt_thread_mutex_unlock
(
&
gmtime_mutex
);
...
...
servers/slapd/back-monitor/time.c
View file @
b6620f3d
...
...
@@ -95,7 +95,7 @@ monitor_subsys_time_init(
local_time
(
tms
,
-
timezone
,
tmbuf
,
sizeof
(
tmbuf
)
);
#else
/* !HACK_LOCAL_TIME */
tms
=
gmtime
(
&
starttime
);
strf
time
(
tmbuf
,
sizeof
(
tmbuf
),
"%Y%m%d%H%M%SZ"
,
tms
);
lutil_gen
time
(
tmbuf
,
sizeof
(
tmbuf
),
tms
);
#endif
/* !HACK_LOCAL_TIME */
ldap_pvt_thread_mutex_unlock
(
&
gmtime_mutex
);
snprintf
(
buf
,
sizeof
(
buf
),
...
...
@@ -251,7 +251,7 @@ monitor_subsys_time_update(
local_time
(
stm
,
-
timezone
,
stmbuf
,
sizeof
(
stmbuf
)
);
#else
/* !HACK_LOCAL_TIME */
stm
=
gmtime
(
&
starttime
);
strf
time
(
stmbuf
,
sizeof
(
stmbuf
),
"%Y%m%d%H%M%SZ"
,
stm
);
lutil_gen
time
(
stmbuf
,
sizeof
(
stmbuf
),
stm
);
#endif
/* !HACK_LOCAL_TIME */
}
...
...
@@ -262,7 +262,7 @@ monitor_subsys_time_update(
local_time
(
ctm
,
-
timezone
,
ctmbuf
,
sizeof
(
ctmbuf
)
);
#else
/* !HACK_LOCAL_TIME */
ctm
=
gmtime
(
&
currentTime
);
strf
time
(
ctmbuf
,
sizeof
(
ctmbuf
),
"%Y%m%d%H%M%SZ"
,
ctm
);
lutil_gen
time
(
ctmbuf
,
sizeof
(
ctmbuf
),
ctm
);
#endif
/* !HACK_LOCAL_TIME */
}
ldap_pvt_thread_mutex_unlock
(
&
gmtime_mutex
);
...
...
servers/slapd/modify.c
View file @
b6620f3d
...
...
@@ -563,7 +563,7 @@ int slap_mods_opattrs(
ldap_pvt_thread_mutex_lock
(
&
gmtime_mutex
);
ltm
=
gmtime
(
&
now
);
strf
time
(
timebuf
,
sizeof
(
timebuf
),
"%Y%m%d%H%M%SZ"
,
ltm
);
lutil_gen
time
(
timebuf
,
sizeof
(
timebuf
),
ltm
);
csn
.
bv_len
=
lutil_csnstr
(
csnbuf
,
sizeof
(
csnbuf
),
0
,
0
);
ldap_pvt_thread_mutex_unlock
(
&
gmtime_mutex
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment