[PATCH] netfs: Remove global reference count lock.

2016-03-19 Thread Flavio Cruz
* libnetfs/drop-node.c: Remove use of netfs_node_refcnt_lock. * libnetfs/init-init.c: Remove netfs_node_refcnt_lock. * libnetfs/make-node.c: Initialize refcounts in refcounts_init. * libnetfs/netfs.h: Use refcounts_t for tracking node references. Remove netfs_node_refcnt_lock. Add netfs_nref_light,

[PATCH] Simpler lexer regexps of case insensitive keywords.

2016-03-19 Thread Flavio Cruz
* lexxer.l: Use (?i) for matching case insensitive keywords. * README: Fix typo. --- README | 2 +- lexxer.l | 100 +++ 2 files changed, 51 insertions(+), 51 deletions(-) diff --git a/README b/README index e4c0639..2c693d8 100644 ---

[PATCH] Replace Mach types with just POSIX types.

2016-03-19 Thread Flavio Cruz
* i386/i386/xen.h: Use uint64_t. * i386/include/mach/i386/machine_types.defs: Use uint32_t and int32_t. * i386/include/mach/i386/vm_types.h: Remove definitions of int*, uint*, unsigned* and signed* types. Define POSIX types such as int*_t and uint*_t. * i386/xen/xen.c: Use uint64_t. * include/devic

Re: [PATCH] Simpler lexer regexps of case insensitive keywords.

2016-03-19 Thread Samuel Thibault
Flavio Cruz, on Tue 15 Mar 2016 05:06:12 -0400, wrote: > * lexxer.l: Use (?i) for matching case insensitive keywords. > * README: Fix typo. Applied, thanks! > --- > README | 2 +- > lexxer.l | 100 > +++ > 2 files changed, 51 inser

Re: [PATCH] Remove functions, procedures and simple procedures.

2016-03-19 Thread Samuel Thibault
Hello, Flavio Cruz, on Tue 15 Mar 2016 05:31:41 -0400, wrote: > This has been tested by cross-compiling a base Hurd system to make sure > these kinds of routines are no longer used. What is the rationale for removing them? Will we never need them again? > * lexxer.l: Remove tokens. > * parser.y

Re: [PATCH] Use uint32_t instead of unsigned32_t.

2016-03-19 Thread Samuel Thibault
Hello, Flavio Cruz, on Tue 15 Mar 2016 05:48:48 -0400, wrote: > * utils.c: Generate code using uint32_t. How are we sure that stdint.h gets included? Samuel > --- > utils.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/utils.c b/utils.c > index 4c2a87b..ccde966 10064

Re: [PATCH] Use posix types for mig definitions.

2016-03-19 Thread Samuel Thibault
Flavio Cruz, on Tue 15 Mar 2016 05:49:51 -0400, wrote: > * hurd/hurd_types.defs: Use posix types. Here also, how do we make sure stdint.h gets included? > - unsigned32_t word; > +uint32_t word; Here also, breaking indentation. Samuel

Re: [PATCH] Replace Mach types with just POSIX types.

2016-03-19 Thread Samuel Thibault
Flavio Cruz, on Tue 15 Mar 2016 05:49:20 -0400, wrote: > -MACH_INLINE unsigned64_t hyp_cpu_clock(void) { > - unsigned64_t tsc; > +MACH_INLINE uint64_t hyp_cpu_clock(void) { > + uint64_t tsc; Take care of these which break the indentation. Samuel

[PATCH] Use posix types for mig definitions.

2016-03-19 Thread Flavio Cruz
* hurd/hurd_types.defs: Use posix types. * libfshelp/start-translator-long.c: Use uint32_t instead of unsigned32_t. --- hurd/hurd_types.defs | 20 ++-- libfshelp/start-translator-long.c | 3 ++- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/hurd/hur

Re: [PATCH] Remove functions, procedures and simple procedures.

2016-03-19 Thread Flávio Cruz
On 19 March 2016 at 12:35, Samuel Thibault wrote: > Hello, > > Flavio Cruz, on Tue 15 Mar 2016 05:31:41 -0400, wrote: > > This has been tested by cross-compiling a base Hurd system to make sure > > these kinds of routines are no longer used. > > What is the rationale for removing them? Will we n

Re: [PATCH] Use uint32_t instead of unsigned32_t.

2016-03-19 Thread Flávio Cruz
On 19 March 2016 at 12:39, Samuel Thibault wrote: > Hello, > > Flavio Cruz, on Tue 15 Mar 2016 05:48:48 -0400, wrote: > > * utils.c: Generate code using uint32_t. > > How are we sure that stdint.h gets included? > We already include mach/std_types.h in the stubs which provides uint32_t. > > Sa

[PATCH] Replace Mach types with POSIX types.

2016-03-19 Thread Flavio Cruz
* i386/i386/xen.h: Use uint64_t. * i386/include/mach/i386/machine_types.defs: Use uint32_t and int32_t. * i386/include/mach/i386/vm_types.h: Remove definitions of int*, uint*, unsigned* and signed* types. Define POSIX types such as int*_t and uint*_t. * i386/xen/xen.c: Use uint64_t. * include/devic

Re: [PATCH] Remove functions, procedures and simple procedures.

2016-03-19 Thread Samuel Thibault
Flávio Cruz, on Sat 19 Mar 2016 14:09:01 +0100, wrote: > I also don't think they are going to be used since procedures and functions > don't provide error codes during return and we can do everything with > simpleroutine and routine, which are superior alternatives. Ok. > Note that I've also cros

Re: [PATCH] Remove functions, procedures and simple procedures.

2016-03-19 Thread Samuel Thibault
Flavio Cruz, on Tue 15 Mar 2016 05:31:41 -0400, wrote: > This has been tested by cross-compiling a base Hurd system to make sure > these kinds of routines are no longer used. Applied, thanks! > * lexxer.l: Remove tokens. > * parser.y: Remove token types and production rules. > * routine.c: Remove

Re: [PATCH] Use uint32_t instead of unsigned32_t.

2016-03-19 Thread Samuel Thibault
Hello, Flávio Cruz, on Sat 19 Mar 2016 14:20:34 +0100, wrote: > We already include mach/std_types.h in the stubs which provides uint32_t. I guess you mean it includes vm_types.h which defines them. > diff --git a/i386/include/mach/i386/vm_types.h > b/i386/include/mach/i386/vm_types.h > index 4a

Re: dlerror sets errno to ENOSYS

2016-03-19 Thread Samuel Thibault
Diego Nieto Cid, on Tue 08 Mar 2016 17:18:56 -0300, wrote: > From the main function, the pthread implementation is called but > from libdl the implementation provided by libc is used. IIRC libdl uses its own separate mini-libc for its own use indeed. Samuel