Re: should a copy_file_range(2) syscall be interrupted via a signal

2019-07-05 Thread Jilles Tjoelker
With this, the system call can be restarted automatically after a signal. In any case, [EINTR] and the internal ERESTART must not be returned unless it is safe to repeat the call with the same (direct) arguments. -- Jilles Tjoelker ___ fre

Re: A reliable port cross-build failure (hangup) in my context (amd64->armv7 cross build, with native-tool speedup involved)

2019-01-05 Thread Jilles Tjoelker
We should convert this to script generated code, > including guest syscalls definition. Definitions of system calls are in syscalls.master and should be automatically processable; definitions of types are in header files and cannot really be processed other than by a C compiler. > Agai

Re: FYI: devel/kyua 14 failures for head -r338518M based build in a Pine64+ 2GB (aarch64 / cortexA53 / A64) context

2018-09-16 Thread Jilles Tjoelker
On Sun, Sep 16, 2018 at 01:21:33PM -0700, Mark Millard wrote: > On 2018-Sep-16, at 10:50 AM, Jilles Tjoelker wrote: > > On another note, the comment just below that, > >/* But we need to zero-extend (char is unsigned) the value and then > > perform a sign

Re: FYI: devel/kyua 14 failures for head -r338518M based build in a Pine64+ 2GB (aarch64 / cortexA53 / A64) context

2018-09-16 Thread Jilles Tjoelker
rong reason for doing the right thing since memcmp (as well as strcmp and strncmp) are defined to compare based on unsigned chars, regardless of the signedness of char. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list https://lists.freebsd

Re: Getting PID of socket client

2017-07-09 Thread Jilles Tjoelker
tion of the future more secure world would be per-application UIDs a la Android. Another one would be Capsicum-sandboxed applications where applications receive their Wayland sockets pre-connected by code that tells the Wayland server the application identity. -- Jilles Tjoelker _

Re: Getting PID of socket client

2017-07-09 Thread Jilles Tjoelker
e this would allow another user to hold onto process slots for RLIMIT_NPROC. The only solution would be to add variants of the necessary calls that take a process descriptor instead of a process ID. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list

Re: 64-bit inodes (ino64) Status Update and Call for Testing

2017-05-21 Thread Jilles Tjoelker
On Sun, May 21, 2017 at 05:25:35PM +0300, Konstantin Belousov wrote: > On Sun, May 21, 2017 at 04:03:55PM +0200, Jilles Tjoelker wrote: > > On Sun, May 21, 2017 at 03:31:18PM +0300, Konstantin Belousov wrote: > > > On Sun, May 21, 2017 at 02:14:56PM +0200, Jilles Tjoelker wrot

Re: 64-bit inodes (ino64) Status Update and Call for Testing

2017-05-21 Thread Jilles Tjoelker
On Sun, May 21, 2017 at 03:31:18PM +0300, Konstantin Belousov wrote: > On Sun, May 21, 2017 at 02:14:56PM +0200, Jilles Tjoelker wrote: > > We have another type in this area which is too small in some situations: > > uint8_t for struct dirent.d_namlen. For filesystems that

Re: 64-bit inodes (ino64) Status Update and Call for Testing

2017-05-21 Thread Jilles Tjoelker
t applications using the deprecated readdir_r() will not be able to read such long names, since the API does not allow specifying that a larger buffer has been provided. (This could be avoided by making struct dirent.d_name 766 bytes long instead of 256.) Unfortunately, the existence of read

Re: r314708: panic: tdsendsignal: ksi on queue

2017-03-09 Thread Jilles Tjoelker
n this situation and document that reapers must use WAIT_ANY or P_ALL. (However, compared to the pre-r309886 situation they can still use SIGCHLD to get notified when to call waitpid() or similar.) -- Jilles Tjoelker ___ freebsd-current@freebsd.org mai

Re: Fix /etc/rc.d/random umask handling (/entropy permissions)

2017-01-23 Thread Jilles Tjoelker
On Mon, Jan 23, 2017 at 10:52:21AM -0800, Simon J. Gerraty wrote: > Jilles Tjoelker <jil...@stack.nl> wrote: > > Index: etc/rc.d/random > > === > > --- etc/rc.d/random (revision 311446) > >

Re: Fix /etc/rc.d/random umask handling (/entropy permissions)

2017-01-22 Thread Jilles Tjoelker
On Sun, Jan 22, 2017 at 01:22:07AM +, Lu Tung-Pin wrote: > On 2017-01-21 22:01, Jilles Tjoelker wrote: > > [Adding Cc: Dag-Erling Smørgrav who committed r273957 which seems to > > have introduced this] > > On Sat, Jan 21, 2017 at 01:21:42AM +, Lu Tung-Pin wrote: >

Re: Fix /etc/rc.d/random umask handling (/entropy permissions)

2017-01-21 Thread Jilles Tjoelker
fi + debug "saving entropy to $f" + dd if=/dev/random of="$f" bs=4096 count=1 status=none && + chmod 600 "$f" done + umask ${oumask} } feed_dev_random() -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: copyinstr and ENAMETOOLONG

2016-12-02 Thread Jilles Tjoelker
On Fri, Dec 02, 2016 at 10:20:32AM -0600, Eric van Gyzen wrote: > On 11/02/2016 15:33, Jilles Tjoelker wrote: > > On Wed, Nov 02, 2016 at 02:24:43PM -0500, Eric van Gyzen wrote: > >> Does copyinstr guarantee that it has filled the output buffer when it > >> returns E

Re: copyinstr and ENAMETOOLONG

2016-11-02 Thread Jilles Tjoelker
error = 0 if a truncated name is being set anyway. This preserves the property that the name remains unchanged if the call fails. A change to the man page thr_set_name(2) is needed in any case. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing

Re: Weirdness in TTY & VT

2016-09-08 Thread Jilles Tjoelker
eBSD. A (userland) dev_t is an opaque identifier. The direct equivalent is devname_r() or fdevname_r() followed by parsing the resulting string. There is also a VT_GETINDEX ioctl but I don't know whether it works. -- Jilles Tjoelker ___ freebsd-current@freebs

Re: PostgreSQL performance on FreeBSD

2016-06-23 Thread Jilles Tjoelker
ses less memory. It has been supported for a long time, at least since FreeBSD 9.0. Process-shared mutexes, condition variables, reader/writer locks, etc. are available in FreeBSD 11 but use more memory (a 1-page object per synchronization object), somewhat like named semaphores. --

Re: thread suspension when dumping core

2016-06-12 Thread Jilles Tjoelker
On Thu, Jun 09, 2016 at 07:34:55AM +0300, Konstantin Belousov wrote: > On Wed, Jun 08, 2016 at 11:17:44PM +0200, Jilles Tjoelker wrote: > > On Wed, Jun 08, 2016 at 04:56:35PM +0300, Konstantin Belousov wrote: > > > On Wed, Jun 08, 2016 at 06:35:08AM -0700, Mark Johnston wrote: &

Re: thread suspension when dumping core

2016-06-08 Thread Jilles Tjoelker
On Wed, Jun 08, 2016 at 04:56:35PM +0300, Konstantin Belousov wrote: > On Wed, Jun 08, 2016 at 06:35:08AM -0700, Mark Johnston wrote: > > On Wed, Jun 08, 2016 at 07:30:55AM +0300, Konstantin Belousov wrote: > > > On Tue, Jun 07, 2016 at 11:19:19PM +0200, Jilles Tjoelker wro

Re: thread suspension when dumping core

2016-06-07 Thread Jilles Tjoelker
On Tue, Jun 07, 2016 at 07:01:55PM +0300, Konstantin Belousov wrote: > On Tue, Jun 07, 2016 at 04:24:53PM +0200, Jilles Tjoelker wrote: > > On Tue, Jun 07, 2016 at 07:29:56AM +0300, Konstantin Belousov wrote: > > > This looks as if we should not ignore s

Re: thread suspension when dumping core

2016-06-07 Thread Jilles Tjoelker
ould fail with [ERESTART] only for stops, since [EINTR] should only be returned if a signal handler was called. There cannot be a signal handler since a SIGTSTP/SIGTTIN/SIGTTOU signal with a handler does not stop the process. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: sdhci_pci.ko fails to load

2016-03-20 Thread Jilles Tjoelker
I suspect this is caused by my r292180 back in December. I'm trying to > figure out if that's the case and if so, how to fix it. I think this is caused by the missing MODULE_DEPEND. The kernel linker only looks for symbols in the ELF objects containing the module itself and its

Re: Possible problem with the ${name}_chdir variable behaviour in /etc/c.subr

2016-03-20 Thread Jilles Tjoelker
low getting rid of sh -c, but would change the directory as root so permission problems with NAME_user would be detected later. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To

Re: buffer overflow warning in /bin/sh

2016-02-28 Thread Jilles Tjoelker
fd > Stack left redzone: f1 > Stack mid redzone: f2 > Stack right redzone: f3 > Stack partial redzone: f4 > Stack after return: f5 > Stack use after scope: f8 > Global redzone: f9 > Global init order: f6 > Poisoned

Re: Can't run `make universe` on universe11a.freebsd.org and ref11-amd64.freebsd.org (anymore); [shell] globbing is broken [there]

2016-01-05 Thread Jilles Tjoelker
Alternatively, the pattern could be rewritten to be locale-sensitive: [[:upper:][:digit:]]*[[:upper:][:digit:]] -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: /bin/ls formatting broken for non-C(?) locales

2015-11-20 Thread Jilles Tjoelker
: it calculates the maximum width of the abbreviated month names and pads to that (with a maximum of 5). In particular, this ensures that the output does not change for locales that have 3-character abbreviations, such as the POSIX locale. I think this is v

Re: futimens and utimensat vs birthtime

2015-08-16 Thread Jilles Tjoelker
. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: futimens and utimensat vs birthtime

2015-08-14 Thread Jilles Tjoelker
to set the birthtime forward is a feature. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: FreeBSD_HEAD-tests - Build #1262 - Still Unstable

2015-08-09 Thread Jilles Tjoelker
(inclusive). The higher sequences should be removed from the tests (or, even better, be expected to cause [EILSEQ]). I can provide a patch, but thought I'd explain the problem first. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http

Re: mergemaster failing with read-only /usr/src

2015-05-03 Thread Jilles Tjoelker
, this causes these tests to be built and installed as part of mergemaster/etcmerge, like other parts of etc. As a workaround you can do: echo make -C etc obj all | make buildenv on the build machine after make buildworld. Then mergemaster will work, even with a read-only /usr/obj. -- Jilles

Re: seekdir/readdir patch .. Call for Review.

2015-05-03 Thread Jilles Tjoelker
patch can conceptually work for what Samba needs, stepping back one directory entry. I will comment on it. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any

Re: readdir/telldir/seekdir problem (i think)

2015-04-24 Thread Jilles Tjoelker
not be returned, but Samba copes with that). -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: SSE in libthr

2015-03-27 Thread Jilles Tjoelker
. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: r279278 failed to build (yacc: maximum table size exceeded)

2015-02-27 Thread Jilles Tjoelker
utimensat/futimens without #ifdef mess or extra code in libegacy. The strict BOOTSTRAPPING conditionals allow removing bootstrap tools eventually, when building from such old versions as to need them is no longer supported. -- Jilles Tjoelker ___ freebsd

Re: svn commit: r267977 - head/bin/mv

2014-07-01 Thread Jilles Tjoelker
On Fri, Jun 27, 2014 at 04:06:53PM -0700, Xin Li wrote: [moving discussion to freebsd-current@] On 06/27/14 15:23, Jilles Tjoelker wrote: On Fri, Jun 27, 2014 at 07:57:54PM +, Xin LI wrote: Author: delphij Date: Fri Jun 27 19:57:54 2014 New Revision: 267977 URL: http

Re: Turning TESTS on by default

2014-06-06 Thread Jilles Tjoelker
Kyuafile.auto during buildworld, not installworld. This message includes patches, although they are a bit ugly. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe

Re: another Make (maybe) problem

2014-04-05 Thread Jilles Tjoelker
of a successful buildworld/installworld? (My version of /usr/src/share/mk/bsd.subdir.mk, r263778, has 118 lines/388 words/3377 characters.) These messages are harmless, but are fixed by r264167. The cause is pretty much expected: libnv was listed in SUBDIR twice. -- Jilles Tjoelker

Re: Hello fdclose

2014-03-18 Thread Jilles Tjoelker
from the new function. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: r263096 sparc64: casperd: Unable to receive message from client: Cannot allocate memory.

2014-03-14 Thread Jilles Tjoelker
nvlist_send function sends the given nvlist over the socket given by the .Fa sock -argument. +argument, +without generating +.Dv SIGPIPE . Note that nvlist that contains file descriptors can only be send over .Xr unix 4 domain sockets. -- Jilles Tjoelker

Re: Import of DragonFly Mail Agent

2014-02-25 Thread Jilles Tjoelker
On Tue, Feb 25, 2014 at 11:30:56AM +0100, Baptiste Daroussin wrote: On Mon, Feb 24, 2014 at 11:50:10PM +0100, Jilles Tjoelker wrote: On Mon, Feb 24, 2014 at 07:01:54PM +0400, Slawa Olhovchenkov wrote: On Mon, Feb 24, 2014 at 03:30:14PM +0100, Baptiste Daroussin wrote: On Mon, Feb 24

Re: Import of DragonFly Mail Agent

2014-02-24 Thread Jilles Tjoelker
on a Unix domain socket and use getpeereid(3) to verify the credentials of the client. Note that the largest gain with set*id binaries is obtained when the last set*id binary is removed; we are pretty far from that. -- Jilles Tjoelker ___ freebsd-current

Re: [CFT] bsdinstall and zfsboot enhancements

2014-01-08 Thread Jilles Tjoelker
On Sun, Jan 05, 2014 at 04:04:03PM -0500, Nathan Whitehorn wrote: On 12/01/13 07:34, Jilles Tjoelker wrote: On Sat, Nov 30, 2013 at 04:36:18PM -0600, Nathan Whitehorn wrote: This took much longer than I'd anticipated, but the patch to init is attached. I chose not to make the changes

Re: [CFT] bsdinstall and zfsboot enhancements

2013-12-01 Thread Jilles Tjoelker
libc, the patch to init will be simpler. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: [PATCH] contrib/groff Queisce -Wdangling else

2013-10-26 Thread Jilles Tjoelker
should be added before instead of after the while loop. Also, putting braces around out-right(rem); is not needed. I recommend making sure the object files do not change due to patches like these. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing

Re: [Heads Up] RCS removed from base

2013-10-07 Thread Jilles Tjoelker
. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: installworld broken - osreldate.h: permission denied

2013-09-30 Thread Jilles Tjoelker
=== --- include/mk-osreldate.sh (revision 255946) +++ include/mk-osreldate.sh (working copy) @@ -48,4 +48,5 @@ #define __FreeBSD_version $RELDATE #endif EOF +chmod 644 $tmpfile mv $tmpfile osreldate.h -- Jilles Tjoelker

Re: restarting SYSCALL system call on amd64 loses arguments

2013-09-24 Thread Jilles Tjoelker
(). -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: restarting SYSCALL system call on amd64 loses arguments

2013-09-24 Thread Jilles Tjoelker
On Tue, Sep 24, 2013 at 10:29:09PM +0300, Konstantin Belousov wrote: On Tue, Sep 24, 2013 at 09:19:49PM +0200, Jilles Tjoelker wrote: On Tue, Sep 24, 2013 at 12:37:30AM +0300, Konstantin Belousov wrote: On Mon, Sep 23, 2013 at 10:26:13PM +0200, Tijl Coosemans wrote: Has anyone taken

Re: I386 jail on amd64 CURRENT core dump in libc?

2013-09-04 Thread Jilles Tjoelker
); } 519AUE_PDKILL NOPROTO { int pdkill(int fd, int signum); } -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr

Re: Ports with daemons on uninstall...

2013-07-14 Thread Jilles Tjoelker
the best policy for having things just work. Some daemons will crash or otherwise stop being useful when their files have been deleted or replaced, and the new rc.d script might be unable to stop the old daemon. -- Jilles Tjoelker ___ freebsd-current

Re: rebuilding world fail

2013-06-04 Thread Jilles Tjoelker
manually or getting a /bin/sh binary from before svn r250267 from somewhere. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr

Re: FreeBSD-HEAD gets stuck on vnode operations

2013-05-26 Thread Jilles Tjoelker
+ * v_interlock when finished. + */ + pause(vi_lock, 1); mtx_lock(vnode_free_list_mtx); goto restart; } -- 1.7.7.5 (Apple Git-26) -- Jilles

