Skip to content
Tcl Source Code Artifact [12571b8a6b]
Login

Artifact [12571b8a6b]

Artifact 12571b8a6b590123e58a1c62a9134d95454e5774:

Ticket change [12571b8a6b] - Ticket [1113146fffffffff|1113146fff] <i>clock-34.6 clock scan failure in NetBSD</i> status still Closed with 7 other changes by georgeps on 2005-02-01 07:04:46.
D 2005-02-01T07:04:46
J closedate 2005-02-01T00:04:46
J closer georgeps
J icomment Logged\sIn:\sYES\s\nuser_id=585068\n\nWith\sthe\shelp\sof\sKBK\swe\sdiscovered\sthat\sit's\sreally\sthe\nproblem\sthat\sI\sdon't\shave\san\s/etc/localtime\ssymlink\son\smy\nsystem.\s\sThe\sNetBSD\sinstaller\screates\sthis\ssymlink,\sand\sthe\nmanual\spage\sfor\safterboot\smentions\sit\sat\sthe\stop.\s\sI\sremoved\nthe\ssymlink,\sbecause\sthe\sclock\sis\sskewed\sin\sNetBSD\s(from\sthe\nBIOS\sand\sWindows).\s\sThe\sfix\sin\smy\scase\sis:\s\n#\sln\s-s\s/usr/share/zoneinfo/US/Mountain\s/etc/localtime\n\nThere\sis\san\sRTC_OFFSET\skernel\soption\sfor\sNetBSD\sthat\sshould\nin\stheory\sfix\sthis\sproblem,\sand\sallow\sme\sto\shave\sthe\ssame\ntime\sfor\sall\soperating\ssystems,\sand\sthe\sBIOS.\n\nI\swrote\sthis\stest\sprogram\sto\sverify:\n#include\s<stdio.h>\n#include\s<stdlib.h>\n#include\s<string.h>\n#include\s<errno.h>\n#include\s<time.h>\n\nint\smain\s()\s{\s\n\sstruct\stm\st;\n\n\st.tm_sec\s=\s0;\n\st.tm_min\s=\s0;\n\st.tm_hour\s=\s14;\n\st.tm_mday\s=\s22;\n\st.tm_mon\s=\s9;\n\st.tm_year\s=\s2;\n\st.tm_wday\s=\s6;\n\st.tm_yday\s=\s297;\n\n\sif\s(-1\s==\smktime\s(&t))\s{\n\s\sprintf\s("errno\s%d\\n",\serrno);\n\s\sperror\s("mktime");\n\s\sreturn\sEXIT_FAILURE;\n\s}\n\n\sreturn\sEXIT_SUCCESS;\n}\n\n\nWithout\s/etc/localtime:\n$\scc\smktime_test.c\s\s&&\s./a.out\s\s\nerrno\s2\nmktime:\sNo\ssuch\sfile\sor\sdirectory\n\n
J login georgeps
J mimetype text/plain
J resolution Fixed
J username georgeps
K 1113146fffffffffffffffffffffffffffffffff
U georgeps
Z f83cc43f1b6530ddc5f8aeed15c3a0b3