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

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


  • To: "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
  • From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Date: Thu, 12 Sep 2019 11:31:50 +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=/TSMNsGF/fmdWn71RmW/j77zXC6rCiEULrnPBhqrT7w=; b=IfTiy75DpnVA/VxgUAUJ0+D3Cu2CF/u0cQ++9m8gMMOWMXCJGOvnV/PTryW00Zdq532YMlKYFFJymBmHuEYuai57/Ama3LIa3LHx8DgOpufSDJLXKe2lTrrRgz1dviczdQaV30vWw+/p0fiDn2x3bqpZzmSFEUMPOvIAm5fx3JjbigIiZP2XpeSXV5x7uvTG8HwEhQ4dNH+KKVY/rP/TJPEgOp+ZBJSRZuPz7mxMMOrVgszFI6GO62esFEP6xCaMvtJv9BZHgf9nSrKQmpk9Qr6BGtPcol2bhZMynN/Jnb0exLePVk5ibHmpOoZt6OXEOy5sy+CGX9/i61M2Lp/QxQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LWIinETV+zI5m1ozFsLLJBHd0NVcgwmNe9M+JB9C161/53VCtaTLQHV/hhLF8tiXFohNHtJDcm4A75nLGBIXR0lM0eelcsOlseLnW2+H9zJQ7jJq56tOJN/TKNrX+2mE/OsM7R7fwNfaoNPYBMz73CpGu3xtcofwU7z2o+xl+ylKMbmpP2j0k+Wm5SG1ycmCu8SF6AKzFEmVXWn3d3L0Ywqqg0lBG+JonLcyFZXuDIpTcpTqxQeyJ3PLEWuRY7kuF58mBaIB0qysHcK7U3Xzwd3TGLHd+XdxbPet4+1+IxnFsJyDvb8aMFAeGc2DY/DPK9DNUwIn6/so40RAZkjcZQ==
  • 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: Thu, 12 Sep 2019 11:31:56 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHVaV2rbE3DBTq9PEq6B8I+HkSljQ==
  • Thread-topic: [UNIKRAFT PATCH v3 0/3] 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.

Changes since v1:
*) Dropped the nolibc patch
*) Moved _time_types.h to include/uktime
*) Removed duplicate _time_types.h in musl-imported
*) Added license to _time_types.h

Changes since v2:
*) Moved time.h and time_imp.h to match the location in musl

Vlad-Andrei Badoiu (3):
  lib/uktime: Import timegm from musl
  lib/uktime: Adapt timegm implementation to Unikraft
  lib/uktime: Fix checkpath errors for timegm

 lib/uktime/Makefile.uk                        |  15 +-
 lib/uktime/exportsyms.uk                      |   2 +-
 lib/uktime/include/uktime/_time_types.h       |  62 ++++++++
 lib/uktime/musl-imported/include/time.h       | 150 ++++++++++++++++++
 .../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/time_impl.h      |   7 +
 lib/uktime/musl-imported/src/timegm.c         |  21 +++
 10 files changed, 430 insertions(+), 3 deletions(-)
 create mode 100644 lib/uktime/include/uktime/_time_types.h
 create mode 100644 lib/uktime/musl-imported/include/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/time_impl.h
 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®.