Re: FreeBSD-HEAD gets stuck on vnode operations

2013-05-26 Thread Jilles Tjoelker
On Sun, May 26, 2013 at 10:52:07PM +0200, Roger Pau Monné wrote: On 26/05/13 22:20, Jilles Tjoelker wrote: Instead of a pause() that may be too short or too long, how about waiting for the necessary lock? In other words, replace the kern_yield() call with VI_LOCK(vp); VI_UNLOCK(vp

Re: rc.subr: disabling globbing while processing devfs rules

2013-04-01 Thread Jilles Tjoelker
, but this feature is specific to Almquist-derived shells (ash) and so something more portable was selected. (It's still not standard because POSIX does not specify local but it works on most shells in use.) -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing

Re: r247839: broken pipe - for top, sudo and ports

2013-03-10 Thread Jilles Tjoelker
On Thu, Mar 07, 2013 at 04:54:01AM -0100, Jan Beich wrote: Jilles Tjoelker jil...@stack.nl writes: On Tue, Mar 05, 2013 at 08:59:09PM +0100, Hartmann, O. wrote: A truss top reveals this, is this of help? [...] stat(/etc/nsswitch.conf,{ mode=-rw-r--r-- ,inode=162310,size=1007,blksize

Re: r247839: broken pipe - for top, sudo and ports

2013-03-10 Thread Jilles Tjoelker
On Sun, Mar 10, 2013 at 08:26:03PM -0200, Jan Beich wrote: Jilles Tjoelker jil...@stack.nl writes: On Thu, Mar 07, 2013 at 04:54:01AM -0100, Jan Beich wrote: Jilles Tjoelker jil...@stack.nl writes: On Tue, Mar 05, 2013 at 08:59:09PM +0100, Hartmann, O. wrote: A truss top reveals

Re: r247839: broken pipe - for top, sudo and ports

2013-03-06 Thread Jilles Tjoelker
, 0, 0, NULL); _kevent(connection-write_queue, eventlist, 1, NULL, 0, NULL); -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send

Re: [PATCH] open_memstream() and open_wmemstream()

2013-02-15 Thread Jilles Tjoelker
On Wed, Feb 13, 2013 at 11:44:19AM -0500, John Baldwin wrote: On Thursday, February 07, 2013 4:12:22 pm Jilles Tjoelker wrote: On Tue, Feb 05, 2013 at 03:46:43PM -0500, John Baldwin wrote: I've written an implementation of open_memstream() and open_wmemstream() along with a set

Re: [PATCH] open_memstream() and open_wmemstream()

2013-02-07 Thread Jilles Tjoelker
but I don't think that is very important. http://www.FreeBSD.org/~jhb/patches/open_memstream.patch The seek functions should check for overflow in the addition (for SEEK_CUR and SEEK_END) and the conversion to size_t. -- Jilles Tjoelker ___ freebsd

Re: ktrace -d broken on current/stable-9

2013-01-15 Thread Jilles Tjoelker
) should be traced as well. This is almost always an empty set, unless you do things like cmd1 ktrace -d cmd2 which will trace cmd2 and part of cmd1. You probably want ktrace -i. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http

Re: API explosion (Re: [RFC/RFT] calloutng)

2012-12-22 Thread Jilles Tjoelker
to this via CLOCK_REALTIME vs CLOCK_MONOTONIC vs CLOCK_UPTIME. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr

Re: ipv6_addrs_IF aliases in rc.conf(5)

2012-12-20 Thread Jilles Tjoelker
versions you can use hexdigit and hexprint from network.subr. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr

Re: rev 244030 route command is not working

2012-12-12 Thread Jilles Tjoelker
() is too hard to use correctly. The non-standard strtonum() looks easier but has other problems (such as returning an English string in an API that should be language-neutral). -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http

Re: RFC: sysctl -f filename

2012-12-02 Thread Jilles Tjoelker
, lineno); + } + fclose(file); + + return (warncount); +} + /* These functions will dump out various interesting structures. */ static int -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org

Re: clang and static linking?

2012-11-10 Thread Jilles Tjoelker
by libc.so */ +#ifndef PIC +#undef isnan int isnan(double d) { @@ -40,7 +41,7 @@ isnan(double d) u.d = d; return (u.bits.exp == 2047 (u.bits.manl != 0 || u.bits.manh != 0)); } -#endif +#endif /* !PIC */ int __isnanf(float f) -- Jilles Tjoelker

Re: pkgng suggestion: renaming /usr/sbin/pkg to /usr/sbin/pkg-bootstrap

2012-09-01 Thread Jilles Tjoelker
. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: [PATCH] Add a -h flag to mv

2012-08-29 Thread Jilles Tjoelker
coreutils mv (and also cp/install/ln) appears to use -T/--no-target-directory for a similar purpose: -T prevents the target being treated as a directory (whether it is a symlink or not). -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http

Re: [PATCH] Add a -h flag to mv

2012-08-29 Thread Jilles Tjoelker
On Wed, Aug 29, 2012 at 08:09:20AM -0400, John Baldwin wrote: On Wednesday, August 29, 2012 6:02:47 am Jilles Tjoelker wrote: GNU coreutils mv (and also cp/install/ln) appears to use -T/--no-target-directory for a similar purpose: -T prevents the target being treated as a directory (whether

Re: pkgng suggestion: renaming /usr/sbin/pkg to /usr/sbin/pkg-bootstrap

2012-08-26 Thread Jilles Tjoelker
for freebsd-update and portsnap). -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: pkgng default schedule... registering a few reasons for rethinking the final implementation...

