Page MenuHomeFreeBSD
Feed Advanced Search

Jan 24 2015

jilles closed D1426: Add futimens and utimensat system calls..

Committed as r277610.

Jan 24 2015, 10:33 PM

Jan 21 2015

jilles added a comment to D1426: Add futimens and utimensat system calls..

The compatibility code is to stop breaking things too badly for people running an old kernel and a new world. It is not useful for running tests since it naturally pretends to support more than the kernel can deliver. It is probably best to remove it in 12-current or so.

Jan 21 2015, 11:27 PM

Jan 18 2015

jilles updated the diff for D1426: Add futimens and utimensat system calls..

Rebase to recent head, fix symlink.7 per pluknet@.

Jan 18 2015, 10:18 PM

Jan 9 2015

jilles added a comment to D1455: Synchronize libedit with NetBSD and make it unicode aware.

I have not tested this, but it looks very good.

Jan 9 2015, 12:25 AM

Jan 3 2015

jilles retitled D1426: Add futimens and utimensat system calls. from to Add futimens and utimensat system calls..
Jan 3 2015, 4:01 PM

Jan 2 2015

jilles closed D1411: Link lib/libc/c063 tests to the build..

Closed by commit rS276590 (authored by @jilles).

Jan 2 2015, 10:49 PM
jilles updated the diff for D1411: Link lib/libc/c063 tests to the build..

Apply changes requested by ngie. 'kyua test' in c063/ is happy now.

Jan 2 2015, 10:28 PM
jilles retitled D1411: Link lib/libc/c063 tests to the build. from to Link lib/libc/c063 tests to the build..
Jan 2 2015, 1:26 PM

Oct 17 2014

jilles added a comment to D961: Move the _has_waiters flag in POSIX semaphores into _count..

Hmm, USEM_HAS_WAITERS | USEM_MAX_COUNT compares equal to -1 and will be interpreted as a fuword32/casuword32 failure. However, this combination is extremely unlikely to happen.

Oct 17 2014, 10:50 PM

Aug 24 2014

jilles added a comment to D678: Validate the mode argument in access, eaccess, and faccessat for optional POSIX compliance and to improve compatibility with Linux and NetBSD.

Although this change makes sense, it is not required for POSIX compliance. Note that the [EINVAL] error for an invalid amode is in the "may fail" section. One reason for this is that implementation extensions or new versions of POSIX may add new amode values.

Aug 24 2014, 12:08 PM

Aug 16 2014

jilles accepted D611: Remove LOG_ODELAY because it does nothing..

Looks good to me.

Aug 16 2014, 11:57 AM

Aug 15 2014

jilles requested changes to D611: Remove LOG_ODELAY because it does nothing..

LOG_ODELAY indeed does nothing and can be removed. However, please apply this change to all non-contrib code to reduce noise: libexec/getty, libexec/rshd, usr.bin/lock, usr.bin/login, usr.sbin/timed/timedc. (It looks safest to treat release/picobsd/tinyware as contrib code given that it has not been touched/tested (?) for a long time.)

Aug 15 2014, 7:35 PM

Aug 11 2014

jilles added inline comments to D547: Convert bin/sh/tests to ATF.
Aug 11 2014, 9:39 PM

Aug 7 2014

jilles added a comment to D547: Convert bin/sh/tests to ATF.

The code looks good but a bit strange in a few places. Things like \$([ -f \$se ] && echo \"-e file:\$se\") (in eval "...") cause unnecessary forks and look strange to me (as if you're writing Python in shell); instead, you could set se to the empty string if the file does not exist and expand ${se:+-e file:$se}. I think the eval will look less confusing if most of the code is escaped using single-quotes instead of double-quotes.

Aug 7 2014, 9:36 PM

Jul 31 2014

jilles accepted D431: sed(1): If input's last line doesn't have newline, don't add one.

Excellent.

Jul 31 2014, 8:47 PM

Jul 27 2014

jilles accepted D490: Fix seekdir() followed by an immediate telldir()..
Jul 27 2014, 9:01 AM

Jul 21 2014

jilles added a comment to D459: Reclaim telldir entries in rewinddir().

Looks good to me, although I do wonder how many incorrect applications are broken and to what degree applications benefit of the smaller list (memory and CPU time).

Jul 21 2014, 9:47 PM

Jul 20 2014

jilles added a comment to D431: sed(1): If input's last line doesn't have newline, don't add one.
In D431#8, @dumbbell wrote:
In D431#4, @jilles wrote:

Although there is a change to tests/, I see new breakage in tests/regress.multitest.out/7.8. This test prints the last line of a non-empty file followed by /dev/null; this used to output an empty line but now outputs nothing. Perhaps this is correct, but if so the expected result should be changed.

This test is already broken without my change. I studied this a bit, but I'm not sure what to think:

  • The sed documentation from the Opengroup website speaks about "the last line of input", without talking about file boundaries.
  • Our 7.8 testcase expects this behavior.
  • In GNU sed, its documentation tells that the '$' address "matches the last line of the last file of input, or the last line of each file when the -i or -s options are specified". However the real behavior (in GNU sed 4.4.2 from ports) seems to match the Opengroup description.
  • Our sed(1) implements what's said in GNU sed's documentation.
Jul 20 2014, 7:50 PM
jilles requested changes to D442: libc/stdio changes from Apple.

Some parts are good, some parts need changes, some parts may be wrong. See per-file comments.

Jul 20 2014, 3:33 PM
jilles added a comment to D431: sed(1): If input's last line doesn't have newline, don't add one.

Another thing, it may be useful to document this extension to POSIX (processing binary data) in the man page. Per POSIX, sed input files must be text files (zero or more lines ending in '\n' of at most {LINE_MAX} and not containing '\0').

Jul 20 2014, 2:42 PM
jilles requested changes to D431: sed(1): If input's last line doesn't have newline, don't add one.

Although there is a change to tests/, I see new breakage in tests/regress.multitest.out/7.8. This test prints the last line of a non-empty file followed by /dev/null; this used to output an empty line but now outputs nothing. Perhaps this is correct, but if so the expected result should be changed.

Jul 20 2014, 2:35 PM

Jul 10 2014

jilles accepted D312: Make rewinddir() always rewind..

The new version appears to work properly.

Jul 10 2014, 10:21 PM

Jul 2 2014

jilles requested changes to D312: Make rewinddir() always rewind..

During testing, I noticed several problems with the new fdopendir():

Jul 2 2014, 10:04 PM

May 29 2014

jilles added a comment to D106: Add long options to look(1).

Why is this needed? What applications does it help and what systems is it compatible with? (For example, Ubuntu 12.04's look does not support long options either.)

May 29 2014, 11:23 AM