NetBSD limits name of a semaphore to 15 characters (inc. null)
authorKamil Rytarowski <n54@gmx.com>
Sun, 24 Apr 2016 00:50:52 +0000 (02:50 +0200)
committerKamil Rytarowski <n54@gmx.com>
Mon, 25 Apr 2016 00:28:50 +0000 (02:28 +0200)
commit5a260da64491b1964a190c905cf5fae867e472ba
tree25230e80f8393a958c7db2cb66f929d0aeb2e97e
parent3621d913b3c58d5449d252226b5294c93fde14a7
NetBSD limits name of a semaphore to 15 characters (inc. null)

Introduce new variable: CLR_SEM_MAX_NAMELEN to track the shortest allowable
length of the path. Change algorithm to generate a semaphore name to OR instead
of the string concatenation.

Commit migrated from https://github.com/dotnet/coreclr/commit/ebaf78862b55c2a1c5fdfaed858ee287f65f0ce5
src/coreclr/src/pal/src/thread/process.cpp