Jim Razmus dixit: >> >static gboolean xunsetenv(char *varname) >> >{ >> > unsetenv(varname); >> > return getenv(varname) == NULL ? TRUE : FALSE; >> >}
SUSv3 online says it fails for different reasons. Also I don't think "our" unsetenv can fail. >This call: ioctl(oss_fd, SNDCTL_DSP_RESET) is looking for the device >driver supporting an ioctl case SNDCTL_DSP_RESET. You won't find that >in the application code, it should be in the device driver code compiled >into the kernel. That's true but the wrong information. >> line 93: >> i = ioctl(filedes,cmd,arg); >> >> line 291: >> ioctl(oss_fd, SNDCTL_DSP_RESET); >> >> Where does _oss_ioctl come from?? <soundcard.h> You're missing -lossaudio on the linking command line. //mirabile -- I believe no one can invent an algorithm. One just happens to hit upon it when God enlightens him. Or only God invents algorithms, we merely copy them. If you don't believe in God, just consider God as Nature if you won't deny existence. -- Coywolf Qi Hunt