Name: Anonymous 2012-02-18 1:10
linux noob here
so i've somehow fucked up my file descriptor table and every time i call anything to write to a file descriptor it either writes to the wrong one or segfaults
for example, printf is fine but fprintf segfaults even if i'm just trying to write to stderr or stdout. even if i put "1" or "2" instead of STDERR_FILENO or STDOUT_FILENO it fails.
outside of my program it is fine, the system operates as normal.
any ideas? i've rebooted a few times and it hasn't helped
so i've somehow fucked up my file descriptor table and every time i call anything to write to a file descriptor it either writes to the wrong one or segfaults
for example, printf is fine but fprintf segfaults even if i'm just trying to write to stderr or stdout. even if i put "1" or "2" instead of STDERR_FILENO or STDOUT_FILENO it fails.
outside of my program it is fine, the system operates as normal.
any ideas? i've rebooted a few times and it hasn't helped