1
1

Merge pull request #7777 from markalle/IPCOP_shmat

adding op-codes for syscall ipc for shmat/shmdt
Этот коммит содержится в:
Jeff Squyres 2020-06-08 15:09:17 -04:00 коммит произвёл GitHub
родитель a879a16df5 e8fab058da
Коммит 9b55419b40
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23

Просмотреть файл

@ -15,7 +15,7 @@
* reserved.
* Copyright (c) 2016-2017 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* Copyright (c) 2016-2019 IBM Corporation. All rights reserved.
* Copyright (c) 2016-2020 IBM Corporation. All rights reserved.
*
* $COPYRIGHT$
*
@ -334,6 +334,18 @@ static int intercept_brk (void *addr)
#endif
// These op codes used to be in bits/ipc.h but were removed in glibc in 2015
// with a comment saying they should be defined in internal headers:
// https://sourceware.org/bugzilla/show_bug.cgi?id=18560
// and when glibc uses that syscall it seems to do so from its own definitions:
// https://github.com/bminor/glibc/search?q=IPCOP_shmat&unscoped_q=IPCOP_shmat
#ifndef IPCOP_shmat
#define IPCOP_shmat 21
#endif
#ifndef IPCOP_shmdt
#define IPCOP_shmdt 22
#endif
#if defined(SYS_shmdt) || (defined(IPCOP_shmdt) && defined(SYS_ipc))
#define HAS_SHMDT 1
#else