I discovered that the EasyCAP USB card I bought on eBay quite a while
ago is now supported in the Linux kernel, but don't know how to tell
TVtime to use the usbtv device instead of the saa7134.
Below is info about my existing saa7134 PCI card (which TVtime does
recognize) and the new usbtv EasyCA
What are other practical use cases where malloc returns NULL.
You mentioned programmer error.
I second, and mention restricted environment where admin ulimits your
virtual memory.
I'll be happy to hear more.
On Sun, May 17, 2015 at 9:51 PM, Oleg Goldshmidt wrote:
> Elazar Leibovich writes:
>
Elazar Leibovich wrote on Sun, May 17, 2015 at 00:04:49 +0300:
> A concrete example, a "regular" read_line function
>
> char *read_line(struct reader *r) { char *rv = malloc(len); read_to(rv);
> return rv; }
...
> Our read_line example would now look like
>
> struct error read_line(struct reader
In the hope to amuse at least some of you...
Oleg Goldshmidt writes:
> So you've been lucky so far. At some point you will inevitably run into
> client code that occasionally does something stupid like passing a
> signed integer as size. Trust me, when that happens the size parameter
> usually
On Sat, May 16, 2015 at 10:27 PM, Elazar Leibovich
wrote:
> Thanks Orna,
>
> My understanding is, that in stock Linux kernel, a process that allocates
> too much memory is unlikely to receive NULL from malloc. The more likely
> scenario is, the whole system would swap out pages, and the OOM kille
Elazar Leibovich writes:
> Regarding 5-6. What I'm saying is, seeing malloc returning NULL in
> production is very rare.
Hope dies last.. ;-)
> I personally never seen that.
So you've been lucky so far. At some point you will inevitably run into
client code that occasionally does something s