hwclock.c revision 67fb4482acb0ecccb8a30e7ca49e5de28ba49eaf
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend This file is part of systemd.
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend Copyright 2010-2012 Lennart Poettering
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend systemd is free software; you can redistribute it and/or modify it
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend under the terms of the GNU Lesser General Public License as published by
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend the Free Software Foundation; either version 2.1 of the License, or
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend (at your option) any later version.
909ce17e2bd0faef7b1c294f2307f009793fd493nd systemd is distributed in the hope that it will be useful, but
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend WITHOUT ANY WARRANTY; without even the implied warranty of
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
0ce5630695a7aa568811a9dd0aceedd685f040dend Lesser General Public License for more details.
367d146f245f3b1c9f77c18e6ec591b52e0b344cbnicholes You should have received a copy of the GNU Lesser General Public License
6fe26506780e73be2a412d758af77fafdf03291and along with systemd; If not, see <http://www.gnu.org/licenses/>.
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend /* This leaves the timezone fields of struct tm
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend * uninitialized! */
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend /* We don't know daylight saving, so we reset this in order not
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend * to confused mktime(). */
f73f2c2fae0ded6c8273c28d025ba8aa8136a0fend * The third line of adjtime is "UTC" or "LOCAL" or nothing.
return -EIO;
return -errno;
int minutesdelta;
return -errno;
if (min)
int hwclock_reset_timezone(void) {
return -errno;