Fix the way hwloc-calc checks whether the input is a valid cpuset string
Fix the way hwloc-calc checks whether the input is a valid cpuset string

Handle infinite cpusets properly.

Separated taskset and regular case and cleanup them.

git-svn-id: 14be032f8f42541b1a281b51ae8ea69814daf20e@2121 4b44e086-7f34-40ce-a3bd-00e031736276

BlueBrain/hwloc,BlueBrain/hwloc,BlueBrain/hwloc,BlueBrain/hwloc