---------- X-Sun-Data-Type: text X-Sun-Data-Description: text X-Sun-Data-Name: text X-Sun-Content-Lines: 17 >Does anybody have some C functions to read eeprom info like the >machine hostid? I don't want to use the system call, but want >to get it directly from the hardware. I have received some code fragments to do the job. Thanks to henderso@netcom.com, markh@wimsey.bc.ca (Mark Henderson) pj@carmenta.se ( Per Ekesson) for sending their code fragments which reads, and as I understand, can modify, eeprom contents. Mark's code seems to be posted to comp.sources.unix, although I could not figure out how to retrieve it from there yet. I have enclosed Mark's and Per's responses per popular demand. Thanks you all. ---------- X-Sun-Data-Type: mail-file X-Sun-Data-Description: mail-file X-Sun-Data-Name: akesson X-Sun-Encoding-Info: uuencode X-Sun-Content-Lines: 51 begin 600 akesson M1G)O;2!P:D!C87)M96YT82YS92!4=64@3F]V(#$U(#(R.C0R.C(S(#$Y.30* M5&\Z(&UC:7)I=$!E;F7!E M.B!T97AT"E@M4W5N+41A=&$M1&5S8W)I<'1I;VXZ('1E>'0*6"U3=6XM1&%T M82U.86UE.B!T97AT"E@M4W5N+4-H87)S970Z(&ES;RTX.#4Y+3$*6"U3=6XM M0V]N=&5N="U,:6YEF4["B @("!S=')U8W0@:61PF4@/2!S:7IE;V8H<')O<"YI9'!R;VTI.PH@(&EF("AI;V-T M;"AF9"P@3U!23TU.15A4+" F<')O<"D@/3T@+3$I('L*(" @("!P97)R;W(H M(FEO8W1L(BD["B @(" @97AI="@Q*3L*("!]"@H@('-T2@F<')O<"YI M9'!R;VTL(")I9'!R;VTB*3L*("!PF4@/2!S:7IE;V8H M<')O<"YI9'!R;VTI.PH*(" O*B!R96%D(&ED<')O;2!PPH@(" @('!E&ET*#$I.PH@('T*"B @ M8VQO#HE>#HE>#HE>#HE>#HE>%QN M(BP@(F5T:&5R;F5T(&%D9')E"5X7&XB+" B:&]S=&ED.B(L"B @ M(" @(" @("!P%QN(BP@(F-A;&-U;&%T I960@8VAE8VMS=6TZ(BP@<')O<"YI9'!R;VTN:61?>'-U;2D["@I]"@IU end ---------- X-Sun-Data-Type: mail-file X-Sun-Data-Description: mail-file X-Sun-Data-Name: henderson X-Sun-Encoding-Info: uuencode X-Sun-Content-Lines: 100 begin 600 henderson M1G)O;2!H96YD97)S;T!N971C;VTN8V]M(%1U92!.;W8@,34@,C,Z,30Z-#8@ M,3DY- I8+4UA:6QE2!H;W-T:60@8VAA;F=E6]U M(&1O;B=T(&QI:V4@=7-I;F<@=&AE(&]P96YP2!A('!O:6YT M;&5S&5R8VES92!A2!T:&4@875T:&]R M("T@,2!*=6QY(#$Y.30*("H*("H@9&5F:6YE(%-/3$%225,R(&EF('EO=2!A M2!S:6UP;&4@=&5S="!D6]U(&YE960@6]U(&YE960@=&\@8F4@PH@(" @PH@ M(" @(" @=6YS:6=N960@:6YT('-I>F4["B @(" @("!U;G-I9VYE9"!C:&%R M(&%RF5R;R@F9F]O+F%RPH@(" @(" @(&9O;RYS:7IE(#T@($]0 M4D]-34%84$%204T["B @(" @(" @:68@*&EO8W1L*&9D+"!/4%)/34Y85%!2 M3U L("9F;V\I(#P@,"D@>PHC:69D968@1$5"54<*(" @(" @(" @(" @<&5R MPH@(" @(" @(" @("!I9B H(2AI)3@I*0H@(" @(" @(" @(" @ M(" @<')I;G1F*")<;B(I.PH@(" @(" @(" @("!P"4P M,GA<;B(L(&9O;RYA%QN(BP@9V5T M;V)P:&]S=&ED*"DI.PI]"B-E;F1I9@H*"@HM+2 *36%R:R!(96YD97)S;VX@ M+2T@;6%R:VA =VEM