[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 3/6] stubs: Add openpty.c
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 3/6] stubs: Add openpty.c |
Date: |
Wed, 20 Aug 2014 15:26:23 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 |
Il 20/08/2014 12:01, Fam Zheng ha scritto:
> Add function "openpty" which is used by util/qemu-openpty.c.
>
> Signed-off-by: Fam Zheng <address@hidden>
> ---
> stubs/Makefile.objs | 1 +
> stubs/openpty.c | 21 +++++++++++++++++++++
> 2 files changed, 22 insertions(+)
> create mode 100644 stubs/openpty.c
>
> diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs
> index d9cad1b..f5d2cdd 100644
> --- a/stubs/Makefile.objs
> +++ b/stubs/Makefile.objs
> @@ -41,3 +41,4 @@ stub-obj-y += cpus.o
> stub-obj-y += kvm.o
> stub-obj-y += qmp_pc_dimm_device_list.o
> stub-obj-y += iohandler.o
> +stub-obj-y += openpty.o
> diff --git a/stubs/openpty.c b/stubs/openpty.c
> new file mode 100644
> index 0000000..31e6ff5
> --- /dev/null
> +++ b/stubs/openpty.c
> @@ -0,0 +1,21 @@
> +/*
> + * openpty stub
> + *
> + * Copyright Red Hat, Inc., 2014
> + *
> + * Author: Fam Zheng <address@hidden>
> + *
> + * This work is licensed under the terms of the GNU GPL, version 2 or
> + * later. See the COPYING file in the top-level directory.
> + */
> +
> +#include <stdlib.h>
> +#include <pty.h>
> +
> +int openpty(int *amaster, int *aslave, char *name,
> + const struct termios *termp,
> + const struct winsize *winp)
> +{
> + abort();
> +}
> +
>
Please move -lutil from libs_softmmu to LIBS instead.
Paolo
- Re: [Qemu-devel] [PATCH 6/6] iscsi: Move iqn generation code to util, (continued)
- [Qemu-devel] [PATCH 4/6] stubs: Add timer.c, Fam Zheng, 2014/08/20
- [Qemu-devel] [PATCH 1/6] build-sys: Move fifio8 to hw/, Fam Zheng, 2014/08/20
- [Qemu-devel] [PATCH 5/6] build-sys: Change libqemuutil.a to qemuutil.o and link whole object, Fam Zheng, 2014/08/20
- [Qemu-devel] [PATCH 3/6] stubs: Add openpty.c, Fam Zheng, 2014/08/20
- Re: [Qemu-devel] [PATCH 3/6] stubs: Add openpty.c,
Paolo Bonzini <=
- [Qemu-devel] [PATCH 2/6] stubs: Add iohandler.c, Fam Zheng, 2014/08/20