Re: stat(x) & AT_NO_AUTOMOUNT

2020-11-28 Thread Pino Toscano
In data sabato 28 novembre 2020 20:02:52 CET, Samuel Thibault ha scritto: > Hello Pino, > > Pino Toscano, le sam. 28 nov. 2020 19:45:12 +0100, a ecrit: > > Can AT_NO_AUTOMOUNT be (easily) implemented in the hurd lookup bits? > > I would say that it simply maps to O_NOTRANS?

stat(x) & AT_NO_AUTOMOUNT

2020-11-28 Thread Pino Toscano
, -- Pino Toscano signature.asc Description: This is a digitally signed message part.

Re: RFC: [PATCH] Enable olddelta to be NULL in adjtime(3)

2016-08-30 Thread Pino Toscano
ome. You don't need to duplicate the whole __host_adjust_time call: struct timeval dummy; .. if (olddelta == NULL) olddelta = &dummy; should be enough. -- Pino Toscano

Re: GNUstep - check for reuse address

2016-01-08 Thread Pino Toscano
ts. IIRC it should unlink the existing socket path before trying to bind the unix socket to the specified path -- otherwise you'd get EADDRINUSE. -- Pino Toscano signature.asc Description: This is a digitally signed message part.

Re: Confusing definitions and declarations of mig_dealloc_reply_port()

2015-11-05 Thread Pino Toscano
y, any strong reason to not change mig?? > > > > Having to deal with the introduced incompatibility. > > Incompatibility with what, older versions of glibc/hurd/mach/mig, which > ones? If your suggestion is to remove the argument from __mig_dealloc_reply_port, that isn't an option, as it would be an ABI break in libc. -- Pino Toscano

Re: new hurd & gnumach packages

2015-07-05 Thread Pino Toscano
the same way. -- Pino Toscano

__libc_enable_secure & sgid to different own group

2015-06-27 Thread Pino Toscano
p11-kit should avoid using __libc_enable_secure for getauxval(AT_SECURE) b) the behaviour is wrong and should be fixed in Hurd ? Thanks, -- Pino Toscano signature.asc Description: This is a digitally signed message part.

Re: Conflicting ‘thread_info_t’ declaration between nscd and Mach

2014-06-21 Thread Pino Toscano
t; > -thread_info_t thread_info; > +struct thread_info thread_info; Or what about simply getting rid of thread_info_t struct and thread_info variable, since they don't seem to be used at all within nscd? (Of course, that would require testing also on Linux.) -- Pino Toscano

Re: [PATCH] sutils: add random device targets to MAKEDEV

2014-06-17 Thread Pino Toscano
nown locations on Linux distributions are: - /var/lib/random-seed (Fedora < F20, RHEL) - /var/lib/systemd/random-seed (Fedora F20+, recent systemd) - /var/lib/urandom/random-seed (Debian) - /var/lib/misc/random-seed (SuSE) (derivated distros are not included, but can be infered) -- Pino Toscano

Re: [PATCH] Implement /proc/slabinfo

2014-05-24 Thread Pino Toscano
un/slabinfo.git [...] + infos = malloc ((cache_info_count + 1) * sizeof *infos); + if (infos == NULL) + return ENOMEM; What about using FILE + open_memstream to ease the output? -- Pino Toscano Scopri istella, il nuovo motore per il web italiano. Istella garantisce risultati di qualità e la

Re: [PATCH 1/3] kern: implement task_set_name

2014-02-04 Thread Pino Toscano
task_get_name too, so we can implement pthread_{get,set}name_np in libpthread? Thanks! -- Pino Toscano

[PATCH] implement SO_ACCEPTCONN in pflocal

2013-09-07 Thread Pino Toscano
Hi, attached there is the (simple) implementation of the read-only SO_ACCEPTCONN socket option in pflocal. (pfinet could need it too, just need to dig into its Linux code more.) May I push it? Thanks, -- Pino Toscano>From 18d76905be35500afdb8ef47c1086f6376540da4 Mon Sep 17 00:00:00 2001 F

Re: [PATCH 3/8] initscripts: use pidof -s /sbin/init for robustness

2013-07-22 Thread Pino Toscano
into fuzzy search (which would find /hurd/init and /sbin/init). -- Pino Toscano signature.asc Description: This is a digitally signed message part.

Re: [PATCH 6/8] killall5.c: Use sysconf(_SC_SYMLOOP_MAX) instead of MAXSYMLINKS.

2013-07-22 Thread Pino Toscano
= 0) to MAXSYMLINKS if defined. -- Pino Toscano signature.asc Description: This is a digitally signed message part.

Re: [PATCH 8/8] sysvinit: Fix getty path in /etc/inittab on Hurd.

2013-07-22 Thread Pino Toscano
on could be get the md5sum of /etc/inittab, and compare it with the one of the current version (the one with old paths): if they match, then the user did not change it at all, and it can be just replaced; if does not match, either ask the user what to do, or simply move the old file as .dpkg-old and

