Re: ALi M5451 Sound card wont work. Please Help!

2002-04-11 Thread Farooq Mela
Hi, Did you try disabling PnP in your BIOS? This is the exact same message I was getting with my onboard sound card (YMF724F) until I disabled PnP in the bios, after which it worked great. HTH, Farooq > mithril wrote: > > Hi Everyone, > [snip] > pcm0: port 0xd000-0xd0ff mem 0xdd00-0xdd00

Re: Recv() to a mmap'ed file?

2002-03-13 Thread Farooq Mela
Farooq Mela wrote: > region, but it will get a SIGBUS if it tries to write to it. It would > be better to return -1 and set errno to EFAULT than to have this brain > damage imho. eep... that should be EINVAL... maybe i can be forgiven, though, given the time at which i wrote th

Re: Recv() to a mmap'ed file?

2002-03-13 Thread Farooq Mela
Hi, WRT to Terry's email, I initialized the file by writing N nul ('\0') bytes to it. Alfred Perlstein wrote: > Have you tried the mapping with PROT_READ as well? I don't think > most arches allow for access without PROT_READ along with PROT_WRITE. Oops.. and I even read the thread a little whi

Re: Recv() to a mmap'ed file?

2002-03-12 Thread Farooq Mela
Alfred Perlstein wrote: > > * Farooq Mela <[EMAIL PROTECTED]> [020312 13:01] wrote: > > > > Rather than the usual recv() to a fixed size buffer, write() to the > > file descriptor, loop, etc. However when I try to do this recv gives > > me back an EFAULT (bad

Recv() to a mmap'ed file?

2002-03-12 Thread Farooq Mela
Hi -hackers, In trying to increase throughput in a file transfer application I am working on, I wondered if it was possible to do something like (code of course edited for brevity): /* file_fd points to a regular file which is filled with SIZE nul bytes */ map_addr = mmap(NULL, size, PROT_WRITE,

Linux binary debugging problem

2002-02-10 Thread Farooq Mela
Hello -hackers, I've got a bit of a problem getting the linux gdb (out of ports/devel/linux_devtools) to read core files generated by linux binaries. Specifically, I'm trying to track down a problem that first appeared in FreeBSD 4.4-RC which causes any of my hardware-accelerated linux binaries

Failure to fixate cd in burncd

2001-09-09 Thread Farooq Mela
Hello, Sometimes when I burn data CD's from ISO's at 12x speed like so: # burncd -f /dev/acd1c -s 12 data file.iso fixate The fixate fails, and I believe it is because the CD-R has not yet spun down from the burn phase. The problem doesn't occur when the burn is done at a lower speed. The fix

Re: Status of agpgart device

2001-07-20 Thread Farooq Mela
; > 4.3-RELEASE comes with an agp device. Simply add agp_load="YES" to your > /boot/loader.conf file, or device agp to your kernel config file. It > only supports certain AGP bridges though, look in /usr/src/sys/pci/agp* > for more info. > > On Thu, Jul 19, 2001 at 04:48:0

Status of agpgart device

2001-07-19 Thread Farooq Mela
Hi hackers@, What is the status of the /dev/agpgart device? (I'm running 4.3-STABLE with a recent cvsup). Is it working, perhaps using a compatible interface with the linux device the of the same name (I can dream can't I ;-) ? I ask because I recently tried compiling Utah-GLX with AGP accelera

Re: Quick question about x86 asm

2001-07-18 Thread Farooq Mela
Terry Lambert wrote: > > cc -S is your friend. Right, well that can certainly help, but what gcc generates can be dependant on calling convention, optimization setting, &c &c, and though the code generated in one particular scenario may not be an absolute indicator of it's behavior. In other wor

Quick question about x86 asm

2001-07-18 Thread Farooq Mela
Hi -hackers, I'm developing some assembly routines that are called from a C library under FreeBSD. Some of these routines do not return anything (ie, prototyped in C, their return type is 'void'). Does the compiler expect that the asm routines that don't return anything will preserve the value

Re: Sound driver changes between 4.2 and 4.3

2001-06-22 Thread Farooq Mela
Jim Durham wrote: > Are you running gnome desktop? I've been thrashing with esd and it sounds > somewhat similar. lsof reports that /dev/dsp is not open to any process, > but if you try to run timidity, it says "/dev/dsp busy". I have killed esd > and made it work, but not always. I don't know wha

Sound driver changes between 4.2 and 4.3

2001-06-22 Thread Farooq Mela
Hi -hackers, Several people have made it known to me that games such as Quake2 which ran fine with sound under the 4.2 kernel are not able to have sound in 4.3. I have verified this myself - with quake2 under 4.3 ktrace reports that opening /dev/dsp fails with EBUSY - even though nothing is usin

Re: Access to symbol table(including dynamics) at runtime

2001-06-08 Thread Farooq Mela
Kevin Day wrote: > > Is there a simple way that I can lookup a symbol name(by address) during > runtime? man dlopen. -- farooq <[EMAIL PROTECTED]> To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: security log file parser / ids

2001-06-05 Thread Farooq Mela
"Heimes, Rene" wrote: > other question - whats the (freeware) ids of your choice / "state of the > art" for freeBSD? try /usr/ports/security/snort. Next time send questions like this to the -questions mailing list. -- farooq <[EMAIL PROTECTED]> To Unsubscribe: send mail to [EMAIL PROTECTED] wi

_ANSI_SOURCE vs. _ANSI_C_SOURCE

2001-05-31 Thread Farooq Mela
Hey -hackers, I am wondering why some operating systems use the macro _ANSI_SOURCE while others (ie Linux) use _ANSI_C_SOURCE to indicate that the source compiled is ANSI-compliant (and similarly with _POSIX_SOURCE and _POSIX_C_SOURCE). I have neither copies of the ANSI nor POSIX spec, and I don'

Re: Kqueue and FreeBSD versions

2001-05-15 Thread Farooq Mela
Jonathan Lemon wrote: > It was introduced with 4.1; I believe the correct __FreeBSD_version > to use is 41000. > -- > Jonathan > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-hackers" in the body of the message Great, thanks. I figured you'd be the authority on thi

Re: Kqueue and FreeBSD versions

2001-05-15 Thread Farooq Mela
Will Andrews wrote: > was introduced a loong time ago, and it was subsequently > obsoleted two years ago in favor of . > > The CVS logs will indicate which __FreeBSD_version you need for > kqueue(). I imagine the number is around 45. Thanks. Maybe the documentation for FreeBSD_version in /

Kqueue and FreeBSD versions

2001-05-15 Thread Farooq Mela
Hi -hackers, Just a quick question. What value of __FreeBSD_version should I require for kqueue? (I mean ) - was it introduced in 4.1 or 4.2 (memory fails me)? TIA, -- farooq <[EMAIL PROTECTED]> To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of th

Re: lockf in apache

2001-04-16 Thread Farooq Mela
Alfred Perlstein wrote: > > We haven't applied wakeup_one() to select() yet? (I think I've argued > > about this before.) > > > > Someone get cracking! :) > > I'm not sure it's possible without redesigning the way select works. > Perhaps its not possible, as I'm not very familiar with the way k

