EOF in sysfs
Hi everybody,
i'm trying to write in a file (foo) using sysfs. I'll post part of using code: Code:
static char foo[1024]; I note that, after writing a string, when i open the file, the cursor is positioning at the begin of the file... Can you help me? |
?WTF?
"sysfs" is essentially "/proc" and friends. It's primarily for reading system information. And, of course, some entries are also writable (e.g. to update system configuration parameters on-the-fly). So what exactly are you trying to do? Can you cut/paste specific code (without the "foo, bar, baz" stuff)? PS: Here's one example of how I'd use sysf. I'm curious how your ideas differ: Code:
#include <stdio.h> |
Darn backkey. Wrong thread.
|
All times are GMT -5. The time now is 01:41 AM. |