Re: [PATCH 4/4] Serve mounts node with a passive translator record

2013-07-22 Thread Pino Toscano
= FALSE, > + MTAB_TRUE = TRUE, > + MTAB_UNINITIALIZED, > +}; > + > +static int > +rootdir_mounts_exists () parameter-less, so add void > +{ > + static enum mtab_translator_state state = MTAB_UNINITIALIZED; > + if (state == MTAB_UNINITIALIZED) > +state = access(MTAB_T

Re: [PATCH] procfs: Ignore arguments for compatibility with Linux' procfs.

2013-07-09 Thread Pino Toscano
Hi, Alle martedì 9 luglio 2013, Justus Winter ha scritto: > Ignore the --nodev, --noexec and --nosuid arguments. Why nodev? The only consumer of it seems to be sysvinit, which has been patched to not pass nodev also on Hurd (in addition to kFreeBSD) when mounting /proc. -- Pino Tosc

Re: [PATCH] Include the umount utility in hurd and hurd-udeb.

2013-07-09 Thread Pino Toscano
1,6 +51,7 @@ debian/tmp/bin/storeread > debian/tmp/bin/msgport > debian/tmp/bin/rpctrace > debian/tmp/bin/mount > +debian/tmp/bin/umount > debian/tmp/bin/gcore > debian/tmp/bin/fakeauth > debian/tmp/usr/bin/fakeroot-hurd That said, this seems fine, I've just applied it. -- Pino Toscano signature.asc Description: This is a digitally signed message part.

Re: [PATCH] swapon: add -e/--ifexists option

2013-06-24 Thread Pino Toscano
Hi, Alle sabato 28 gennaio 2012, Pino Toscano ha scritto: > I implemented in swapon the -e/--ifexists option close as to what's > in util-linux' swapon. It basically ignores unexisting devices/files > when doing `swapon -a`, i.e. only for the devices found in fstab > (not

Re: Imminent Debian GNU/Hurd release

2013-05-11 Thread Pino Toscano
> Additionally a lot of patches are pending (due to the long freeze > period) see e.g. > http://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=hurd;users=debian-h > u...@lists.debian.org so the percentage could be much higher. "a lot of patches" is surely not true (and we had the a similar amount also in non-freeze period), and a number of those won't give actually much. With the above changes and Michael Banck's note that it is a "Debian GNU/Hurd port release", it'd be good IMHO. -- Pino Toscano signature.asc Description: This is a digitally signed message part.

Re: [PATCH] libdiskfs: expose the ST_NOATIME flag

2013-05-10 Thread Pino Toscano
ntended to apply to a > variety of environments is just icky. Well, there are two cases only (at least for this flag): glibc >= 2.18 (not released yet) which has it, and glibc < 2.18 which doesn't. -- Pino Toscano signature.asc Description: This is a digitally signed message part.

[PATCH] libdiskfs: expose the ST_NOATIME flag

2013-05-10 Thread Pino Toscano
Hi, the attached patch makes use of the ST_NOATIME flag I just added in glibc for statvfs/fstatvfs, by making libdiskfs expose it if needed in its file_statfs implementation. (This will automatically cover ext2fs and tmpfs, for example). OK to push? -- Pino Toscano From

[PATCH,HURD] add ST_NOATIME

2013-05-09 Thread Pino Toscano
Hi, a simple patch to provide the GNU-specific ST_NOATIME flag for statvfs (which is already available on Linux). Once this patch is accepted, it will follow an Hurd patch to expose this attribute in libdiskfs-based translators (such as ext2fs and tmpfs). Thanks, -- Pino Toscano Hurd: add

Re: [patch] for mig check in GDB's configure

2013-05-03 Thread Pino Toscano
host_os}" in gnu*) # Needed for GNU/Hurd. AC_CHECK_TOOL(MIG, mig) if test "$MIG" = "" ; then AC_MSG_ERROR([no mig for use]) fi ;; esac that is, look for mig as mandatory only on Hurd, using a less-ambiguous variable as $host_os. -- Pino Toscano signature.asc Description: This is a digitally signed message part.

RFC: fuse-improvements libfuse branch

2013-03-24 Thread Pino Toscano
hanges above. I should have added useful/explaining comments in the various commits; my main concern is the various GNU changelog bits, which most probably need some through review. Comments, questions, etc are welcome. Thanks, -- Pino Toscano signature.asc Description: This is a digitally signed message part.

Re: git-new-workdir usage (was: [SCM] Web pages branch, master, updated. 7674ea1101a508e65b59b717d549c30b81c8a18e)

2013-03-19 Thread Pino Toscano
Alle martedì 19 marzo 2013, Thomas Schwinge ha scritto: > On Fri, 15 Mar 2013 22:39:07 +0000, Pino Toscano wrote: > > commit 7674ea1101a508e65b59b717d549c30b81c8a18e > > Author: Pino Toscano > > Date: Fri Mar 15 23:38:52 2013 +0100 > > > > more cha

[PATCH] unionfs: port to pthread, minor build fixes

2013-03-14 Thread Pino Toscano
;hurd", isn't it? Thanks, -- Pino Toscano From 1d14864c9908ffa9fafdd7b281fe90236c294d8e Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Thu, 14 Mar 2013 17:32:04 +0100 Subject: [PATCH] Switch from cthreads to pthreads Makefiles, headers, types, macros and function calls are renamed wh

[bug #32755] tmpfs crashes on filling an empty file

2013-03-03 Thread Pino Toscano
Update of bug #32755 (project hurd): Category:None => Hurd Servers Open/Closed:Open => Closed ___ Follow-up Comment #4: As per Maksym's commen

[bug #27184] Memory leak in procfs

2013-03-03 Thread Pino Toscano
Update of bug #27184 (project hurd): Status: Confirmed => Fixed Assigned to:None => jkoenig Open/Closed:Open => Closed _

Re: [PATCH] rpctrace: implement -E

2013-03-01 Thread Pino Toscano
Alle venerdì 1 marzo 2013, Samuel Thibault ha scritto: > Pino Toscano, le Fri 01 Mar 2013 16:27:03 +0100, a écrit : > > Side question: do we have git hooks to automatically close bugs and > > tasks with commits? > > I don't know. Hm ok. > > + newval

[PATCH] rpctrace: implement -E

2013-03-01 Thread Pino Toscano
? Thanks, -- Pino Toscano From 7c60857c44b0792a1a79ebd4fd07704c2a712609 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Fri, 1 Mar 2013 15:48:37 +0100 Subject: [PATCH] rpctrace: implement -E Add a -E option to rpctrace, much like its strace's equivalent, to add/change/unset environment vari

[PATCH] include or where needed

2013-02-25 Thread Pino Toscano
Hi, attached a small patch to include or in few places where they were needed, to fix the compilation warnings about lacks of prototypes. May I push it? -- Pino Toscano From e652274733eeba8a753623dc61bd781c35f93c93 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Mon, 25 Feb 2013 21:51

Re: [PATCH, HURD][RFC] hurdselect: Step7x, almost complete rewrite finished

2013-02-12 Thread Pino Toscano
Alle mercoledì 13 febbraio 2013, Svante Signell ha scritto: > On Wed, 2013-02-13 at 00:08 +0100, Pino Toscano wrote: > > Alle mercoledì 13 febbraio 2013, Svante Signell ha scritto: > > > On Tue, 2013-02-12 at 23:52 +0100, Pino Toscano wrote: > > > > Alle martedì 12 fe

Re: [PATCH, HURD][RFC] hurdselect: Step7x, almost complete rewrite finished

2013-02-12 Thread Pino Toscano
Alle mercoledì 13 febbraio 2013, Samuel Thibault ha scritto: > Pino Toscano, le Wed 13 Feb 2013 00:08:21 +0100, a écrit : > > Alle mercoledì 13 febbraio 2013, Svante Signell ha scritto: > > > On Tue, 2013-02-12 at 23:52 +0100, Pino Toscano wrote: > > > > Alle ma

Re: [PATCH, HURD][RFC] hurdselect: Step7x, almost complete rewrite finished

2013-02-12 Thread Pino Toscano
Alle mercoledì 13 febbraio 2013, Svante Signell ha scritto: > On Tue, 2013-02-12 at 23:52 +0100, Pino Toscano wrote: > > Alle martedì 12 febbraio 2013, Svante Signell ha scritto: > > > * change the FD_SETSIZE upper value check to larger than or > > > equal &g

Re: [PATCH, HURD][RFC] hurdselect: Step7x, almost complete rewrite finished

2013-02-12 Thread Pino Toscano
s, you need to allow FD_SETSIZE as maximum number of fd's.) Please remove this change, which is wrong. -- Pino Toscano signature.asc Description: This is a digitally signed message part.

Re: Guile not running properly on GNU/Hurd

2013-02-04 Thread Pino Toscano
se are probably not errors. > > Indeed, you need to let a couple of signals through: > > handle SIGPWR noprint nostop > handle SIGXCPU noprint nostop > > See ‘gdbinit’ in the Guile distro. You will need to make gdb ignore and let through SIGUSR1 and SIGUSR2, which ar

Re: [PATCH] simplify ulimit implementation

2013-01-23 Thread Pino Toscano
ally, do a commit removing the bsd file. Done, I think I should have done everything correctly. The addition of was needed on Hurd (I tested it before sending the first version of this ulimit rework) -- in any case, LONG_MAX is explicitly used, so that include is not wrong. Thanks, -- Pino Toscan

Re: [PATCH,HURD] hurdselect: Step1, code split preparations

2013-01-22 Thread Pino Toscano
Alle martedì 22 gennaio 2013, Svante Signell ha scritto: > On Tue, 2013-01-22 at 19:15 +0100, Pino Toscano wrote: > > Alle martedì 22 gennaio 2013, Svante Signell ha scritto: > > > Attached is the first patch for a 3-way split of hurdselect.c > > > into three

Re: [PATCH,HURD] hurdselect: Step1, code split preparations

2013-01-22 Thread Pino Toscano
d[i].ulink); if (d[i].io_port != MACH_PORT_NULL) > continue; > - } why is this check removed? When collecting inputs from poll, d[i].io_port is the fd passed, which has no guarantee to be lower than _hurd_dtablesize. -- Pino Toscano signature.asc Description: This is a digitally signed message part.

Re: [PATCH] simplify ulimit implementation

2013-01-15 Thread Pino Toscano
, the case for having it at all is > inordinately weak. OK. Attached there are the two patches of the ulimit reorganization, as you suggested in a previous email: 1) move the linux implementation as posix (including limits.h) 2) remove the bsd implementation Thanks, -- Pino Toscano ulimit: move lin

Re: [PATCH] procfs: simple implementation of statfs

2012-12-06 Thread Pino Toscano
Alle giovedì 6 dicembre 2012, Thomas Schwinge ha scritto: > Hi! > > On Thu, 6 Dec 2012 17:57:32 +0100, Pino Toscano wrote: > > Initial implementation of statfs reply, just returning the > > filesystem type and its id. > > > > * netfs.c: Include and . >

[PATCH] procfs: simple implementation of statfs

2012-12-06 Thread Pino Toscano
Hi, attached there is a small patch for procfs to implement statfs, returning only the two fields we can fill for sure. May I push it? Thanks, -- Pino Toscano From 1b7ad5c5d601b6388f0fc871b4fa42d231c05400 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Thu, 6 Dec 2012 17:51:58 +0100 Subject

Re: hurd-20120710 FTBFS due to missing dependencies

2012-11-26 Thread Pino Toscano
ig and > libx11-dev (neither was installed by apt-get build-dep hurd, or > build-essential or devscripts). Those have been added by Samuel in the packaging repository some time ago, and will be part of the next upload. -- Pino Toscano signature.asc Description: This is a digitally signed message part.

Re: [PATCH,HURD] hurd: compliance fixes for ptsname_r

2012-11-19 Thread Pino Toscano
ven the history, the least of > avaialble evils is to make the Hurd implementation consistent with > the others and do the check. (few months later... I forgot I sent this patch, so I'm bring it again.) I updated the patch; is it okay to commit, or should I bring back the buf==NULL check? -- Pi

Re: [PATCH,HURD] fix muntrace with mmap-less libio

2012-11-19 Thread Pino Toscano
of comment added. -- Pino Toscano muntrace: reset file and hooks before finalizing the stream fclose will call free, invoking its hook, then fprintf which would indirectly try to allocate a buffer, and this can cause malloc to be used (thus its hook to be invoked) if libio uses malloc instead o

Re: [PATCH,HURD] implement syncfs

2012-11-19 Thread Pino Toscano
Hi, Alle lunedì 19 novembre 2012, Pino Toscano ha scritto: > simple implementation of the Linux-ish syncfs on Hurd. Updated patch according to Roland's and Christoph's comments (thanks!) -- Pino Toscano Hurd: implement syncfs 2012-11-19 Pino Toscano * sysdeps/mach/hurd/syncf

Re: [PATCH] simplify ulimit implementation

2012-11-19 Thread Pino Toscano
t; Third commit: remove sysdeps/unix/bsd/ file. OK, I will split the commits once approved. -- Pino Toscano signature.asc Description: This is a digitally signed message part.

[PATCH,HURD] implement syncfs

2012-11-19 Thread Pino Toscano
Hi, simple implementation of the Linux-ish syncfs on Hurd. Thanks, -- Pino Toscano Hurd: implement syncfs 2012-11-19 Pino Toscano * sysdeps/mach/hurd/syncfs.c: New file. --- /dev/null +++ b/sysdeps/mach/hurd/syncfs.c @@ -0,0 +1,33 @@ +/* Copyright (C) 2012 Free Software Foundation, Inc

Re: [PATCH,HURD] fix muntrace with mmap-less libio

2012-11-18 Thread Pino Toscano
Hi, (bug-hurd only for this) Alle sabato 17 novembre 2012, Pino Toscano ha scritto: > Ignoring the fact that in libio mmap is not used on Hurd (it will > need a different fix), This has been reported by Thomas Schwinge one year ago: http://thread.gmane.org/87mx

[PATCH] simplify ulimit implementation

2012-11-18 Thread Pino Toscano
this be considered acceptable? Thanks, -- Pino Toscano Simplify ulimit implementations The ulimit implementation in sysdeps/unix/bsd/ulimit.c produces wrong return values, while sysdeps/unix/sysv/linux/ulimit.c is generally better. Thus, copy the latter into a more general sysdeps/unix/ulimit.c

[PATCH,HURD] fix muntrace with mmap-less libio

2012-11-17 Thread Pino Toscano
y after that close the file. Thanks, -- Pino Toscano #0 0x0106281c in swtch_pri () at /build/buildd-eglibc_2.13-36-hurd-i386-IvO_gk/eglibc-2.13/build-tree/hurd-i386-libc/mach/swtch_pri.S:2 #1 0x010640a4 in __spin_lock_solid (lock=0x11ded74) at spin-solid.c:27 #2 0x0106429d in __mutex_lock_sol

[PATCH,HURD] ignore Mach kernel headers in check-local-headers.sh

2012-11-16 Thread Pino Toscano
Hi, the attached patch makes check-local-headers.sh ignore headers from the "mach" subdirectory, since they the Mach kernel headers used to build glibc on Hurd. Thanks, -- Pino Toscano check-local-headers: ignore Mach kernel headers 2012-11-16 Pino Toscano * scripts/c

[PATCH] libpthread: fix compatibility as addon with glibc 2.16

2012-11-16 Thread Pino Toscano
with glibc < 2.16. Also, I'm slightly in doubt about the ChangeLog snippet, not totally sure about how to write it properly in this case. -- Pino Toscano From 64d00b6482f03f7dfb6f3d4775a9bf44e53cec63 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Fri, 16 Nov 2012 15:04:29 +0100 Subjec

Re: [PATCH.HURD] fix fdatasync/fsync if file_sync is not supported

2012-10-29 Thread Pino Toscano
SIX.1 specifies EINVAL for a file descriptor on which > sync is not supported. Attached an updated patch to handle only EOPNOTSUPP, with comment added. Thanks, -- Pino Toscano Hurd: fix fdatasync/fsync if the fd does not support file_sync Handle the case of the fd port implementing a stub

Re: [PATCH.HURD] fix fdatasync/fsync if file_sync is not supported

2012-10-26 Thread Pino Toscano
e (i.e. pflocal), libtrivfs is used, EOPNOTSUPP is > returned, right? The run above would have fsync() set errno = -303, MIG_BAD_ID. -- Pino Toscano signature.asc Description: This is a digitally signed message part.

Re: [PATCH,HURD] ptrace: use __hurd_fail for EOPNOTSUPP

2012-10-24 Thread Pino Toscano
Alle mercoledì 29 agosto 2012, Pino Toscano ha scritto: > attached there is a minor patch to fix the return values of > unimplemented cases, i.e. using __hurd_fail to set EOPNOTSUPP > properly. Ping. -- Pino Toscano signature.asc Description: This is a digitally signed message part.

Re: [PATCH.HURD] fix fdatasync/fsync if file_sync is not supported

2012-10-24 Thread Pino Toscano
Alle mercoledì 29 agosto 2012, Pino Toscano ha scritto: > Hurd's implementations of fdatasync and fsync do not take into > account the fact that file_sync could not be implemented in the > receiving port, or implemented as stub, returning (E)MIG_BAD_ID or > EOPNOTSUPP. Attached th

RFC: filesystem-specific pathconf replies

2012-10-04 Thread Pino Toscano
binary compatibility, and a filesystem providing such diskfs_pathconf implementation should run fine even with an older libdisks (but I did not test this case). What do you think about this solution? -- Pino Toscano --- a/libdiskfs/diskfs.h +++ b/libdiskfs/diskfs.h @@ -553,6 +553,9

Re: [PATCH] diskfs/pathconf: handle _PC_2_SYMLINKS

2012-10-04 Thread Pino Toscano
nly fatfs, IIRC) do not support symlinks. I've reverted the commit, and going to propose a better (I hope) solution for this. Thanks, -- Pino Toscano signature.asc Description: This is a digitally signed message part.

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

2012-10-04 Thread Pino Toscano
Alle mercoledì 3 ottobre 2012, Thomas Schwinge ha scritto: > Hi! > > On Wed, 3 Oct 2012 17:50:38 +0200, Pino Toscano wrote: > > Alle martedì 2 ottobre 2012, Thomas Schwinge ha scritto: > > > On Mon, 1 Oct 2012 19:59:35 +0200, Pino Toscano > > > > wrote: &g

Re: [PATCH,HURD] getconf: fix the value of _CS_PATH

2012-10-03 Thread Pino Toscano
Hi, Alle lunedì 1 ottobre 2012, Andreas Jaeger ha scritto: > On Sunday, September 30, 2012 17:53:33 Pino Toscano wrote: > > attached there is a patch to add a custom version (copied from the > > unix sysdep) of confstr.h, to avoid using the bsd header which adds > > a n

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

2012-10-03 Thread Pino Toscano
Alle martedì 2 ottobre 2012, Thomas Schwinge ha scritto: > Hi! > > On Mon, 1 Oct 2012 19:59:35 +0200, Pino Toscano wrote: > > Alle giovedì 27 settembre 2012, Thomas Schwinge ha scritto: > > > On Mon, 24 Sep 2012 02:04:05 +0200, Guillem Jover > > > > wrote:

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

2012-10-01 Thread Pino Toscano
Hi, Alle giovedì 27 settembre 2012, Thomas Schwinge ha scritto: > On Mon, 24 Sep 2012 02:04:05 +0200, Guillem Jover wrote: > > On Mon, 2012-09-24 at 00:30:39 +0200, Pino Toscano wrote: > > > Alle lunedì 24 settembre 2012, Thomas Schwinge ha scritto: > > > > On M

[PATCH] libpthread: make use of the "pthread" sysdep

2012-09-30 Thread Pino Toscano
Hi, The following two patches allow to a) make use of the "pthread" glibc sysdep, which provides implementation for some functions using pthreads (e.g. aio stuff) b) hook the libpthread version inside glibc, so it is properly returned by confstr. -- Pino To

[PATCH,HURD] getconf: fix the value of _CS_PATH

2012-09-30 Thread Pino Toscano
Hi, attached there is a patch to add a custom version (copied from the unix sysdep) of confstr.h, to avoid using the bsd header which adds a non- existing /usr/ucb. Thanks, -- Pino Toscano Hurd: fix the _CS_PATH getconf value Copy sysdeps/unix/confstr.h to avoid using sysdeps/unix/bsd

[PATCH] diskfs/pathconf: handle _PC_2_SYMLINKS

2012-09-30 Thread Pino Toscano
Hi, attached there is a simple patch to make (f)pathconf(path, _PC_2_SYMLINKS) working for libdiskfs-based translators, properly indicating whether the FS supports symlinks. Thanks, -- Pino Toscano From edbb0cc20709e0599e1490b81aa1841114f3f0bc Mon Sep 17 00:00:00 2001 From: Pino Toscano Date

Re: [PATCH,HURD] mknod: allow to create also sockets

2012-09-28 Thread Pino Toscano
Alle venerdì 28 settembre 2012, Roland McGrath ha scritto: > That change looks fine if the test still passes on Linux. It does on Linux/x86_64, so I pushed it. Thanks for the reviews, -- Pino Toscano signature.asc Description: This is a digitally signed message part.

Re: [PATCH,HURD] mknod: allow to create also sockets

2012-09-28 Thread Pino Toscano
gle socket. > > I think the intent of the change is to test the mknodat interface, > not any particular kind of node. Just change the test to create a > FIFO instead. Right, patch attached. -- Pino Toscano tst-mknodat: create a FIFO instead of a socket A FIFO is the only special fi

Re: [PATCH,HURD] mknod: allow to create also sockets

2012-09-28 Thread Pino Toscano
ince all it does is testing the creation of a single socket. -- Pino Toscano signature.asc Description: This is a digitally signed message part.

[PATCH,HURD] mknod: allow to create also sockets

2012-09-28 Thread Pino Toscano
umber provided. Thanks, -- Pino Toscano Hurd: mknodat: create also sockets 2012-09-28 Pino Toscano * sysdeps/mach/hurd/xmknodat.c: Allow to create sockets. Simplify the check for translators needing the device number. --- a/sysdeps/mach/hurd/xmknodat.c +++ b/sysdeps/mach/hurd/xmknodat.c @@

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

2012-09-23 Thread Pino Toscano
Hi, Alle lunedì 24 settembre 2012, Thomas Schwinge ha scritto: > Generally OK, but two comments: > > On Mon, 24 Sep 2012 00:04:20 +0200, Pino Toscano wrote: > > Subject: [PATCH] configure: add --with-version-suffix=STRING > > > > Add the possibility to append a c

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

2012-09-23 Thread Pino Toscano
le of months.) Thanks, -- Pino Toscano From 399f9112f763c095abe44567135307c554746e9e Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Sun, 23 Sep 2012 23:53:00 +0200 Subject: [PATCH] configure: add --with-version-suffix=STRING Add the possibility to append a custom string to the gnumach version s

Re: qoth 2012 q1/q2, preliminary

2012-09-20 Thread Pino Toscano
> (http://lists.gnu.org/archive/html/bug-hurd/2012-03/msg00013.html) > and [made console-run resilient against missing /dev/console] > (http://lists.gnu.org/archive/html/bug-hurd/2012-03/msg2.html), > improving the overall reliability of the system. Not sure how they "improve

lookup behaviour with root directory

2012-09-16 Thread Pino Toscano
places. Otherwise, I'm not yet sure how fix the lookup glibc functions. As I said, I'm pretty new to the involved parts (lookup stuff), so if you have more ideas I will hear them. -- Pino Toscano signature.asc Description: This is a digitally signed message part.

[PATCH] libpthread: pthread_create: turn ENOMEM to EAGAIN

2012-09-15 Thread Pino Toscano
Hi, it seems that in some occasions (i.e on malloc failure) pthread_create can return ENOMEM, which is not a valid POSIX error number. Attached there is a patch for libpthread to normalize ENOMEM to EAGAIN. Thanks, -- Pino Toscano From 2ee7e1e143784452ef325a0c80c106e972a3ffdc Mon Sep 17 00:00

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

2012-09-10 Thread Pino Toscano
Alle lunedì 10 settembre 2012, Samuel Thibault ha scritto: > Pino Toscano, le Mon 10 Sep 2012 17:31:32 +0200, a écrit : > > Alle domenica 9 settembre 2012, Samuel Thibault ha scritto: > > > Pino Toscano, le Fri 07 Sep 2012 20:02:56 +0200, a écrit : > > > > +static i

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

2012-09-10 Thread Pino Toscano
Alle domenica 9 settembre 2012, Samuel Thibault ha scritto: > 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 != &#x

[PATCH] tmp: add --size to set the maximum size

2012-09-07 Thread Pino Toscano
, -- Pino Toscano From a35bd267aba2954df85ee3403981395bf8c9e736 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Fri, 7 Sep 2012 18:21:00 +0200 Subject: [PATCH 1/2] tmpfs: extract size string parsing in an own function * tmpfs/tmpfs.c (parse_opt_size): New function, broken out of ... (parse_opt

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

2012-09-07 Thread Pino Toscano
Hi, attached there is a new patch for procfs to improve again the file name in stat/status files for PIDs. Basically, it just considers only the first word in case the process name has more (e.g. when it changed its own). Thanks, -- Pino Toscano From ebf2b049ea6963026766763df1697467f5806327

[PATCH,HURD] ptrace: use __hurd_fail for EOPNOTSUPP

2012-08-29 Thread Pino Toscano
Hi, attached there is a minor patch to fix the return values of unimplemented cases, i.e. using __hurd_fail to set EOPNOTSUPP properly. Thanks, -- Pino Toscano Hurd: ptrace: use __hurd_fail for EOPNOTSUPP 2012-08-29 Pino Toscano * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to

[PATCH.HURD] fix fdatasync/fsync if file_sync is not supported

2012-08-29 Thread Pino Toscano
POSIX. Thanks, -- Pino Toscano Hurd: fix fdatasync/fsync if the fd does not support file_sync Handle the case of the fd port not implementing file_sync (returning MIG_BAD_ID) or implementing a stub (EOPNOTSUPP), properly returning EINVAL. 2012-08-29 Pino Toscano * sysdeps/mach/hurd/fdatasync.c: Tur

[PATCH] generic empty __check_native implementation

2012-07-26 Thread Pino Toscano
a1_native and a2_native). Does it look good? -- Pino Toscano Provide a generic empty version of __check_native. Add an empty implementation of __check_native, as used in the posix version of getaddrinfo. This allows non-Linux GNU-based OSes to compile. 2012-07-26 Pino Toscano * inet

Re: [PATCH,HURD] implement renameat

2012-07-26 Thread Pino Toscano
second. > > Otherwise that looks fine, so go ahead and commit it with that > change. Ok, I will do. Thanks, -- Pino Toscano signature.asc Description: This is a digitally signed message part.

[PATCH,HURD] implement renameat

2012-07-25 Thread Pino Toscano
Hi, the attached patch implements renameat for Hurd; it seems to work fine, and tst-renameat now passes. The copyright starts from the year of the rename implementation, as I basically copied it and slightly adapted to the "at" behaviour. Thanks, -- Pino Toscano Hurd: implemen

Re: [PATCH,HURD] sendto: do not crash when addr is NULL

2012-07-20 Thread Pino Toscano
Hi, Alle mercoledì 13 giugno 2012, Pino Toscano ha scritto: > Alle martedì 12 giugno 2012, Roland McGrath ha scritto: > > That's almost right, but you should avoid calling > > __mach_port_deallocate if APORT is MACH_PORT_NULL. Also, avoid > > shadowing the local variabl

[PATCH,HURD] comment out PF_LINK/AF_LINK

2012-06-22 Thread Pino Toscano
attached patch comments them out (instead of removing them, to keep their placeholders). Thanks, -- Pino Toscano Hurd: comment PF_LINK/AF_LINK defines Comment out the PF_LINK and AF_LINK defines, since they are usually associated with struct sockaddr_dl, which is not available on Hurd. 2012-06

AF_LINK and sockaddr_dl

2012-06-20 Thread Pino Toscano
F_LINK/AF_LINK defines be the right solution? -- Pino Toscano signature.asc Description: This is a digitally signed message part.

[PATCH,HURD] llistxattr + lremovexattr

2012-06-13 Thread Pino Toscano
Hi, two simple patches to implement llistxattr and lremovexattr the same way respectively listxattr and removexattr are implemented, just passing O_NOLINK. This way all the *xattr functions are implemented, at least to use the internal _hurd_xattr_*. Thanks, -- Pino Toscano Hurd: provide

Re: [PATCH,HURD] sendto: do not crash when addr is NULL

2012-06-13 Thread Pino Toscano
aw other cases of shadowing by internal subroutines, and assumed it was okay (since inside them you want to refer to the local "err" instead of the outermost one. Thanks for the further review, patch attached. (I would use the non-ChangeLog lines of the patch header as commit log, would that

Re: [PATCH,HURD] sendto: do not crash when addr is NULL

2012-06-07 Thread Pino Toscano
> structure and port are kept alive around the AF_LOCAL case's calls, > but that seems OK. Done. Updated patch attached. -- Pino Toscano Hurd: sendto: do not crash when ADDR is NULL Create a new create_address_port subroutine to isolate the address port creation (for both local and

[PATCH,HURD] sendto: do not crash when addr is NULL

2012-05-20 Thread Pino Toscano
Hi, currently, sendto() crashes when the specified addr is NULL; the attached patch fixes it making sendto() with NULL addr behave as it would be a plain send(). Thanks, -- Pino Toscano Hurd: sendto: do not crash when addr is NULL Work also when the specified addr is NULL; simplify also the

[PATCH,HURD] mach: compliance fixes for nanosleep

2012-04-28 Thread Pino Toscano
Hi, attached there is a patch to make Mach's nanosleep() (used by Hurd) a bit more POSIX compliant: * check for validity of the `requested_time' parameter * return EINTR when interrupted * modify correctly the `remaining' parameter only when interrupted Thanks, -- Pino Toscano m

Re: [PATCH,HURD] nanosleep: check for invalid parameter values

2012-04-28 Thread Pino Toscano
Alle sabato 10 dicembre 2011, Pino Toscano ha scritto: > attached there is a patch to add some validation for parameters of > Mach's nanosleep() (used by Hurd). Disregard this patch -- I'll send a better one with more fixes for nanosleep. -- Pino Toscano signature.asc Descri

Re: [PATCH,HURD] hurd: compliance fixes for ptsname_r

2012-04-28 Thread Pino Toscano
tsname_r(fd, NULL, 0) would be properly failing with EINVAL (and the man page even explicitly mention that return value, unlike with basically most of the other functions). Should gnulib do that check only on Linux, then? Attached the updated patch, also with the hits of the other reviews. Thanks

Re: [PATCH,HURD] hurd: compliance fixes for getlogin_r

2012-04-28 Thread Pino Toscano
sarily catch it > anyway. If you want that sort of paranoia, use __strnlen (login, > sizeof login - 1). > > If you've already called strlen/strnlen then don't use strncpy, > just use memcpy with the known length. Fixed. Attached there is the updated patch. -- Pino Tosc

Re: [PATCH,HURD] hurd: compliance fixes for getgroups

2012-04-28 Thread Pino Toscano
Alle venerdì 27 aprile 2012, Roland McGrath ha scritto: > > 2012-04-27 Pino Toscano > > > > * sysdeps/mach/hurd/getgroups.c (__getgroups): Return -1 and set > > EINVAL for negative `n' or less than `ngids'. > > The norm is to use all caps

[PATCH,HURD] hurd: compliance fixes for ptsname_r

2012-04-27 Thread Pino Toscano
Hi, attached there is a patch to fix few issues in Hurd's ptsname_r(), mostly checking for more error conditions and making sure to set as errno and return the proper values on error conditions. Thanks, -- Pino Toscano hurd: compliance fixes for ptsname_r ptsname_r on failure return

[PATCH,HURD] hurd: compliance fixes for getlogin_r

2012-04-27 Thread Pino Toscano
Hi, attached there is a patch to fix few issues in Hurd's getlogin_r(): avoid a static buffer, and check for buffer shorter than necessary. Thanks, -- Pino Toscano hurd: compliance fixes for getlogin_r * do not make `login' static, as it would make getlogin_r no more reentrant *

[PATCH,HURD] hurd: compliance fixes for getgroups

2012-04-27 Thread Pino Toscano
of failing). Thanks, -- Pino Toscano hurd: compliance fixes for getgroups Fail with EINVAL when the requested number of groups is negative, or when it is positive but less than the actual number of groups. 2012-04-27 Pino Toscano * sysdeps/mach/hurd/getgroups.c (__getgroups): Return -1 and set

  1   2   >