GNU/Hurd support for testing on CI systems

2024-07-17 Thread Guillem Jover
Hi! I recently found about https://vmactions.org/, which makes it possible to add GitHub CI jobs for multiple operating systems besides the stock ones provided there. After having added that for dpkg for several of those OSes, I then failed to test the last release on GNU/Hurd, perhaps relying on

Re: [PATCH] Use $(CC) instead of gcc to avoid relying on the host gcc.

2023-01-30 Thread Guillem Jover
On Mon, 2023-01-30 at 12:43:09 +0300, Sergey Bugaev wrote: > it would be nicer if you explicitly specified what source tree this > patch is for, for instance: [PATCH glibc] or [PATCH gnumach] instead > of just [PATCH]. (There is the --subject-prefix option in git > format-patch for this.) Right, a

Re: [PATCH 05/12] linux: Reduce worst case wait to 10 seconds for disks

2022-10-25 Thread Guillem Jover
Hi! On Tue, 2022-10-25 at 10:55:56 +, Damien Zammit wrote: > --- > linux/src/drivers/block/ide.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/linux/src/drivers/block/ide.h b/linux/src/drivers/block/ide.h > index 28e371bf..7630be2c 100644 > --- a/linux/src/drivers/

Re: [PATCH v2] pfinet: Add SIOCADDRT and SIOCDELRT equivalent iioctls

2022-08-28 Thread Guillem Jover
Hi! On Sun, 2022-08-28 at 06:41:21 +, Damien Zammit wrote: > diff --git a/hurd/ioctl_types.h b/hurd/ioctl_types.h > index 8baa36040..c4132a613 100644 > --- a/hurd/ioctl_types.h > +++ b/hurd/ioctl_types.h > @@ -30,4 +30,6 @@ typedef struct winsize winsize_t; > typedef struct sockaddr sockaddr_

Re: ifconfig: command not found

2020-07-26 Thread Guillem Jover
#219280, #219904, #222348) - debian/rules: Renamed the ifconfig binary to not collide with net-tool's ifconfig. [guillem] - debian/control (inetutils-tools): Temporarily disable net-tools Provides, untill we have a working ifconfig/route. [rmh] Change the package descrip

Re: [PATCH] pci-arbiter: Remove embedded pciaccess code

2019-11-09 Thread Guillem Jover
Hi! [ BTW it seems like something on the gnu.org side is mandling UTF-8 characters? :/ ] On Sat, 2019-11-09 at 11:54:15 +0100, Samuel Thibault wrote: > Joan Lledó via Bug reports for the GNU Hurd, le sam. 09 nov. 2019 10:50:18 > +0100, a ecrit: > > And, about pciutils, what did you do? > >

Re: Implementing getrandom/getentropy, anybody?

2019-10-31 Thread Guillem Jover
Hi! On Tue, 2019-10-29 at 23:28:26 -0500, Andrew Eggenberger wrote: > --- /dev/null > +++ b/sysdeps/mach/hurd/getrandom.c > +/* Write up to LENGTH bytes of randomness starting at BUFFER. > + Return the number of bytes written, or -1 on error. */ > +ssize_t > +getrandom (void *buffer, size_t le

Re: PCI Arbiter status

2019-09-03 Thread Guillem Jover
Hi! On Tue, 2019-09-03 at 22:10:38 +0200, Joan Lledó wrote: > 4- About pciutils, is something ours in upstream? Damien, did you send > patches to pciutils? FWIW, I'm happy to carry Hurd-specific patches in pcutils in Debian as long as they have not yet been merged upstream. Thanks, Guillem

Re: Enable SMP support

2018-11-17 Thread Guillem Jover
Hi! On Wed, 2018-07-04 at 21:14:59 +0200, Almudena Garcia wrote: > I'm trying to develop intel_startCPU function, using the function of this > file as base code > https://github.com/nneonneo/osx-10.9-opensource/blob/master/xnu-2422.1.72/osfmk/i386/mp.c Please check the license terms of XNU, becau

Re: [PATCH] build: Distribute tarball compressed with xz instead of bzip2

2018-11-06 Thread Guillem Jover
Hi! On Tue, 2018-11-06 at 10:47:02 +0100, Thomas Schwinge wrote: > On Tue, 6 Nov 2018 02:47:53 +0100, Guillem Jover wrote: > > * Makefile (dist): Change bz2 to xz. > > (%.xz): Add target. > > (%.bz2): Remove target. > > Curious: why a) use "xz" instead of wh

[PATCH gnumach] build: Distribute tarball compressed with xz instead of bzip2

2018-11-05 Thread Guillem Jover
* configure.ac (AM_INIT_AUTOMAKE): Change dist-bzip2 to dist-xz. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 1164b27e..d4daa932 100644 --- a/configure.ac +++ b/configure.ac @@ -25,7 +25,7 @@ AC_CONFIG_AUX_DIR([build-aux])

[PATCH mig] build: Distribute tarball compressed with xz instead of bzip2

2018-11-05 Thread Guillem Jover
* configure.ac (AM_INIT_AUTOMAKE): Change dist-bzip2 to dist-xz. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 14dc291..d992264 100644 --- a/configure.ac +++ b/configure.ac @@ -13,7 +13,7 @@ AC_ARG_PROGRAM AM_INIT_AUTOMAKE

[PATCH] build: Distribute tarball compressed with xz instead of bzip2

