FreeBSD Bugzilla – Attachment 5200 Details for
Bug 12614
[patch] apm -r doesn't respect wall_cmos_clock
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 732 bytes, created by
Michael Constant
on 1999-07-13 02:00:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Michael Constant
Created:
1999-07-13 02:00:01 UTC
Size:
732 bytes
patch
obsolete
>--- /usr/src/usr.sbin/apm/apm.c.orig Fri Sep 4 09:08:54 1998 >+++ /usr/src/usr.sbin/apm/apm.c Sat Jul 10 22:22:57 1999 >@@ -18,6 +18,8 @@ > "$Id: apm.c,v 1.14 1998/09/04 16:08:54 imp Exp $"; > #endif /* not lint */ > >+#include <sys/types.h> >+#include <sys/sysctl.h> > #include <err.h> > #include <stdio.h> > #include <stdlib.h> >@@ -288,7 +290,12 @@ > int display = 0, batt_life = 0, ac_status = 0, standby = 0; > int batt_time = 0, delta = 0; > char *cmdname; >+ size_t cmos_wall_len; > >+ cmos_wall_len = sizeof cmos_wall; >+ if (sysctlbyname("machdep.wall_cmos_clock", &cmos_wall, &cmos_wall_len, >+ NULL, 0) == -1) >+ err(1, "sysctlbyname machdep.wall_cmos_clock"); > > if ((cmdname = strrchr(argv[0], '/')) != NULL) > cmdname++;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 12614
: 5200