Print `undefined' if pathconf returns -1 without setting errno.