mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-24 12:25:35 +08:00
2b778ceb40
I used these shell commands: ../glibc/scripts/update-copyrights $PWD/../gnulib/build-aux/update-copyright (cd ../glibc && git commit -am"[this commit message]") and then ignored the output, which consisted lines saying "FOO: warning: copyright statement not found" for each of 6694 files FOO. I then removed trailing white space from benchtests/bench-pthread-locks.c and iconvdata/tst-iconv-big5-hkscs-to-2ucs4.c, to work around this diagnostic from Savannah: remote: *** pre-commit check failed ... remote: *** error: lines with trailing whitespace found remote: error: hook declined to update refs/heads/master
60 lines
2.3 KiB
C
60 lines
2.3 KiB
C
/* Copyright (C) 1993-2021 Free Software Foundation, Inc.
|
|
This file is part of the GNU C Library.
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Lesser General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
License along with the GNU C Library; if not, see
|
|
<https://www.gnu.org/licenses/>. */
|
|
|
|
/* Useful declarations and support functions for MiG-generated stubs. */
|
|
|
|
#ifndef _MACH_MIG_SUPPORT_H
|
|
|
|
#define _MACH_MIG_SUPPORT_H 1
|
|
|
|
#include <mach/std_types.h>
|
|
#include <mach/message.h>
|
|
#include <sys/types.h>
|
|
#include <string.h>
|
|
|
|
/* MiG initialization. */
|
|
extern void __mig_init (void *__first);
|
|
extern void mig_init (void *__first);
|
|
|
|
/* Shorthand functions for vm_allocate and vm_deallocate on
|
|
mach_task_self () (and with ANYWHERE=1). */
|
|
extern void __mig_allocate (vm_address_t *__addr_p, vm_size_t __size);
|
|
extern void mig_allocate (vm_address_t *__addr_p, vm_size_t __size);
|
|
extern void __mig_deallocate (vm_address_t __addr, vm_size_t __size);
|
|
extern void mig_deallocate (vm_address_t __addr, vm_size_t __size);
|
|
|
|
/* Reply-port management support functions. */
|
|
extern void __mig_dealloc_reply_port (mach_port_t);
|
|
extern void mig_dealloc_reply_port (mach_port_t);
|
|
extern mach_port_t __mig_get_reply_port (void);
|
|
extern mach_port_t mig_get_reply_port (void);
|
|
extern void __mig_put_reply_port (mach_port_t);
|
|
extern void mig_put_reply_port (mach_port_t);
|
|
|
|
extern void __mig_reply_setup (const mach_msg_header_t *__request,
|
|
mach_msg_header_t *__reply);
|
|
extern void mig_reply_setup (const mach_msg_header_t *__request,
|
|
mach_msg_header_t *__reply);
|
|
|
|
/* Idiocy support function. */
|
|
extern vm_size_t mig_strncpy (char *__dst, const char *__src, vm_size_t __len);
|
|
extern vm_size_t __mig_strncpy (char *__dst, const char *__src, vm_size_t);
|
|
|
|
extern void *__mig_memcpy (void *__dst, const void *__src, vm_size_t __len);
|
|
|
|
#endif /* mach/mig_support.h */
|