LWN.net Logo

Quotes of the week

So remember guys. Windows suspend/resume may work just fine. Mac too. But Linux's suspend/resume isn't a buggy pile of crap. It's an intelligent buggy pile of crap, that just wants to be loved.
-- Christian Hammond

My initial impression was also that power savings was Android's single supreme goal, but a careful reading of this thread and the ones preceding it taught me otherwise. Please see below for my current understanding of what they are trying to accomplish.
-- Paul McKenney

When a user says, "Show the changes to the lower file system in my overlaid file system," they are actually saying, "Replace everything in /bin, but not /etc/hostname, and merge the lower package database with the upper package database, and update /etc/resolv.conf, unless it's the mailserver..."
-- Valerie Aurora

Actually, it's not that complicated:

1) base and suffices choose the possible types.
2) order of types is always the same: int -> unsigned -> long -> unsigned long -> long long -> unsigned long long
3) we always choose the first type the value would fit into
4) L in suffix == "at least long"
5) LL in suffix == "at least long long"
6) U in suffix == "unsigned"
7) without U in suffix, base 10 == "signed"

That's it.

-- Language lessons from Al Viro
(Log in to post comments)

Quotes of the week

Posted Aug 19, 2010 10:47 UTC (Thu) by jengelh (subscriber, #33263) [Link]

You would pick unsigned whenever it makes sense, except when you want to store/return negative values and ~0U is not acceptable to pose as -1. After that comes signed.

Quotes of the week

Posted Aug 19, 2010 14:52 UTC (Thu) by vonbrand (subscriber, #4458) [Link]

What he says is what the C standard (modulo GCCisms) says, not what would me right/nicest for Linux (the kernel).

Quotes of the week

Posted Aug 20, 2010 0:46 UTC (Fri) by Cyberax (✭ supporter ✭, #52523) [Link]

"So remember guys. Windows suspend/resume may work just fine. Mac too. But Linux's suspend/resume isn't a buggy pile of crap. It's an intelligent buggy pile of crap, that just wants to be loved."

I noticed the same pattern with my webcam. It refuses to work sometimes, mostly when I need it to speak with my gf.

I think it's jealous.

Copyright © 2010, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds