[PATCH v3 07/13] nds32: Linux Syscall Interface
Joseph Myers
joseph@codesourcery.com
Thu Jun 14 13:34:00 GMT 2018
On Thu, 14 Jun 2018, Vincent Chen wrote:
> +/* This routine is jumped to by all the syscall handlers, to stash
> + an error number into errno. */
> +long int
> +__syscall_error (long int err)
> +{
> + __set_errno (- err);
We use spaces around binary operators, but not after unary '-'.
> + __set_errno (INTERNAL_SYSCALL_ERRNO (result_var, err)); \
> + result_var = -1 ; \
No space before ';'. The indentation of the second line here also seems
way off. Likewise again later in this file.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list