From b24fdd90aee29a5e6362be5d8f061f7cbd500052 Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Tue, 21 May 2019 19:01:32 +0300 Subject: daemon: added stdio (null) im proto stubs. Signed-off-by: Gediminas Jakutis --- include/proto_stdio.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 include/proto_stdio.h (limited to 'include') diff --git a/include/proto_stdio.h b/include/proto_stdio.h new file mode 100644 index 0000000..7f9bcee --- /dev/null +++ b/include/proto_stdio.h @@ -0,0 +1,27 @@ +/* + * Usurpation – null (stdio) im proto + * + * Copyright (C) 2019 Gediminas Jakutis + * + * This program 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; version 2.1 + * of the License. + * + * This program 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 this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#ifndef USURPATION_PROTO_STDIO_H +#define USURPATION_PROTO_STDIO_H + +int proto_stdio_init(void); +void proto_stdio_close(void); + +#endif /* USURPATION_PROTO_STDIO_H */ -- cgit v1.2.3 From 92dbb5804e65b9802cdb8e788e6a7503d31a89e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paulius=20Ratkevi=C4=8Dius?= Date: Tue, 21 May 2019 20:04:23 +0300 Subject: daemon: implemented stdio interfaces MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Paulius Ratkevičius --- include/proto_stdio.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/proto_stdio.h b/include/proto_stdio.h index 7f9bcee..81955a9 100644 --- a/include/proto_stdio.h +++ b/include/proto_stdio.h @@ -2,6 +2,7 @@ * Usurpation – null (stdio) im proto * * Copyright (C) 2019 Gediminas Jakutis + * Copyright (C) 2019 Paulius Ratkevičius * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -23,5 +24,7 @@ int proto_stdio_init(void); void proto_stdio_close(void); +void message_receive(char *); +char * message_send(void); #endif /* USURPATION_PROTO_STDIO_H */ -- cgit v1.2.3 From 81602e816f9d1e9ae0fa06482037e79bb8750806 Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Sun, 26 May 2019 15:58:13 +0300 Subject: daemon: improve threading logic on null proto. Functions now prevent interruptions that can produce an inconsistent state in the program. Also, cosmetic changes. Signed-off-by: Gediminas Jakutis --- include/proto_stdio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/proto_stdio.h b/include/proto_stdio.h index 81955a9..c54ef9c 100644 --- a/include/proto_stdio.h +++ b/include/proto_stdio.h @@ -25,6 +25,6 @@ int proto_stdio_init(void); void proto_stdio_close(void); void message_receive(char *); -char * message_send(void); +char *message_send(void); #endif /* USURPATION_PROTO_STDIO_H */ -- cgit v1.2.3