소스 검색

fix harmless inconsistency in semtimedop

this should not matter since the reality is that either all the sysv
sem syscalls are individual syscalls, or all of them are multiplexed
on the SYS_ipc syscall (depending on arch). but best to be consistent
anyway.
Rich Felker 11 년 전
부모
커밋
35cf8b3e73
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/ipc/semtimedop.c

+ 1 - 1
src/ipc/semtimedop.c

@@ -5,7 +5,7 @@
 
 int semtimedop(int id, struct sembuf *buf, size_t n, const struct timespec *ts)
 {
-#ifdef SYS_semop
+#ifdef SYS_semtimedop
 	return syscall(SYS_semtimedop, id, buf, n, ts);
 #else
 	return syscall(SYS_ipc, IPCOP_semtimedop, id, n, 0, buf, ts);