[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Minios-devel] [UNIKRAFT/NEWLIB PATCH 1/1] Change the restrict keyword to __restrict__
- To: "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
- From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
- Date: Tue, 12 Nov 2019 10:12:41 +0000
- Accept-language: en-US
- 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=Fl+s3yuM0lfHXuCQyEYRwtkIAAGSGIOjnu6FM+yXOp4=; b=QULVvviVpAWYOw+mQf7kBynCrT7A0ELcUNpnZSzWRgT0LBj9itDm+49El2+Lc+rcp6xVLU/lXCIs/MVy4E3vYCUtj/t+yxnPqIKupefMEDGCJzknJmWU0hhYXzqSGf1GuXIRj6RlCX3kdrldcFw8pmYL+g/DK8xxqFIpI/6ZpvTAZamA0v5ZnoeYuqzBB/ip1XaPTcmHoZML9z4yTf43jqcgQIWScTJ0xXF0QIRyh9VMwVeaCN3+ElIgAlprnl4jwEDtIDObH2XowoUMjisDFj65ZiATMcN9IvbSbhquJlL3Myuc0nxdSRR7YlFEuvTp8OcagdOBZ1ub7DYoH2PirQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hQaabXP/BvP6nELeqtL/7N8ZddXfcVptf4+4JKfXDQMAVKRx2QPPkabAlulkQOiWeBqyRW8ZkkMz59brxZi90MEGZao2L0ifuMB4D3YCCXLQtlDlcPSkdYpVXD93unKqsE56B3ivwBC8l5Oty4eus/kxEe8KfZVP9/KyFKrBJASUG1jE/kxG3p9oARjiEoq66aeSvIPVmmmSlbaBhcwpFlYbgG+a4LGdWHMuBPGFWeA4B/8PnKI2AtIEHyoL5Lf03DKaWLBb/8A4/hKpIg72VgnfR7JgGLmudock1mb2qp7ZWGoRB1Z9GOS+FDSqI01zyaNybpuCgngti/DkkqtxRw==
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
- Cc: "felipe.huici@xxxxxxxxx" <felipe.huici@xxxxxxxxx>, Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
- Delivery-date: Tue, 12 Nov 2019 10:12:50 +0000
- List-id: Mini-os development list <minios-devel.lists.xenproject.org>
- Thread-index: AQHVmUG4pXvcR1TldkWhWX1tA2iGVg==
- Thread-topic: [UNIKRAFT/NEWLIB PATCH 1/1] Change the restrict keyword to __restrict__
The restrict keyword doesn't exist in C++. Including headers that use this
keyword causes compilation errors. We replace the keyword with the __restrict__
extension from
GCC.
Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
---
include/dirent.h | 4 ++--
include/sys/statvfs.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/dirent.h b/include/dirent.h
index 8532930..e86be2a 100644
--- a/include/dirent.h
+++ b/include/dirent.h
@@ -66,8 +66,8 @@ int closedir(DIR *dirp);
DIR *fdopendir(int fd);
DIR *opendir(const char *name);
struct dirent *readdir(DIR *dirp);
-int readdir_r(DIR *restrict dirp, struct dirent *restrict entry,
- struct dirent **restrict result);
+int readdir_r(DIR *__restrict__ dirp, struct dirent *__restrict__ entry,
+ struct dirent **__restrict__ result);
void rewinddir(DIR *dirp);
int dirfd(DIR *dirp);
diff --git a/include/sys/statvfs.h b/include/sys/statvfs.h
index 96ef851..8e71ac8 100644
--- a/include/sys/statvfs.h
+++ b/include/sys/statvfs.h
@@ -59,7 +59,7 @@ struct statvfs {
int __reserved[6];
};
-int statvfs(const char *restrict path, struct statvfs *restrict buf);
+int statvfs(const char *__restrict__ path, struct statvfs *__restrict__ buf);
int fstatvfs(int fd, struct statvfs *buf);
#define ST_RDONLY 1
--
2.20.1
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel
|