Hi, This regards bite-size task for Outreachy program [0].
I followed the patches prepared by Harmandeep [1] where functions in xl_cmdimpl.c have the pattern: "*main_foo() is treated somewhat as a regular main(), it is changed to return EXIT_SUCCESS or EXIT_FAILURE. *Functions that are not main_foo(), are changed to do 'return 0' or 'return 1', and then 0/1 is taken care in the main_foo() functions that calls them. " The changes regard scheduling functions. But in the preliminary patches [2] there is a notion to change not main_foo() to return EXIT_SUCCESS or EXIT_FAILURE, like in [3]. Should not-main functions related to - mem-set - cd-insert - pci-* return 0/1 or should EXIT_SUCCESS/EXIT_FAILURE be kept? There is also a patch that change exit code from numeric values or ERROR_* codes to be either EXIT_SUCCESS or EXIT_FAILURE for migrate related functions [4]. Could that be applied to those functions too? Paulina [0] https://www.mail-archive.com/xen-devel@lists.xen.org/msg61650.html [1] http://lists.xenproject.org/archives/html/xen-devel/2015-10/msg02990.html [2] http://lists.xenproject.org/archives/html/xen-devel/2015-12/msg02246.html [3] http://lists.xenproject.org/archives/html/xen-devel/2015-12/msg02243.html [4] http://lists.xenproject.org/archives/html/xen-devel/2016-02/msg03354.html
_______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel