char-fd.c (1c5d5061019dadfaa9ca25d23c9688fc18c148fa) char-fd.c (8228e353d8906bf43399ca0ef28446c5c48bb686)
1/*
2 * QEMU System Emulator
3 *
4 * Copyright (c) 2003-2008 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 11 unchanged lines hidden (view full) ---

20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 * THE SOFTWARE.
23 */
24#include "qemu/osdep.h"
25#include "qemu/sockets.h"
26#include "qapi/error.h"
27#include "qemu-common.h"
1/*
2 * QEMU System Emulator
3 *
4 * Copyright (c) 2003-2008 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 11 unchanged lines hidden (view full) ---

20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 * THE SOFTWARE.
23 */
24#include "qemu/osdep.h"
25#include "qemu/sockets.h"
26#include "qapi/error.h"
27#include "qemu-common.h"
28#include "sysemu/char.h"
28#include "chardev/char.h"
29#include "io/channel-file.h"
30
29#include "io/channel-file.h"
30
31#include "char-fd.h"
32#include "char-io.h"
31#include "chardev/char-fd.h"
32#include "chardev/char-io.h"
33
34/* Called with chr_write_lock held. */
35static int fd_chr_write(Chardev *chr, const uint8_t *buf, int len)
36{
37 FDChardev *s = FD_CHARDEV(chr);
38
39 return io_channel_send(s->ioc_out, buf, len);
40}

--- 130 unchanged lines hidden ---
33
34/* Called with chr_write_lock held. */
35static int fd_chr_write(Chardev *chr, const uint8_t *buf, int len)
36{
37 FDChardev *s = FD_CHARDEV(chr);
38
39 return io_channel_send(s->ioc_out, buf, len);
40}

--- 130 unchanged lines hidden ---