|
malloc(0) fails in u9fs: msg#00600os.plan9.general
I run u9fs on Tru64 UNIX but it gives `malloc(0) fails'. I added the following fragment in emalloc() in u9fs.c. I agree it could be an extremely nasty work-around. /sys/src/cmd/unix/u9fs/u9fs.c:/^emalloc void *p; > if (n == 0) > n = 1; p = malloc(n); if(p == 0) (I used bundled CC, not GCC.) -- YAMANASHI Takeshi |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: v9fs release: 00600, Jim Choate |
|---|---|
| Next by Date: | Re: displaying postscript slides with page(1): 00600, Fco . J . Ballesteros |
| Previous by Thread: | Exclusive access the the nude hollywood 4793qjFf7-644uMZK5272GtPT3-610-28i: 00600, juancarrizo |
| Next by Thread: | Re: malloc(0) fails in u9fs: 00600, Russ Cox |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |