1*abbc8a65Sryo /* $NetBSD: linux_break.c,v 1.57 2021/09/23 06:56:27 ryo Exp $ */
2d70c9cdbSerh
3d70c9cdbSerh /*-
48096c25aSfvdl * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
5d70c9cdbSerh * All rights reserved.
6d70c9cdbSerh *
7d70c9cdbSerh * This code is derived from software contributed to The NetBSD Foundation
88096c25aSfvdl * by Frank van der Linden and Eric Haszlakiewicz.
9d70c9cdbSerh *
10d70c9cdbSerh * Redistribution and use in source and binary forms, with or without
11d70c9cdbSerh * modification, are permitted provided that the following conditions
12d70c9cdbSerh * are met:
13d70c9cdbSerh * 1. Redistributions of source code must retain the above copyright
14d70c9cdbSerh * notice, this list of conditions and the following disclaimer.
15d70c9cdbSerh * 2. Redistributions in binary form must reproduce the above copyright
16d70c9cdbSerh * notice, this list of conditions and the following disclaimer in the
17d70c9cdbSerh * documentation and/or other materials provided with the distribution.
18d70c9cdbSerh *
19d70c9cdbSerh * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20d70c9cdbSerh * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21d70c9cdbSerh * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22d70c9cdbSerh * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23d70c9cdbSerh * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24d70c9cdbSerh * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25d70c9cdbSerh * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26d70c9cdbSerh * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27d70c9cdbSerh * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28d70c9cdbSerh * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29d70c9cdbSerh * POSSIBILITY OF SUCH DAMAGE.
30d70c9cdbSerh */
313bf459f3Sfvdl
32dab6ef8bSlukem #include <sys/cdefs.h>
33*abbc8a65Sryo __KERNEL_RCSID(0, "$NetBSD: linux_break.c,v 1.57 2021/09/23 06:56:27 ryo Exp $");
34dab6ef8bSlukem
353bf459f3Sfvdl #include <sys/param.h>
363bf459f3Sfvdl #include <sys/systm.h>
373bf459f3Sfvdl #include <sys/mount.h>
383bf459f3Sfvdl
393bf459f3Sfvdl #include <sys/syscallargs.h>
403bf459f3Sfvdl
41908291d2Schristos #include <compat/linux/common/linux_types.h>
42908291d2Schristos #include <compat/linux/common/linux_signal.h>
433bf459f3Sfvdl #include <compat/linux/linux_syscallargs.h>
443bf459f3Sfvdl
45d7130e83Schristos
46d70c9cdbSerh /* Used on: arm, (i386), ppc */
47*abbc8a65Sryo /* Not used on: aarch64, alpha, m68k, mips, sparc, sparc64 */
48245f292fSmycroft
49d70c9cdbSerh /* Defined as "not implemented" on arm and ppc */
50d70c9cdbSerh /* Not defined on i386 */
51d70c9cdbSerh /* XXXERH: maybe this should just go away. */
527cd62a50Sfvdl
533bf459f3Sfvdl /*
543bf459f3Sfvdl * This is the old brk(2) call. I don't think anything in the Linux
553bf459f3Sfvdl * world uses this anymore
563bf459f3Sfvdl */
573bf459f3Sfvdl int
linux_sys_break(struct lwp * l,const struct linux_sys_break_args * uap,register_t * retval)587e2790cfSdsl linux_sys_break(struct lwp *l, const struct linux_sys_break_args *uap, register_t *retval)
593bf459f3Sfvdl {
607e2790cfSdsl /* {
61e1da0d53Sthorpej syscallarg(char *) nsize;
627e2790cfSdsl } */
63e1da0d53Sthorpej
643bf459f3Sfvdl return ENOSYS;
653bf459f3Sfvdl }
66