[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Minios-devel] [UNIKRAFT/NEWLIB PATCH 1/1] Add ptsname, ttyname_r and cfmakeraw stubs
- To: minios-devel@xxxxxxxxxxxxx
- From: Vlad-Andrei BĂDOIU <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
- Date: Wed, 18 Mar 2020 03:09:30 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=stud.acs.upb.ro; dmarc=pass action=none header.from=stud.acs.upb.ro; dkim=pass header.d=stud.acs.upb.ro; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=w2rBTq+a3shn+8rSiZUL+UvyEprQ3ZzqsJfTzPatJAk=; b=HdNFReDLDJ/NlMog/rfO/I+pk2+pHBtmlhogiRYU7NoCJvtwgZjljQi8GkUdn9Tv/PeMy+n3wc/1maWPyeKm0RPfJ1SVRCq7UodInzzi8DMVjlCiONgZS62nQ4c9LFu5aJ/2T0AgFA7g4Zdb7uLV8R7XPBdsrGAJ1dWhvIsNZq4jDtsV8h9p6mQ0s9Dj+If7+oxtD4r2i2oKznQH6NXsR4M41oak6m8DaBn0pWN25Rw9vob8g8jHGswTMQPJ8KxVYiXrQpvXHveJUxkW5z5fL28rZ7jlMU3x88c8Rm307AsTEW2HxkPimFCi9kJuYxH/pSTfHWItqxCNjtpN8XBuHg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FNHdyLoEzNebxRuX6tocs+KlKb9+dOhrSPwvSp4xV0MFtBnBEvyfn44MWn9eeQizsoUf7AmbVMF6mPRQrLS5uG1fQmV3PiiXb7KjMIoaEhMaRX9rzYIfK58JaphfFjA/lFNiYNikbAPNQdZuXGaD7lQ9y58i1Hlst+TPhYxMfTpLhPu1vrtTXKFpAZuNo98WhMb+Eqr8eb8WNU0ivF/ab48+GsZXDDioEIIN0BtYGDx5Q2hpeOcZjaD+ijr7FLSpQltIRhEAaZVcENIvmfuwHjdJnYtjZHtrMnDG+l4lQLNs5weBeT40+Wy7OSCVIWujFaIWyOgxAF15p86h2Vz6+Q==
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
- Cc: felipe.huici@xxxxxxxxx, Vlad-Andrei BĂDOIU <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
- Delivery-date: Wed, 18 Mar 2020 01:10:01 +0000
- List-id: Mini-os development list <minios-devel.lists.xenproject.org>
Signed-off-by: Vlad-Andrei BĂDOIU <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
---
pty.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/pty.c b/pty.c
index 07346de..52a91ca 100644
--- a/pty.c
+++ b/pty.c
@@ -55,3 +55,20 @@ pid_t forkpty(int *amaster __unused, char *name __unused,
errno = ENOENT;
return -1;
}
+
+char *ptsname(int fd __unused)
+{
+ errno = ENOTTY;
+ return NULL;
+}
+
+int ttyname_r(int fd __unused, char *buf __unused, size_t buflen __unused)
+{
+ errno = ENOTTY;
+ return -1;
+}
+
+void cfmakeraw(struct termios *termios_p)
+{
+
+}
--
2.20.1
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel
|