semaphore.c_0.9.27.patch
来自「sm86xx rootfs来源包括补丁( GPL )的」· PATCH 代码 · 共 24 行
PATCH
24 行
diff -Nur uClibc-0.9.27.old/libpthread/linuxthreads/semaphore.c uClibc-0.9.27/libpthread/linuxthreads/semaphore.c--- uClibc-0.9.27.old/libpthread/linuxthreads/semaphore.c 2006-04-21 16:05:56.519478548 -0700+++ uClibc-0.9.27/libpthread/linuxthreads/semaphore.c 2006-04-21 16:03:48.128558709 -0700@@ -226,7 +226,8 @@ /* The standard requires that if the function would block and the time value is illegal, the function returns with an error. */ __pthread_unlock(&sem->__sem_lock);- return EINVAL;+ __set_errno (EINVAL);+ return -1; } /* Set up extrication interface */@@ -264,7 +265,8 @@ if (was_on_queue) { __pthread_set_own_extricate_if(self, 0);- return ETIMEDOUT;+ __set_errno (ETIMEDOUT);+ return -1; } /* Eat the outstanding restart() from the signaller */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?