From hurd-bug Tue Feb 04 11:57:15 2014 From: Pino Toscano Date: Tue, 04 Feb 2014 11:57:15 +0000 To: hurd-bug Subject: Re: [PATCH 1/3] kern: implement task_set_name Message-Id: <278327636.vnhPgcS7fO () dhcp130-204 ! brq ! redhat ! com> X-MARC-Message: https://marc.info/?l=hurd-bug&m=139151508206200 On Tuesday 04 February 2014 11:01:52 Justus Winter wrote: > /* > + * task_set_name > + * > + * Set the name of task TASK to NAME. This is a debugging aid. > + * NAME will be used in error messages printed by the kernel. > + */ > +kern_return_t > +task_set_name( > + task_t task, > + kernel_debug_name_t name) > +{ > + strncpy(task->name, name, sizeof task->name - 1); > + task->name[sizeof task->name - 1] = '\0'; > + return KERN_SUCCESS; > +} Would it be possible to add task_get_name too, so we can implement pthread_{get,set}name_np in libpthread? Thanks! -- Pino Toscano