2018-11-05 Thread Guillem Jover
* Makefile (dist): Change bz2 to xz. (%.xz): Add target. (%.bz2): Remove target. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c0aa59a0e..6288a1573 100644 --- a/Makefile +++ b/Makefile @@ -83,7 +83,7 @@ dist-version := $(shell cd $

Re: PATCH: Hurd FTBFS with perl 5.22

2016-01-05 Thread Guillem Jover
On Tue, 2016-01-05 at 06:56:37 +0100, Svante Signell wrote: > BTW: Why does Hurd contain such crappy dependencies such as perl. This comment seems unnecessarily abrasive and out of place… > Is this part of upstream or Debian specific? The Debian package does not > have it: > apt-cache showsrc hu

Re: [PATCH glibc] Add file record locking support

2015-01-08 Thread Guillem Jover
On Thu, 2015-01-08 at 18:03:31 +0100, Svante Signell wrote: > On Thu, 2015-01-08 at 16:56 +0100, Guillem Jover wrote: > > On Thu, 2015-01-08 at 12:40:12 +0100, Svante Signell wrote: > > > Index: glibc-2.19/sysdeps

Re: [PATCH glibc] Add file record locking support

2015-01-08 Thread Guillem Jover
On Thu, 2015-01-08 at 12:40:12 +0100, Svante Signell wrote: > Index: glibc-2.19/sysdeps/mach/hurd/fcntl.c > === > --- glibc-2.19.orig/sysdeps/mach/hurd/fcntl.c > +++ glibc-2.19/sysdeps/mach/hurd/fcntl.c > @@ -128,56 +127,87 @@ __libc_f

Re: [PATCH] Update NEWS file

2014-09-24 Thread Guillem Jover
Hi! Might I suggest that people tweak their repos so that we get more meaningful subject lines on «git format-patch», these three were quite confusing at first. Something like the following per repo? $ git config format.subjectprefix 'PATCH gnumach' Thanks, Guillem

Re: [PATCH] mig: Drop the Perl runtime dependency

2014-07-22 Thread Guillem Jover
Hi! On Tue, 2014-07-22 at 15:12:55 +0200, Thomas Schwinge wrote: > On Fri, 18 Jul 2014 19:29:07 -0400, David Michael > wrote: > > I tried running mig on a system without Perl ealier with bad results. > > Perl seems to be used only for functionality that is also provided by > > GNU coreutils (whi

Re: [PATCH 2/5] ddb/db_sym.c: move assignment outside if

2013-11-22 Thread Guillem Jover
On Thu, 2013-11-21 at 13:11:05 +0100, Marin Ramesa wrote: > diff --git a/ddb/db_sym.c b/ddb/db_sym.c > index 0819e08..359ec7c 100644 > --- a/ddb/db_sym.c > +++ b/ddb/db_sym.c > @@ -276,7 +276,9 @@ db_name_is_ambiguous(sym_name) > > for (i = 0; i < db_nsymtab; i++) { > db_sym_t

Re: [PATCH 3/7] ddb: create new header file db_mp.h

2013-11-22 Thread Guillem Jover
On Fri, 2013-11-22 at 18:30:36 +0100, Marin Ramesa wrote: > diff --git a/ddb/db_mp.c b/ddb/db_mp.c > index 831381f..81a567a 100644 > --- a/ddb/db_mp.c > +++ b/ddb/db_mp.c > @@ -56,11 +57,6 @@ intdb_slave[NCPUS] = { 0 };/* nonzero if > cpu interrupted > > int db_enter_debug = 0;

Re: [PATCH 1/7] ddb/db_mp.c: include kd.h for kdb_kintr()

2013-11-22 Thread Guillem Jover
On Fri, 2013-11-22 at 18:30:34 +0100, Marin Ramesa wrote: > diff --git a/ddb/db_mp.c b/ddb/db_mp.c > index 3ab00ce..831381f 100644 > --- a/ddb/db_mp.c > +++ b/ddb/db_mp.c > @@ -36,6 +36,8 @@ > > #include > > +#include > + > #include > #include I don't think it's appropriate to include s

Re: [PATCH 03/19] Fix call of function with qualified void return type

2013-11-20 Thread Guillem Jover
On Wed, 2013-11-20 at 21:33:54 +0100, Marin Ramesa wrote: > On 20.11.2013 21:18:14, Guillem Jover wrote: > > > diff --git a/i386/i386/setjmp.h b/i386/i386/setjmp.h > > > index 667eecf..08626e3 100644 > > > --- a/i386/i386/setjmp.h > > > +++ b/i386/i386/s

Re: [PATCH 09/19] ddb/db_run.c: move declaration of brpc into SOFTWARE_SSTEP

2013-11-20 Thread Guillem Jover
On Wed, 2013-11-20 at 21:48:14 +0100, Samuel Thibault wrote: > Guillem Jover, le Wed 20 Nov 2013 21:09:08 +0100, a écrit : > > > #ifdef SOFTWARE_SSTEP > > > + db_addr_t brpc; > > > /* Account for instructions in delay slots */ > > >

Re: [PATCH 18/19] i386/i386/db_interface.c: add forward declaration

2013-11-20 Thread Guillem Jover
On Wed, 2013-11-20 at 13:54:00 +0100, Marin Ramesa wrote: > diff --git a/i386/i386/db_interface.c b/i386/i386/db_interface.c > index f89576d..8282b0f 100644 > --- a/i386/i386/db_interface.c > +++ b/i386/i386/db_interface.c > @@ -228,6 +228,8 @@ kdbprinttrap(type, code) > extern jmp_buf_t *db_recov

Re: [PATCH 17/19] i386/i386at/kd.c: add forward declaration

2013-11-20 Thread Guillem Jover
On Wed, 2013-11-20 at 13:53:59 +0100, Marin Ramesa wrote: > diff --git a/i386/i386at/kd.c b/i386/i386at/kd.c > index 3890c3d..a5dff3c 100644 > --- a/i386/i386at/kd.c > +++ b/i386/i386at/kd.c > @@ -965,6 +965,9 @@ boolean_t up; > return(state); > } > > +#if MACH_KDB > +extern void kdb_kintr

Re: [PATCH 10/19] ddb/db_sym.c: add parentheses around assignment used as truth value

2013-11-20 Thread Guillem Jover
On Wed, 2013-11-20 at 13:53:52 +0100, Marin Ramesa wrote: > diff --git a/ddb/db_sym.c b/ddb/db_sym.c > index 98f265e..dad0ead 100644 > --- a/ddb/db_sym.c > +++ b/ddb/db_sym.c > @@ -276,7 +276,7 @@ db_name_is_ambiguous(sym_name) > > for (i = 0; i < db_nsymtab; i++) { > db_sym_t

Re: [PATCH 05/19] ddb/db_expr.h: remove (db_addr_t *) argument name

2013-11-20 Thread Guillem Jover
On Wed, 2013-11-20 at 13:53:47 +0100, Marin Ramesa wrote: > * ddb/db_expr.h (db_expression): Remove (db_addr_t *) argument name. Do you mean db_expr_t? > --- > ddb/db_expr.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/ddb/db_expr.h b/ddb/db_expr.h > index 989b66b..6

Re: [PATCH 03/19] Fix call of function with qualified void return type

2013-11-20 Thread Guillem Jover
On Wed, 2013-11-20 at 13:53:45 +0100, Marin Ramesa wrote: > * ddb/db_command.c [DB_MACHINE_COMMANDS]: Add comment after endif. > * i386/i386/setjmp.h (_longjmp): Comment out __volatile__. (This patch seems to mix two unrelated changes, at least from the patch description PoV.) > diff --git a/i386

Re: [PATCH 09/19] ddb/db_run.c: move declaration of brpc into SOFTWARE_SSTEP

2013-11-20 Thread Guillem Jover
Hi! On Wed, 2013-11-20 at 13:53:51 +0100, Marin Ramesa wrote: > diff --git a/ddb/db_run.c b/ddb/db_run.c > index 22cd358..60b34bf 100644 > --- a/ddb/db_run.c > +++ b/ddb/db_run.c > @@ -171,7 +171,7 @@ db_restart_at_pc(watchpt, task) > boolean_t watchpt; > task_ttask; > { > - d

Re: Removal of register qualifiers from kern source

2013-11-16 Thread Guillem Jover
Hi! On Tue, 2013-11-12 at 15:47:00 +0100, Marin Ramesa wrote: > Attached is a gzipped series of 32 patches which remove register > qualifiers from kern source. I did not want to spam the list with 32 > patches, so I'm sending them as an attachment. Personally I find tarred patch series annoying

Re: Disabling -pie when linking?

2013-01-29 Thread Guillem Jover
On Tue, 2013-01-29 at 12:25:22 +0100, Samuel Thibault wrote: > Guillem Jover, le Tue 29 Jan 2013 10:22:53 +0100, a écrit : > > On Tue, 2013-01-29 at 07:36:53 +0100, Svante Signell wrote: > > > On Tue, 2013-01-29 at 00:13 +0100, Samuel Thibault wrote: > > > > Svante

Re: Disabling -pie when linking?

2013-01-29 Thread Guillem Jover
On Tue, 2013-01-29 at 07:36:53 +0100, Svante Signell wrote: > On Tue, 2013-01-29 at 00:13 +0100, Samuel Thibault wrote: > > Svante Signell, le Sun 20 Jan 2013 18:18:16 +0100, a écrit : > > > A recent problem popping up is that executables using the -pie flag when > > > linking segfaults when starti

Re: Problem with MergeList...

2012-11-24 Thread Guillem Jover
On Sat, 2012-11-24 at 17:58:53 +, Jose Luis Alarcon Sanchez wrote: > > E: Could not get lock /var/lib/dpkg/lock - open (1073741859: Resource > > temporarily unavailable) > > E: Unable to lock the administration directory (/var/lib/dpkg/), is another > > process using it? > > Any fix for this,

Re: Checks for getcwd(NULL, 0) and get_current_dir_name()

2012-10-20 Thread Guillem Jover
On Sat, 2012-10-20 at 10:21:03 -0700, Roland McGrath wrote: > Not that it matters for choosing a feature macro name. The best > names for such things are purely descriptive rather than referring > to a system by name anyway. i.e., HAVE_GETCWD_NULL_MALLOCS or > suchlike. Ah, even better, true. t

Re: Checks for getcwd(NULL, 0) and get_current_dir_name()

2012-10-19 Thread Guillem Jover
On Fri, 2012-10-19 at 08:55:57 +0200, Svante Signell wrote: > On Wed, 2012-10-17 at 17:42 +0200, Svante Signell wrote: > > > On Wed, 2012-10-17 at 16:15 +0200, Guillem Jover wrote: > > > AC_DEFINE([HAVE_GNU_GETCWD], [1], > > > [Define to 1 if you ha

Re: [PATCH] gnumach: configure: add --with-version-suffix=STRING

2012-09-23 Thread Guillem Jover
On Mon, 2012-09-24 at 00:30:39 +0200, Pino Toscano wrote: > Alle lunedì 24 settembre 2012, Thomas Schwinge ha scritto: > > On Mon, 24 Sep 2012 00:04:20 +0200, Pino Toscano wrote: > > > +# An optional suffix for the version string. > > > +AC_MSG_CHECKING([for the suffix for the version string]) > >

Re: [PATCH] procfs: another fix for the process file name in stat/status

2012-09-08 Thread Guillem Jover
On Sun, 2012-09-09 at 00:22:11 +0200, Samuel Thibault wrote: > Pino Toscano, le Fri 07 Sep 2012 20:02:56 +0200, a écrit : > > +static int args_filename_length (const char *name) > > +{ > > + const char *p = name; > > + while (*p != '\0' && *p != ' ') > > +++p; > > Why not using index(name, '

[PATCH mig] Fix format string build failure with _FORTIFY_SOURCE=2

2012-07-01 Thread Guillem Jover
* parser.y (yyerror): Use a format string instead of directly passing the argument to error. --- parser.y |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser.y b/parser.y index cc149da..ade56be 100644 --- a/parser.y +++ b/parser.y @@ -131,7 +131,7 @@ static const char *im

Re: Releasing GNU Mach & MIG?

2012-06-30 Thread Guillem Jover
Hi! On Fri, 2012-06-22 at 10:47:20 +0200, Guillem Jover wrote: > Could we get MiG 1.3.2 released at least? There's some pending changes in > the Debian packaging I'd like to upload before the freeze (on 2012-06-30), > but I'd rather avoid having to prepare a snapshot fro

Re: Releasing GNU Mach & MIG?

2012-06-22 Thread Guillem Jover
Hi! On Mon, 2012-04-09 at 00:16:51 +0200, Thomas Schwinge wrote: > On Sat, 07 Apr 2012 11:52:52 +0200, l...@gnu.org (Ludovic > =?iso-8859-1?Q?Court=E8s?=) wrote: > > along with MIG 1.4? > > I thought 1.3.2, > . > I'm happy to do

Re: [PATCH gnumach] Inline version.m4 into configure.ac

2011-11-20 Thread Guillem Jover
On Sun, 2011-11-20 at 10:18:42 +0100, Thomas Schwinge wrote: > How does this work if a new release is to be made? I first have to tag > the Git tree to get a proper version number, I guess? But it's not too > much of a problem, as the tag can stay local (and be modified further on, > if it was ta

Re: [PATCH gnumach] Inline version.m4 into configure.ac

2011-11-11 Thread Guillem Jover
On Thu, 2011-11-10 at 12:02:38 +0100, Thomas Schwinge wrote: > On Thu, 10 Nov 2011 04:49:25 +0100, Guillem Jover wrote: > > I introduced that file because at the time the source tree had multiple > > configure.in, so sharing the definitions seemed saner. But then this > > c

[PATCH gnumach] Inline version.m4 into configure.ac

2011-11-09 Thread Guillem Jover
umach does not have any tags right now :). There's such a script in gnulib (git-version-gen) that could be used, if GPL3+ would be an issue I implemented a similar one but GPL2+ for dpkg (get-version) some time ago. thanks, guillem >From 2ed11129b7253525911f7d2e68a20157d86a2a6d Mon Sep 17 00:00:00 20

Re: Porting uptimed: Usage of daemon and replacement of NOFILE

2011-11-03 Thread Guillem Jover
Hi! On Tue, 2011-11-01 at 23:25:13 +0100, Svante Signell wrote: > On Tue, 2011-11-01 at 22:30 +0100, Guillem Jover wrote: > > and then use HAVE_GETDTABLESIZE. Also if there's no limit (-1) it's a > > bit harsh to exit(1). I'd code this for example like: >

Re: Porting uptimed: Usage of daemon and replacement of NOFILE

2011-11-01 Thread Guillem Jover
On Tue, 2011-11-01 at 15:57:53 +0100, Svante Signell wrote: > Updated code snippet below, OK? > > void bg(void) > { > int i, fdmax; [...] > /* Close probably all file descriptors */ > #ifdef __USE_BSD > if ((fdmax = getdtablesize()) == -1) exit(1); > #else > if ((fd

Re: Porting uptimed: Usage of daemon and replacement of NOFILE

2011-11-01 Thread Guillem Jover
On Tue, 2011-11-01 at 11:49:48 +0100, Svante Signell wrote: > In package uptimed-0.3.16 the following function is defined: > void bg(void) > { [...] > /* Close probably all file descriptors */ > for (i = 0; i close(i); [...] > } > Two questions arrives after discuss

Re: Degradation of GNU/Hurd ``system performance''

2011-09-22 Thread Guillem Jover
On Thu, 2011-09-22 at 04:45:55 +0200, olafbuddenha...@gmx.net wrote: > On Mon, Sep 05, 2011 at 06:42:22AM +0200, olafbuddenha...@gmx.net wrote: > > As recently I aquired the (bad) habit of running my system 24/7, > > almost never voluntarily rebooting, I was able to make further > > observations. >

Re: How to enable a SCSI CD-ROM ?

2011-09-15 Thread Guillem Jover
t not that specific one. I've made it recognize it and set the PCI command bit, but it issues wrong I/O operations on the controller, so something else is bogus. I'm not sure I'll have time to dig further, so anyone feel free to take it from here. Preliminary patch attached. regards, gui

[PATCH gnumach] Do not take unused strpbrk() from libc

2011-09-08 Thread Guillem Jover
* Makefile.am (clib_routines): Remove strpbrk. --- Makefile.am |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile.am b/Makefile.am index 56db9e9..0c98bfd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -157,7 +157,7 @@ noinst_PROGRAMS += \ # This is the list of rou

[PATCH gnumach] Remove unused [!MACH_KERNEL] driver code

2011-09-08 Thread Guillem Jover
Use «unifdef -DMACK_KERNEL=1» as a starting point, but only remove the code not exposed on public headers, the rest is needed to build properly from userland. * device/cons.c [!MACH_KERNEL]: Remove includes. [!MACH_KERNEL] (constty): Remove variable. (cninit, cnmaygetc) [MACH_KERNEL]: Remove prepr

Re: Interface for SCSI transactions ?

2011-09-08 Thread Guillem Jover
On Fri, 2011-09-09 at 00:51:40 +0200, olafbuddenha...@gmx.net wrote: > On Wed, Sep 07, 2011 at 07:15:52PM +0200, Thomas Schmitt wrote: > > $ git clone git.savannah.gnu.org:/srv/git/hurd/gnumach.git > > Cloning into gnumach... > > The authenticity of host 'git.savannah.gnu.org (140.186.70.72)'

Re: Build improvements and warning fixes

2011-09-06 Thread Guillem Jover
On Tue, 2011-09-06 at 13:23:41 +0200, Thomas Schwinge wrote: > On Thu, 25 Aug 2011 15:22:23 +0200, Guillem Jover wrote: > > [PATCH 01/17] Add a .gitignore file > > [PATCH 02/17] Enable silent builds by default if available > > > > I'm resending these two, as they

Re: [PATCH gnumach 1/3] Use Mach native error codes instead of POSIX errno E* ones

2011-09-05 Thread Guillem Jover
On Tue, 2011-09-06 at 01:04:02 +0200, Thomas Schwinge wrote: > On Thu, 1 Sep 2011 20:24:56 +0200, Guillem Jover wrote: > > * device/errno.h: Remove file. > > [...] > > > diff --git a/i386/i386at/kd_mouse.c b/i386/i386at/kd_mouse.c > > index 640209c..770a3f

[PATCH gnumach 3/3] Remove long obsolete RPC routines

2011-09-01 Thread Guillem Jover
* kern/compat_xxx_defs.h: Remove file. * Makefrag.am (libkernel_a_SOURCES): Remove `kern/compat_xxx_defs.h'. * include/mach/mach_types.defs (xxx_emulation_vector_t): Remove type. * device/device.srv: Do not simport . * kern/mach.srv: Likewise. * kern/mach_host.srv: Likewise. * include/device/dev

[PATCH gnumach 2/3] Do not remap errno codes from E* to LINUX_E*

2011-09-01 Thread Guillem Jover
Mach no longer uses any of the old and clashing errno E* codes, so it's safe to use them now w/o namespacing. This also means one less modification needed to the Linux code. * linux/dev/include/asm-i386/errno.h: Remove file. * linux/dev/kernel/dma.c (notifier_chain_unregister) [MACH_INCLUDE]: Remo

[PATCH gnumach 0/3] Obsolete code removal

2011-09-01 Thread Guillem Jover
Hi! This one finishes the Mach transition from error codes to native ones, which allows to use unmodified Linux errno codes for its sources. It also removes long obsolete and now unused RPCs. Guillem Jover (3): Use Mach native error codes instead of POSIX errno E* ones Do not remap errno

[PATCH gnumach 1/3] Use Mach native error codes instead of POSIX errno E* ones

2011-09-01 Thread Guillem Jover
* device/errno.h: Remove file. * Makefrag.am (libkernel_a_SOURCES): Remove `device/errno.h'. * i386/i386at/com.c: Include instead of . (comopen): Replace ENXIO with D_NO_SUCH_DEVICE. * i386/i386at/kd_event.c: Include instead of . * i386/i386at/kd_mouse.c: Likewise. (mouseopen): Replace ENODEV wit

[PATCH gnumach 6/6] Change argument name to match function body usage

2011-09-01 Thread Guillem Jover
Otherwise the function wrongly uses the global symbol. * linux/src/drivers/scsi/ppa.c (ppa_nibble_in): Rename `str_p' argument to `base'. --- linux/src/drivers/scsi/ppa.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux/src/drivers/scsi/ppa.c b/linux/src/drivers/scs

[PATCH gnumach 1/6] Add missing headers

2011-09-01 Thread Guillem Jover
* linux/dev/init/main.c: Include . * linux/dev/kernel/printk.c: Include . --- linux/dev/init/main.c |1 + linux/dev/kernel/printk.c |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/linux/dev/init/main.c b/linux/dev/init/main.c index 3a88983..f5c4832 100644 --- a/lin

[PATCH gnumach 2/6] Add vsnprintf prototype

2011-09-01 Thread Guillem Jover
* kern/printf.h (vsnprintf): New prototype. --- kern/printf.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/kern/printf.h b/kern/printf.h index c5effe5..2268111 100644 --- a/kern/printf.h +++ b/kern/printf.h @@ -40,6 +40,7 @@ extern void printnum (unsigned long u, int ba

[PATCH gnumach 3/6] Cast addr argument to vm_offset_t

2011-09-01 Thread Guillem Jover
* linux/dev/glue/kmem.c (vfree): Cast `addr' argument on kfree_mem function to vm_offset_t. --- linux/dev/glue/kmem.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux/dev/glue/kmem.c b/linux/dev/glue/kmem.c index d1784a5..367895b 100644 --- a/linux/dev/glue/kmem.c ++

[PATCH gnumach 5/6] Disable set but unused variable

2011-09-01 Thread Guillem Jover
* linux/src/drivers/scsi/gdth.c (gdth_detect): Conditionalize `b' on [LINUX_VERSION_CODE < 0x02]. Do not preset it to 0, it's initialized later on when needed. --- linux/src/drivers/scsi/gdth.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/linux/src/drivers/scsi/

[PATCH gnumach 0/6] Third round of warning fixes

2011-09-01 Thread Guillem Jover
Guillem Jover (6): Add missing headers Add vsnprintf prototype Cast addr argument to vm_offset_t Remove set but unused variables Disable set but unused variable Change argument name to match function body usage kern/printf.h|1 + linux/dev/drivers/block

[PATCH gnumach 4/6] Remove set but unused variables

2011-09-01 Thread Guillem Jover
* linux/dev/drivers/block/floppy.c (setup_rw_floppy): Remove `dflags'. (floppy_eject): Remove `dummy'. * linux/src/drivers/net/8390.c (ethdev_init): Remove `ei_local'. * linux/src/drivers/scsi/ppa.c (ppa_detect): Remove `ppb'. --- linux/dev/drivers/block/floppy.c |6 ++ linux/src/drivers/n

Re: Git write access for Guillem?

2011-08-31 Thread Guillem Jover
Hi! On Wed, 2011-08-31 at 12:53:56 +0200, Samuel Thibault wrote: > Thomas Schwinge, le Wed 31 Aug 2011 12:49:40 +0200, a écrit : > > Samuel has recently applied (thanks!) a ton of patches by/for Guillem > > (thanks!); I'd be happy to allow Guillem to do the Git pushes himself > > (after posting th

[PATCH gnumach 06/16] Add missing headers

2011-08-29 Thread Guillem Jover
* device/dev_pager.c: Include . * linux/pcmcia-cs/glue/wireless_glue.h: Include . --- device/dev_pager.c |1 + linux/pcmcia-cs/glue/wireless_glue.h |2 ++ 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/device/dev_pager.c b/device/dev_pager.c index 224be85.

[PATCH gnumach 04/16] Cast host_get_time() arguments to fix warnings

2011-08-29 Thread Guillem Jover
* linux/dev/glue/misc.c (do_gettimeofday): Cast arguments to `host_get_time'. --- linux/dev/glue/misc.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/linux/dev/glue/misc.c b/linux/dev/glue/misc.c index d8ca3c2..a994cc6 100644 --- a/linux/dev/glue/misc.c +++ b/linux

[PATCH gnumach 09/16] Remove unused and non-functional string specialization header

2011-08-29 Thread Guillem Jover
* linux/src/include/asm-i386/string-486.h: Remove. --- linux/src/include/asm-i386/string-486.h | 702 --- 1 files changed, 0 insertions(+), 702 deletions(-) delete mode 100644 linux/src/include/asm-i386/string-486.h diff --git a/linux/src/include/asm-i386/string-486.

[PATCH gnumach 00/16] Another round of warning fixes

2011-08-29 Thread Guillem Jover
linux drivers code. Guillem Jover (16): Move Linux module macros to their original header Return a value on non-void function Cast function timeout() argument to fix a warning Cast host_get_time() arguments to fix warnings Remove unused variable Add missing headers Add

[PATCH gnumach 10/16] Import Linux 3.1 ctype code

2011-08-29 Thread Guillem Jover
* linux/src/include/linux/ctype.h: Update file. * linux/src/lib/ctype.c: Likewise. --- linux/src/include/linux/ctype.h | 70 +++--- linux/src/lib/ctype.c | 54 +++--- 2 files changed, 77 insertions(+), 47 deletions(-) diff --gi

[PATCH mig 0/2] Build infrastructure improvements

2011-08-29 Thread Guillem Jover
Guillem Jover (2): Add a .gitignore file Add silent rules support if available and disable it by default .gitignore | 17 + Makefile.am | 10 +++--- configure.ac |3 +++ 3 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 .gitignore

[PATCH mig 2/2] Add silent rules support if available and disable it by default

2011-08-29 Thread Guillem Jover
* configure.ac (AM_SILENT_RULES): Add silent rules support if available, and disable it by default. * Makefile.am (AWK_V, AWK_V_, AWK_V_0): New variables. (.sym.symc): Use AWK_V in front of AWK. (.symc.symo): Use AM_V_CC in front of TARGET_CC. (.symo.h): Use AM_V_GEN in front of sed. --- Makefil

[PATCH mig 1/2] Add a .gitignore file

2011-08-29 Thread Guillem Jover
* .gitignore: New file. --- .gitignore | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 000..3d15b10 --- /dev/null +++ b/.gitignore @@ -0,0 +1,17 @@ +.deps/ +*.o +INSTALL

[PATCH gnumach 02/16] Return a value on non-void function

2011-08-29 Thread Guillem Jover
* i386/i386at/com.c (comcnprobe, comcninit, comcnputc): Return 0. --- i386/i386at/com.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/i386/i386at/com.c b/i386/i386at/com.c index f6d5656..90cfbb6 100644 --- a/i386/i386at/com.c +++ b/i386/i386at/com.c @@ -215,6 +215,8

[PATCH gnumach 16/16] Fix undefined operation on assigning self pre-incremented variable

2011-08-29 Thread Guillem Jover
* linux/src/drivers/scsi/wd7000.c (mail_out): Add `1' instead of pre-incrementing self assigned variable. * linux/src/drivers/net/de4x5.c (de4x5_sw_reset, de4x5_queue_pkt, de4x5_rx) (de4x5_tx, de4x5_rx_ovfc, set_multicast_list, ping_media, mii_get_phy) (de4x5_ioctl): Likewise. * linux/src/drivers/n

[PATCH gnumach 15/16] Honour type promotion on variable argument handling

2011-08-29 Thread Guillem Jover
* linux/dev/lib/vsprintf.c (linux_vsprintf): Use `int' when retrieving a `short' through `va_arg'. --- linux/dev/lib/vsprintf.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux/dev/lib/vsprintf.c b/linux/dev/lib/vsprintf.c index 0beb747..541ec65 100644 --- a/linux/

[PATCH gnumach 11/16] Import Linux 3.1 compiler definitions

2011-08-29 Thread Guillem Jover
* linux/src/include/linux/compiler.h: New file. * linux/src/include/linux/compiler-gcc.h: Likewise. * linux/src/include/linux/compiler-gcc3.h: Likewise. * linux/src/include/linux/compiler-gcc4.h: Likewise. * linux/dev/include/linux/kernel.h (barrier): Remove definition and include instead. --- li

[PATCH gnumach 07/16] Add linux_timer_intr function declaration

2011-08-29 Thread Guillem Jover
* i386/i386/hardclock.c [LINUX_DEV] (linux_timer_intr): New prototype. --- i386/i386/hardclock.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/i386/i386/hardclock.c b/i386/i386/hardclock.c index a8846b9..c97feac 100644 --- a/i386/i386/hardclock.c +++ b/i386/i386/hardc

[PATCH gnumach 05/16] Remove unused variable

2011-08-29 Thread Guillem Jover
* i386/i386at/rtc.c (rtc): Remove variable. --- i386/i386at/rtc.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/i386/i386at/rtc.c b/i386/i386at/rtc.c index e0a03de..77a83e8 100644 --- a/i386/i386at/rtc.c +++ b/i386/i386at/rtc.c @@ -53,7 +53,6 @@ WITH THE USE OR PERFORMAN

[PATCH gnumach 12/16] Move from linux/pcmcia-cs to linux/src

2011-08-29 Thread Guillem Jover
* linux/pcmcia-cs/include/linux/init.h: Move to ... * linux/src/include/linux/init.h: ... here. --- linux/pcmcia-cs/include/linux/init.h | 22 -- linux/src/include/linux/init.h | 22 ++ 2 files changed, 22 insertions(+), 22 deletions(-) delete mod

[PATCH gnumach 08/16] Fix memcmp prototype

2011-08-29 Thread Guillem Jover
* include/string.h (memcmp): Remove bogus `*' from return type. --- include/string.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/string.h b/include/string.h index 8059bed..c77d387 100644 --- a/include/string.h +++ b/include/string.h @@ -32,7 +32,7 @@ extern vo

[PATCH gnumach 14/16] Correct MiG Mach types to fix compilation warnings

2011-08-29 Thread Guillem Jover
* include/mach/mach_types.defs (thread_info_t): Change from array of natural_t to integer_t. (task_info_t): Likewise. (host_info_t): Likewise. (processor_info_t): Likewise. (processor_set_info_t): Likewise. --- include/mach/mach_types.defs | 10 +- 1 files changed, 5 insertions(+), 5 del

[PATCH gnumach 03/16] Cast function timeout() argument to fix a warning

2011-08-29 Thread Guillem Jover
* kern/mach_clock.h (timer_func_t): New function type. (struct timer_elt): Change fcn type to timer_func_t. * i386/i386at/com.c (comstart): Cast `ttrstrt' to `timer_funct_t *' in `timeout' call. * i386/i386at/lpr.c (lprstart): Likewise, --- i386/i386at/com.c |2 +- i386/i386at/lpr.c |2 +-

[PATCH gnumach 01/16] Move Linux module macros to their original header

2011-08-29 Thread Guillem Jover
* linux/pcmcia-cs/glue/wireless_glue.h (EXPORT_SYMBOL) (SET_MODULE_OWNER): Move to ... * linux/src/include/linux/module.h [!MODULE]: ... here. --- linux/pcmcia-cs/glue/wireless_glue.h |9 - linux/src/include/linux/module.h |3 +++ 2 files changed, 3 insertions(+), 9 deletions(-

[PATCH gnumach 13/16] Denote __exit symbols as used

2011-08-29 Thread Guillem Jover
* linux/src/include/linux/init.h: Include . (__exitused): New macro. (__exit): Define to ` __exitused __cold notrace'. * linux/src/include/linux/kcomp.h (__exit): Remove. --- linux/src/include/linux/init.h | 10 +- linux/src/include/linux/kcomp.h |2 -- 2 files changed, 9 insertions

[PATCH v2 15/17] Move cdrom_sleep() definition to its original source file

2011-08-29 Thread Guillem Jover
* linux/dev/kernel/sched.c (cdrom_sleep): Move to ... * linux/src/drivers/block/ide-cd.c [MACH]: ... here, make it static. Include . --- linux/dev/kernel/sched.c | 10 -- linux/src/drivers/block/ide-cd.c | 17 +++-- 2 files changed, 15 insertions(+), 12 deletions(-)

Re: [PATCH 15/17] Move cdrom_sleep() definition where it belongs

2011-08-29 Thread Guillem Jover
On Sat, 2011-08-27 at 00:53:41 +0200, Samuel Thibault wrote: > Guillem Jover, le Thu 25 Aug 2011 15:22:38 +0200, a écrit : > > * linux/dev/kernel/sched.c (cdrom_sleep): Move to ... > > * linux/src/drivers/block/ide-cd.c: ... here, replace [!MACH] > > definition, and remove

[PATCH v2 02/17] Add silent rules support if available and disable it by default

2011-08-29 Thread Guillem Jover
* configure.ac (AM_SILENT_RULES): Add silent rules support if available, and disable it by default. * Makefile.am (AWK_V, AWK_V_, AWK_V_0): New variables. (NM_V, NM_V_, NM_V_0): Likewise. (GZIP_V, GZIP_V_, GZIP_V_0): Likewise. (MIGCOM_V, MIGCOM_V_, MIGCOM_V_0): Likewise. (gnumach-undef): Use NM_V i

Re: [PATCH 02/17] Enable silent builds by default if available

2011-08-29 Thread Guillem Jover
On Thu, 2011-08-25 at 09:46:00 -0700, Roland McGrath wrote: > So-called "silent" builds are a pox upon debuggability and should never be > the default. I agree silent rules should never be enabled for automated builds, for example on the Debian packaging, because that makes the build logs mostly u

Re: Host settings for GNU in configure*?

2011-08-25 Thread Guillem Jover
On Thu, 2011-08-25 at 15:07:47 +0200, Samuel Thibault wrote: > grep -- --build /usr/bin/dh_* > > has at least > > /usr/bin/dh_make: 'CROSS= --build $(DEB_BUILD_GNU_TYPE) > --host $(DEB_HOST_GNU_TYPE)'."\n". > > but what is your actual problem with it? This is coming from t

[PATCH 16/17] Always initialize A and X variables in BPF code

2011-08-25 Thread Guillem Jover
* device/net_io.c (bpf_do_filter): Remove lint conditional. --- device/net_io.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/device/net_io.c b/device/net_io.c index 1db9bca..8446395 100644 --- a/device/net_io.c +++ b/device/net_io.c @@ -1655,10 +1655,9 @@ bpf_do_filte

[PATCH 15/17] Move cdrom_sleep() definition where it belongs

2011-08-25 Thread Guillem Jover
* linux/dev/kernel/sched.c (cdrom_sleep): Move to ... * linux/src/drivers/block/ide-cd.c: ... here, replace [!MACH] definition, and remove conditionals. --- linux/dev/kernel/sched.c | 10 -- linux/src/drivers/block/ide-cd.c | 11 ++- 2 files changed, 6 insertions(+), 15

Build improvements and warning fixes

2011-08-25 Thread Guillem Jover
I've cleaned up some of the stuff I've had on my local tree for some time now. I'll try to clean up the rest. [PATCH 01/17] Add a .gitignore file [PATCH 02/17] Enable silent builds by default if available I'm resending these two, as they seem to have fallen through the cracks. [PATCH 03/17] Use

[PATCH 10/17] Remove ident tags producing preprocessor warnings

2011-08-25 Thread Guillem Jover
* linux/src/drivers/scsi/FlashPoint.c: Remove #ident tags. --- linux/src/drivers/scsi/FlashPoint.c | 15 ++- 1 files changed, 6 insertions(+), 9 deletions(-) diff --git a/linux/src/drivers/scsi/FlashPoint.c b/linux/src/drivers/scsi/FlashPoint.c index a74c3c5..aae35c0 100644 --- a/l

[PATCH 12/17] Disable unused variables

2011-08-25 Thread Guillem Jover
* i386/i386at/com.c (comstart): Disable `i' variable. * linux/src/drivers/net/at1700.c (net_close): Disable `lp' variable. * linux/dev/include/linux/blk.h (end_request): Disable `nsect' variable on MACH. --- i386/i386at/com.c |2 ++ linux/dev/include/linux/blk.h |2 ++ linux/

[PATCH 13/17] Match signedness of char pointer comparisons and assignments

2011-08-25 Thread Guillem Jover
* linux/dev/drivers/block/genhd.c (msdos_partition): Cast `data' assignment to `unsigned char *'. * linux/src/drivers/block/ide-cd.c (cdrom_queue_request_sense): Cast `buffer' assignment to `unsigned char *'. (cdrom_transfer_packet_command): Change `cmd_buf' argument type to `unsigned char *'. (cdr

[PATCH 11/17] Remove unused variables

2011-08-25 Thread Guillem Jover
* vm/memory_object_proxy.c (memory_object_create_proxy): Remove unused `kr' variable. * linux/dev/glue/block.c (free_buffer): Remove unused `i' variable. (register_blkdev): Remove unused `err' variable. (unregister_blkdev): Likewise. (bread): Likewise. (init_partition): Likewise. * linux/dev/glue/n

[PATCH 14/17] Fix initialization from incompatible pointer type

2011-08-25 Thread Guillem Jover
* linux/dev/glue/block.c (device_get_status): Cast `hg' to `unsigned long' in ioctl call. --- linux/dev/glue/block.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux/dev/glue/block.c b/linux/dev/glue/block.c index cec9687..f28644e 100644 --- a/linux/dev/glue/block.c

[PATCH 09/17] Add header for printf prototype

2011-08-25 Thread Guillem Jover
* vm/memory_object_proxy.c: Include . --- vm/memory_object_proxy.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/vm/memory_object_proxy.c b/vm/memory_object_proxy.c index 4d81a68..cfacca9 100644 --- a/vm/memory_object_proxy.c +++ b/vm/memory_object_proxy.c @@ -40,6 +40,7

[PATCH 07/17] Add prototype for log function

2011-08-25 Thread Guillem Jover
* kern/debug.h (log): New prototype. --- kern/debug.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/kern/debug.h b/kern/debug.h index f4e8200..e429bdd 100644 --- a/kern/debug.h +++ b/kern/debug.h @@ -57,6 +57,8 @@ #endif /* NDEBUG */ +extern void log (int level, co

  1   2   >