{"thread":{"id":"15315","subject":"Re: [PATCH v2] Improve portability: Cast pid_t's to intmax_t","startedAt":"2008-09-01T08:28:01Z","lastAt":"2008-09-01T08:54:41Z","messageCount":2,"participants":["George Spelvin","Miles Bader"],"isPatch":true,"patchVersion":2,"patchTotal":null},"messages":[{"id":"89375","messageId":"20080901082801.29621.qmail@science.horizon.com","threadId":"15315","inReplyTo":null,"subject":"Re: [PATCH v2] Improve portability: Cast pid_t's to intmax_t","fromName":"George Spelvin","fromEmail":"linux@horizon.com","sentAt":"2008-09-01T08:28:01Z","receivedAt":"2008-09-01T08:28:01Z","isPatch":true,"sender":{"key":"linux@horizon.com","avatar":null},"body":"This seems rather pointless.  Whatever Solaris thinks, I really doubt\nthat process IDs will ever overflow an int, which is 32 bits on all\nmachines that will ever support more than 32k processes.\n\nYou can be paranoid if you like and cast to long, but I don't think\neven a massive 64-bit cluster is likely to have more than 2G processes\nin the forseeable future.\n\nI'd support a cast to int or unsigned, or a cast to long as a second choice.\n\nUsing uintmax_t is formally correct, but practically pointless clutter.\n"},{"id":"89377","messageId":"buood382qlq.fsf@dhapc248.dev.necel.com","threadId":"15315","inReplyTo":"20080901082801.29621.qmail@science.horizon.com","subject":"Re: [PATCH v2] Improve portability: Cast pid_t's to intmax_t","fromName":"Miles Bader","fromEmail":"miles.bader@necel.com","sentAt":"2008-09-01T08:54:41Z","receivedAt":"2008-09-01T08:54:41Z","isPatch":true,"sender":{"key":"miles.bader@necel.com","avatar":"https://gravatar.com/avatar/be062d4050eb88e04229cbdb60f803e1bd647923a015996c2439e76f23e336a7?d=mp&s=160"},"body":"\"George Spelvin\" <linux@horizon.com> writes:\n> You can be paranoid if you like and cast to long, but I don't think\n> even a massive 64-bit cluster is likely to have more than 2G processes\n> in the forseeable future.\n\nBut it isn't it possible for some OS to use a sparse PID namespace?\n\n-Miles\n\n-- \nBrain, n. An apparatus with which we think we think.\n"}]}