2012-08-23 Thread Jilles Tjoelker
| rev` try pName=${pkg%-*} and use arithmetic expansion ($((...))) instead of invoking expr where possible. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe

Re: PAM passwdqc, strict aliasing, and WARNS

2012-07-14 Thread Jilles Tjoelker
properly. However, in almost all real machines the conversion is trivial. Some compilers may still consider the union approach a strict-aliasing violation. In any case, I think it is a bit ugly and should be avoided when possible (like here). -- Jilles Tjoelker

Re: make delete-old performance.

2012-05-17 Thread Jilles Tjoelker
.) -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: Build error in bin/sh/jobs.c if DEBUG=2

2012-04-02 Thread Jilles Tjoelker
not use -DDEBUG=2 myself. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: Enhancing the user experience with tcsh

2012-02-12 Thread Jilles Tjoelker
will make it work in xterm but not cons25. If the 7.x/8.x syscons is important enough, further tweaking may be appropriate. The Ins key is more questionable because I think it is not used deliberately by many people but is annoying if you accidentally press it and do not realize. -- Jilles Tjoelker

Re: stray symbol in hd's output?

2012-01-29 Thread Jilles Tjoelker
|.| n0001 Yes, this was broken by r229794 (Jan 7) and repaired again by r230649 (yesterday). http://www.freebsd.org/cgi/query-pr.cgi?pr=144722 -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http

Re: i18n and shell scripts

2012-01-22 Thread Jilles Tjoelker
catgets(3) facility does not provide a utility for use from shell scripts, and is also harder to use than gettext. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send

Re: HEADS UP: set_rcvar() removed from rc.subr

2012-01-14 Thread Jilles Tjoelker
differently and does not cause unnecessary forks. Instead, it is called in the same shell environment to define additional rc.conf variables that have defaults and are shown in 'script rcvar'. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list

Re: add 'ldd' to cross-tools ?

2012-01-04 Thread Jilles Tjoelker
will have to run objdump (or readelf) recursively. (Note that there are also use cases where just the non-recursive NEEDED tags are appropriate, not all objects that happen to be loaded.) -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list

Re: r228700 can't dhclient em0

2011-12-21 Thread Jilles Tjoelker
for 32-bit applications on 64-bit kernels; a good ABI design will minimize the amount of code needed to support that. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe

Re: SCHED_ULE should not be the default

2011-12-13 Thread Jilles Tjoelker
... There is a suspicion that the problems stem from the sections of code associated with the SMP... Maybe I'm in something wrong, but I want to help in solving this problem ... -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org

Re: WITHOUT_PROFILE=yes by default

2011-11-29 Thread Jilles Tjoelker
are pmcstat and callgrind/cachegrind. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: possible array out of bounds access in sys/netinet/sctp_output.c

2011-11-27 Thread Jilles Tjoelker
allocated. Also, if it is not at the end of a struct it is an error. Using this new construct requires code changes because some code such as fairly close to the error message relies on the size of the one element already in the struct. -- Jilles Tjoelker

Re: crash in sb-concurrency tests after r216641 on x86-64/freebsd9/sb-thread

2011-11-19 Thread Jilles Tjoelker
, it would not be necessary to stop all other threads while collecting garbage, but this may be hard to fix. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any

Re: [Freebsd 9] [amd64] [USB] [HPLIP] what's the (new) right way to manage hplip usb-plugged printers, running Freebsd 9

2011-10-29 Thread Jilles Tjoelker
/jails/jail1/dev=devfsrules_jail1 /usr/jails/jail2/dev=devfsrules_jail2 -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr

Re: Not setting TERM explicitly wraps commands at 80 columns with nested shells in xterms using sh + bash?

2011-10-21 Thread Jilles Tjoelker
it check more often. libedit (as used in sh) is different; it appears to check the size before reading each line. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send

Re: portsnap5 problem, portsnap error handling

2011-10-04 Thread Jilles Tjoelker
. return 1 fi -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: cvsup broken on amd64?

2011-10-03 Thread Jilles Tjoelker
() does nothing if there is no thread to wake up. If there is no second CPU core available to run the detailer thread, it is more efficient to have the updater thread do some more work before incurring a context switch. -- Jilles Tjoelker ___ freebsd-current

Re: Segfault in libthr.so on 9.0-BETA2 (with stunnel FWIW)

2011-09-18 Thread Jilles Tjoelker
. The comparison should be against FILENAME_MAX + 1 instead. Alternatively, the name could be created using asprintf(). -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any

Re: Serial Port Configuration does not work

2011-09-11 Thread Jilles Tjoelker
, u_long cmd, caddr_t data, int fflag, error = ttydevsw_cioctl(tp, dev2unit(dev), cmd, data, td); if (error != ENOIOCTL) goto done; + error = 0; switch (cmd) { case TIOCGETA: -- Jilles Tjoelker

Re: any place to look at for PCI-express performance issues ?

2011-06-11 Thread Jilles Tjoelker
in such a way that they cannot be cached efficiently. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: [RFC] rcexecr: rcorder in parallel

2011-06-04 Thread Jilles Tjoelker
for processes that have already terminated. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: CFR: importing openresolv

2011-02-23 Thread Jilles Tjoelker
=${line#\# resolv.conf from *} -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: [head tinderbox] failure on ia64/ia64

2011-02-01 Thread Jilles Tjoelker
*)(cmsg))-cmsg_len)) Although there is no alignment problem (assuming cmsg is properly aligned and _ALIGN is correct), this violates -Wcast-align. Therefore I think an intermediate cast to void * would be appropriate here. -- Jilles Tjoelker ___ freebsd

Re: unbounded sleep on [fifoow] while open a named pipe: is it a feature?

2011-01-28 Thread Jilles Tjoelker
fifos. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: FYI: clang static analyzer page has moved to http://scan.freebsd.your.org/freebsd-head/

2011-01-08 Thread Jilles Tjoelker
On Wed, Jan 05, 2011 at 10:30:43PM +0100, Ulrich Spörlein wrote: On Wed, 05.01.2011 at 20:36:53 +0100, Jilles Tjoelker wrote: On Wed, Jan 05, 2011 at 05:55:45PM +0100, Ulrich Spörlein wrote: *But*, it should grok that for err(3) and exit(3). Now there are some possible remedies: - get

Re: FYI: clang static analyzer page has moved to http://scan.freebsd.your.org/freebsd-head/

2011-01-05 Thread Jilles Tjoelker
that the functions do not return. - come up with a way to mark the false positives (kinda impossible with the way scan-build currently works) -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd

Re: head/bin/sh/output.h r215303

2010-11-14 Thread Jilles Tjoelker
resulting in 'offsetof' being redefined. This problem was introduced by r213775 include changes, which you have merged yourself. I had already noticed this myself in head and fixed it in r213925. I have now MFCed r213775 and r213925 so your problem should be solved. -- Jilles Tjoelker

Re: Files under src/ not used for building world

2010-11-07 Thread Jilles Tjoelker
not have been allowed to happen, but now we are stuck with it. I suppose bin/sh/bltin/echo.1 can go away. -- Jilles Tjoelker ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail

Re: [PATCH] fix shell bug in ${var%pattern} expansion

2010-10-13 Thread Jilles Tjoelker
=C123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 while [ ${#v2} -lt 2000 ]; do v4=${v2} ${v1%/*} $v3 if [ ${#v4} -ne $((${#v2} + ${#v3} + 8)) ]; then echo bad: ${#v4} -ne $((${#v2} + ${#v3} + 8)) fi v2=x$v2 v3=y$v3 done -- Jilles Tjoelker

Re: CFR: Replace man/manpath/whatis/apropos with a shell script

2010-09-09 Thread Jilles Tjoelker
the more common setup with /usr/bin before /usr/local/bin, search_path needs to map the PATH directories /bin and /usr/bin to the man directory /usr/share/man. GNU man does the same, but it is written into /etc/manpath.config. -- Jilles Tjoelker

  1   2   >