[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH 0/4] lib/uktime: Import timegm from musl


  • To: "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
  • From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Date: Wed, 11 Sep 2019 13:56:01 +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=yFtvgk698CXghzBrDfPF5o7pKbY/Q0ibUjM3xSb/S4c=; b=f9iKDQxCIyftQdFUOqeZYLM2ix6gFJ+sUVyVwYfot8ZxI/YhzpLrHP6BxnZtI9ehwXxOacyC3kb09q/oO2vITzsho0GRkJmnWP6mxhiSlCDDwHWEjaZU0NlWc7nwdf1geriG0CNldPKUPMobitlhU9Va996LHfG5oaaPC6IYA38MvIzJPF6YkegvbWr7/V6jbo1ldNVENBAdXTf3Zv9Cv9VK8U59ZoaJuij1euL+pc4oTYdXdh8R13Bq5woYy3hooUw/a7bNxzppjmjSz5TCKjAsvd5ECAESCqKvdHQvMQQdzlW1XhG3TmC3z37/bCn4ZO531DSs8WXTFks+PpetVA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I2IJKcIXZywsYCaTqxKcxtL8DqetI6Tp7EJ11M2MCWg9aojc65smnxE93uGqZBY3uFuihd0OuU+NbRh5YRsxOXZOrncSNDtrqd9LBc4S8aMJ4EwhP3yjp24pYRWLMCS8VJyfTeWAm4aB1N9R4eAUa0LuCOuEGSXosttIzk1r+2biYSEcmfZgAyahFT4gt4tvMpj/0kNElH5hJnYc9ocz+ENuWej9ux+f6dO4demI6S0dtTQYur2UzxyoYMwQh3slrK2o081COdajZmkTp1/I5SIPncfTNzWqYBOvMbsuUGM9OJtgwBi+cQDFRzrb517FW2ul7IpeJsL4OVzN+U+8wg==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
  • Cc: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>, "costin.lupu@xxxxxxxxx" <costin.lupu@xxxxxxxxx>
  • Delivery-date: Wed, 11 Sep 2019 13:56:08 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHVaKil3zO0FEykrka4lBNNxpH3Jw==
  • Thread-topic: [UNIKRAFT PATCH 0/4] lib/uktime: Import timegm from musl

We import the timegm function from musl to the newly created 
library, uktime. We move the definitions from nolibc/time.h
to uktime/time.h. This function is needed by Python 3.

Vlad-Andrei Badoiu (4):
  lib/uktime: Import timegm from musl
  lib/uktime: Adapt timegm implementation to Unikraft
  lib/uktime: Fix checkpath errors for timegm
  Update time.h from nolibc to use uktime

 lib/nolibc/include/time.h                     |  27 +--
 lib/uktime/Makefile.uk                        |  13 +-
 lib/uktime/exportsyms.uk                      |   2 +-
 lib/uktime/include/_time_types.h              |  22 +++
 .../musl-imported/include/_time_types.h       |  21 +++
 lib/uktime/musl-imported/include/time_impl.h  |   7 +
 .../musl-imported/include/uktime/time.h       | 158 ++++++++++++++++++
 .../musl-imported/src/__month_to_secs.c       |  12 ++
 lib/uktime/musl-imported/src/__secs_to_tm.c   |  82 +++++++++
 lib/uktime/musl-imported/src/__tm_to_secs.c   |  27 +++
 lib/uktime/musl-imported/src/__year_to_secs.c |  55 ++++++
 lib/uktime/musl-imported/src/timegm.c         |  21 +++
 12 files changed, 418 insertions(+), 29 deletions(-)
 create mode 100644 lib/uktime/include/_time_types.h
 create mode 100644 lib/uktime/musl-imported/include/_time_types.h
 create mode 100644 lib/uktime/musl-imported/include/time_impl.h
 create mode 100644 lib/uktime/musl-imported/include/uktime/time.h
 create mode 100644 lib/uktime/musl-imported/src/__month_to_secs.c
 create mode 100644 lib/uktime/musl-imported/src/__secs_to_tm.c
 create mode 100644 lib/uktime/musl-imported/src/__tm_to_secs.c
 create mode 100644 lib/uktime/musl-imported/src/__year_to_secs.c
 create mode 100644 lib/uktime/musl-imported/src/timegm.c

-- 
2.20.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.