Re: Question regarding the array of size 0.

2001-03-20 Thread Farooq Mela
Greywolf wrote: > # struct {\ > # int8_t pad[ (sizeof (register_t) < sizeof (x)) \ > # ? 0 \ > # : sizeof (register_t) - sizeof (x)];\ > I thought ?: were evaluated at run-time, not compile-time? siz

Re: GCC Upgrade?

2001-03-17 Thread Farooq Mela
Alfred Perlstein wrote: > You're too optimistic. _Every_ gcc release is supposed to "fix > some bugs in the optimizer". Yeah, that's given, everything of course isn't fixed, not even close, and there's may even be some new problems introduced. But I was interested in the fixes anyway. What I was

GCC Upgrade?

2001-03-16 Thread Farooq Mela
Howdy, GCC 2.95.3 was just released. I did notice that there are some bug fixes in the optimizer, and some various other fixes etc. Considering the recent discussion about incorrect code generation due to -O2 and above, are there any plans to import this new release into the FreeBSD source tree?

Re: Kernel area libmish stuff

2001-03-10 Thread Farooq Mela
Jordan DeLong wrote: > I was thinking of just getting a sintable array and making a few simple > functions, so the whole of libm doesn't need to be statically linked into the > module (from my understanding, once loaded, this module wont ever get paged out, > and thus it'd be _bad_ for it to be bi

Re: pthread_exit proto

2001-03-04 Thread Farooq Mela
Alfred Perlstein wrote: > Is '__dead2' a GNU C thing? or is in any sort of standard? See /usr/include/sys/cdefs.h __dead2 is defined to __attribute__((__noreturn__)) if a suitable version of GCC is being used. > Generally there's some resistance to putting GNU C specific > code into the base

Re: pthread_exit proto

2001-03-04 Thread Farooq Mela
Alfred Perlstein wrote: > > * Farooq Mela <[EMAIL PROTECTED]> [010304 11:18] wrote: > > > > Hi, > > > > Could someone with CVS write access make the following change in > > pthread.h > > > > void pthread_exit __P((void *)); > > > &

pthread_exit proto

2001-03-04 Thread Farooq Mela
Hi, Could someone with CVS write access make the following change in pthread.h void pthread_exit __P((void *)); to void pthread_exit __P((void *)) __dead2; as this function doesnt return and gcc is giving me some annoying warnings ;-) BTW, what is the standard mechanism for submitting a pa

Re: Setting memory allocators for library functions.

2001-02-23 Thread Farooq Mela
Alfred Perlstein wrote: > > * Farooq Mela <[EMAIL PROTECTED]> [010222 23:52] wrote: > > > > This is not what I am arguing. I gave a simple example of an xmalloc > > function which does just print an error and exit. However, I've written > > many large app

Re: Setting memory allocators for library functions.

2001-02-22 Thread Farooq Mela
Peter Seebach wrote: > > In message <[EMAIL PROTECTED]>, Farooq Mela writes: > >Of course I realize that allocating memory can fail. That is why I use > >xmalloc and friends - so that I can avoid having to check for failure > >each time I want to allocate memory.

Re: Setting memory allocators for library functions.

2001-02-22 Thread Farooq Mela
Peter Seebach wrote: > It is a mistake to believe that you "don't have to worry about running > out of memory". You should always check, every time, and exit as gracefully > as you can. > > -s Of course I realize that allocating memory can fail. That is why I use xmalloc and friends - so that

Setting memory allocators for library functions.

2001-02-22 Thread Farooq Mela
Hi, Usually when I write programs, I have functions such as the following: void * xmalloc(size_t size) { void *p; if ((p=malloc(size))==NULL) { fprintf(stderr, "out of memory\n"); exit(1); } return(p); } void * xrealloc(void *ptr,

Re: linked files on iso9660?

2001-02-14 Thread Farooq Mela
David: I believe that links on CD-ROM are handled using RockRidge extensions, which basically has plain text files named "00_TRANS.TBL" in each directory which contains links to other files on the CD. I don't know all the details and specifics, but you should probably consult your CD recording so