Commit Graph

962 Commits

Author SHA1 Message Date
jmmv
5365634b06 Adjust reachover Makefiles after tmux 1.5 import.
The new code has quite a bit of warnings to be fixed.  I did not realize
until merge-resolving time that christos@ had fixed such warnings in our
copy of tmux 1.4 and assumed these warnings were new and thus could just
be disabled.

Therefore, I'm disabling some global warning checks as a temporary measure
to bring the tree back to a buildable state.  I will take a look at these
warnings afterwards.
2011-08-17 18:51:10 +00:00
jmmv
0f3d27469a Fix merge conflicts after tmux 1.5 import. 2011-08-17 18:48:34 +00:00
jmmv
d530c4d0ae Import tmux 1.5:
CHANGES FROM 1.4 TO 1.5, 09 July 2011

* Support xterm mouse modes 1002 and 1003.
* Change from a per-session stack of buffers to one global stack. This renders
  copy-buffer useless and makes buffer-limit now a server option.
* Fix most-recently-used choice by avoiding reset the activity timer for
  unattached sessions every second.
* Add a -P option to new-window and split-window to print the new window or
  pane index in target form (useful to pass it into other commands).
* Handle a # at the end of a replacement string (such as status-left)
  correctly.
* Support for UTF-8 mouse input (\033[1005h) which was added in xterm 262.
  If the new mouse-utf8 option is on, UTF-8 mouse input is enabled for all
  UTF-8 terminals. The option defaults to on if LANG etc are set in the same
  manner as the utf8 option.
* Support for HP-UX.
* Accept colours of the hex form #ffffff and translate to the nearest from the
  xterm(1) 256-colour set.
* Clear the non-blocking IO flag (O_NONBLOCK) on the stdio file descriptors
  before closing them (fixes things like "tmux ls && cat").
* Use TMPDIR if set.
* Fix next and previous session functions to actually work.
* Support -x and -y for new-session to specify the initial size of the window
  if created detached with -d.
* Make bind-key accept characters with the top-bit-set and print them as octal.
* Set $TMUX without the session when background jobs are run.
* Simplify the way jobs work and drop the persist type, so all jobs are
  fire-and-forget.
* Accept tcgetattr/tcsetattr(3) failure, fixes problems with fatal() if the
  terminal disappears while locked.
* Add a -P option to detach to HUP the client's parent process (usually causing
  it to exit as well).
* Support passing through escape sequences to the underlying terminal by using
  DCS with a "tmux;" prefix.
* Prevent tiled producing a corrupt layout when only one column is needed.
* Give each pane created in a tmux server a unique id (starting from 0), put it
  in the TMUX_PANE environment variable and accept it as a target.
* Allow a start and end line to be specified for capture-pane which may be
  negative to capture part of the history.
* Add -a and -s options to lsp to list all panes in the server or session
  respectively. Likewise add -s to lsw.
* Change -t on display-message to be target-pane for the #[A-Z] replacements
  and add -c as target-client.
* The attach-session command now prefers the most recently used unattached
  session.
* Add -s option to detach-client to detach all clients attached to a session.
* Add -t to list-clients.
* Change window with mouse wheel over status line if mouse-select-window is on.
* When mode-mouse is on, automatically enter copy mode when the mouse is
  dragged or the mouse wheel is used. Also exit copy mode when the mouse wheel
  is scrolled off the bottom.
* Provide #h character pair for short hostname (no domain).
* Don't use strnvis(3) for the title as it breaks UTF-8.
* Use the tsl and fsl terminfo(5) capabilities to update terminal title and
  automatically fill them in on terminals with the XT capability (which means
  their title setting is xterm-compatible).
* Add a new option, mouse-resize-pane. When on, panes may be resized by
  dragging their borders.
* Fix crash by resetting last pane on {break,swap}-pane across windows.
* Add three new copy-mode commands - select-line, copy-line, copy-end-of-line.
* Support setting the xterm clipboard when copying from copy mode using the
  xterm escape sequence for the purpose (if xterm is configured to allow it).
* Support xterm(1) cursor colour change sequences through terminfo(5) Cc
  (set) and Cr (reset) extensions.
* Support DECSCUSR sequence to set the cursor style with two new terminfo(5)
  extensions, Cs and Csr.
* Make the command-prompt custom prompts recognize the status-left option
  character pairs.
* Add a respawn-pane command.
* Add a couple of extra xterm-style keys that gnome terminal provides.
* Allow the initial context on prompts to be set with the new -I option to
  command-prompt. Include the current window and session name in the prompt
  when renaming and add a new key binding ($) for rename session.
* Option bell-on-alert added to trigger the terminal bell when there is an
  alert.
* Change the list-keys format so that it shows the keys using actual tmux
  commands which should be able to be directly copied into the config file.
* Show full targets for lsp/lsw -a.
* Make confirm-before prompt customizable with -p option like command-prompt
  and add the character pairs #W and #P to the default kill-{pane,window}
  prompts.
* Avoid sending data to suspended/locked clients.
* Small memory leaks in error paths plugged.
* Vi mode improvements.
2011-08-17 18:40:03 +00:00
jmmv
e48648f0d2 Adjust instructions and import script in preparation for tmux 1.5. 2011-08-17 18:37:59 +00:00
christos
9ad467753c fix strict aliasing issues. 2011-08-17 10:48:02 +00:00
christos
9c35de859b widen the type to avoid gcc warning about shifting too much. 2011-08-17 09:32:55 +00:00
christos
e307dc8de5 fix cast warnings 2011-08-17 09:30:13 +00:00
christos
e83f416f0e fix strict aliasing issues. 2011-08-17 09:24:23 +00:00
christos
5ae8764ee2 remove gcc hacks. 2011-08-17 09:20:14 +00:00
christos
7634ea3059 fix gcc array out of bounds confusion. 2011-08-17 09:19:38 +00:00
christos
3392b60945 fix aliasing issues and remove gcc hacks. 2011-08-17 09:03:47 +00:00
christos
c8909e959a fix type-punned warnings using memcpy 2011-08-17 08:22:50 +00:00
joerg
a509349c8f Revert. 2011-08-16 14:08:35 +00:00
christos
d6942b2fe4 avoid/document non-literal format strings 2011-08-16 10:34:22 +00:00
christos
a04731e090 avoid non-literal strings. 2011-08-16 08:29:15 +00:00
christos
fc186dc762 - document non-literal format
- no need for WARNS = 0 here
2011-08-16 07:57:21 +00:00
christos
058f310f02 - proper varyadic warning and error
- don't call syslog with a buffer, use %s first.
2011-08-16 05:28:44 +00:00
christos
05d3ffd600 - it is not the 80's anymore, use proper varargs
- no need to exit again, error does
2011-08-16 05:24:20 +00:00
christos
7fdb569fcb - document non-literal strings
- fix bad security practices: {msyslog,syslog,printf}(buffer) ->
    {msyslog,syslog,printf}("%s", buffer)
- use an anonymous union to avoid type punning casts
- re-order expression to avoid integer overflow
2011-08-16 05:15:20 +00:00
christos
afec221346 - fixes for non-literal strings
- add missing strbuf initialization
2011-08-16 04:45:17 +00:00
christos
9521b6a6f7 provisional fix for CVS-2011-2895, buffer overflow during decompress 2011-08-16 03:33:37 +00:00
christos
eae14b3ea8 document non-literal format strings 2011-08-14 13:29:26 +00:00
christos
27b39b96e0 document that display.c uses non-literal format strings 2011-08-14 12:48:02 +00:00
christos
dbb4627dd8 fix non-literal strings where they are not needed. 2011-08-14 09:06:12 +00:00
plunky
867fdab687 disable some warnings to appease gcc-4.5 2011-08-10 08:10:39 +00:00
plunky
a8bf6c15ac use offsetof() rather than rolling our own, to appease gcc 4.5 2011-08-10 08:09:38 +00:00
plunky
98320184ef fix up some undefined behaviour, to appease gcc 4.5 2011-08-10 08:08:39 +00:00
joerg
d43405d38d -Wno-array-bounds is no longer needed for clang here 2011-08-09 13:00:58 +00:00
joerg
7ba5ed4f95 Update LLVM/Clang snapshot to r137038. This brings in the extended array
boundary checker and the white listing of pre-c99 flexible array member
idiom foo[1] as last element of a struct.
2011-08-09 12:30:46 +00:00
jmmv
bbf950e188 Rename the _atf user to _tests. The _atf name will get obsoleted if/when
we migrate to Kyua (atf v2), so it's better to use a generic name that does
not depend on the specific implementation.  Also, this user has not gone
out yet into any stable release, so we can easily rename it.

Suggested by jruoho@.
2011-08-05 14:43:41 +00:00
joerg
97e2cf4d88 Update LLVM/Clang snapshot to r136592. This brings support for
.code32/.code64 on x86.
2011-08-02 17:12:38 +00:00
joerg
0220bbec2e Update to LLVM/Clang snapshot to r135906. Fixes a number of bugs found
in the pkgsrc bulk builds.
2011-07-25 16:32:43 +00:00
dholland
dc7a4b1c8f Remove spurious trailing slash; PR 45067 from Henning Petersen. 2011-07-19 03:07:09 +00:00
tron
d43e32f723 Turn SSP warnings for "dynstr_test.c" off, found by GCC 4.5. 2011-07-18 19:30:49 +00:00
joerg
9777e8c193 Update to Clang/LLVM r135360. Most importantly, this adjusts the
cc -print-search-dirs output to expand sysroot-prefixed library paths to
make live easier for libtool.
2011-07-17 20:07:56 +00:00
christos
27ed5dfb1a - exit with ERROR_EXIT consistently
- don't use warnx() for things that set errno
- check result of setlogin()
- don't call setlogin() without calling setsid()
  should fix kernel warnings like:
	cron (pid NNNNN) changing logname from root to USER
	cron (pid MMMMM) changing logname from USER to root
2011-07-17 01:16:46 +00:00
christos
bd253b6939 calling setlogin() once is good enough. 2011-07-17 01:14:25 +00:00
joerg
63d609f274 Install cpp frontend link too 2011-07-14 21:38:56 +00:00
joerg
220d715bdc Update to LLVM/Clang r135100 to get past the type system rewrite. 2011-07-13 23:48:29 +00:00
drochner
ee65e1cf6e minor printf format fixes 2011-07-12 18:19:13 +00:00
joerg
1cb60d627b Update LLVM/Clang snapshot to r134635. This reduces the memory usage in
preprocessor heavy code and recognizes mipseb as alias for mips.
2011-07-07 21:59:14 +00:00
joerg
6873db4871 Invert def/undef condition to make LLVM_DEVELOPER=yes work as expected. 2011-07-07 21:46:50 +00:00
joerg
49b9052057 Update LLVM/Clang snapshot to 134438 for configuration updates for
various platforms.
2011-07-05 23:02:31 +00:00
spz
85afcc6138 increase libdns minor version 2011-07-05 22:05:36 +00:00
spz
e69d9c6eb6 merge import of bind-9.8.0-P4 2011-07-05 21:59:18 +00:00
spz
6654acd7c3 Import of bind 9.8.0-P4
Upstream changelog:

        --- 9.8.0-P4 released ---

3124.   [bug]           Use an rdataset attribute flag to indicate
                        negative-cache records rather than using rrtype 0;
                        this will prevent problems when that rrtype is
                        used in actual DNS packets.  [RT #24777]

        --- 9.8.0-P3 released (withdrawn) ---

3126.   [security]      Using DNAME record to generate replacements caused
                        RPZ to exit with a assertion failure. [RT #23766]

3125.   [security]      Using wildcard CNAME records as a replacement with
                        RPZ caused named to exit with a assertion failure.
                        [RT #24715]

3123.   [security]      Change #2912 exposed a latent flaw in
                        dns_rdataset_totext() that could cause named to
                        crash with an assertion failure. [RT #24777]

3115.   [bug]           Named could fail to return requested data when
                        following a CNAME that points into the same zone.
                        [RT #2445]
2011-07-05 21:22:43 +00:00
joerg
288bb96063 Hook up LLVM's MIPS target. 2011-07-05 19:37:10 +00:00
joerg
1b9578b8c2 Hook up LLVM's ARM target. 2011-07-05 17:22:20 +00:00
joerg
c8a6f85bd1 Use a different switch to explicitly disable developer-only libraries
for the toolchain build.
2011-07-05 17:15:51 +00:00
joerg
0ffe711036 Doesn't need the X86 disassembler. 2011-07-05 17:06:10 +00:00
joerg
b49cc14919 Hook up LLVM's SPARC target. 2011-07-05 14:15:56 +00:00
joerg
8597eac543 Hook up LLVM's PowerPC. 2011-07-04 22:37:58 +00:00
joerg
9980449ca3 Update LLVM/Clang to r134393 for NetBSD/PowerPC changes. 2011-07-04 22:20:45 +00:00
joerg
b0f1ff448a Update LLVM/Clang to r134374. This brings the xstorerng alias for Via
PadLock, a bugfix for the C++ ABI in one edge condition and various
compiler improvements.
2011-07-04 16:10:38 +00:00
joerg
b94ac99b05 Fix const usage to be consistent with the other files. ml_shell and
ml_examine are constant pointers, not pointers to constant data.
2011-07-04 12:31:53 +00:00
tron
41350e18b8 Unexpand "$NetBSD$" in code for adding RCS Ids. 2011-07-03 23:25:01 +00:00
tron
9ff59f5fba Add missing interpreter and RCS Id. 2011-07-03 23:22:37 +00:00
tron
6a29342765 Build the new version of "less". 2011-07-03 21:58:33 +00:00
tron
824a88bbba Apply NetBSD specific patches, mostly related to behaviour of
less(1) as more(1).
2011-07-03 20:14:12 +00:00
tron
e71baf6887 Fix RCS Ids. 2011-07-03 19:51:26 +00:00
tron
4dc3990e56 Fix generation of RCS Ids. 2011-07-03 19:42:09 +00:00
tron
3d9626b96b Create (symbolic) links for more(1) and page(1). 2011-07-03 18:15:18 +00:00
tron
9b5d0753b4 Add makefiles to build the new version of "less". 2011-07-03 18:02:00 +00:00
tron
20006a0bde Import version 444 of "less":
The list of changes between our ancient version 394 and 444 is too long
to list here. You can find all the release notes here:

http://www.greenwoodsoftware.com/less/old.html
2011-07-03 18:00:59 +00:00
tron
68becace4b Add handling for manual pages:
1.) Remove the formatted ones before import.
2.) Rename the unformatted ones from "*.nro" to "*.1" to keep our
    makefile framework happy.
2011-07-03 17:56:26 +00:00
tron
07ba10b37c Add a (new) script from preparing "less" for import into NetBSD. 2011-07-03 16:57:13 +00:00
joerg
b58b5b09d9 Fix memset usage. XXX audit the rest where hard coded sizes are used 2011-07-01 02:24:14 +00:00
mrg
db3c8201d3 avoid an overflow condition. 2011-07-01 02:18:54 +00:00
mrg
1b7bb725cc avoid a potential uninitialised variable problem. 2011-07-01 02:18:37 +00:00
joerg
22add3a49f Fix memset usage. 2011-07-01 02:01:21 +00:00
mrg
56349c28d3 use __unused instead of having a function call itself, to provide an
empty translation unit.
2011-06-29 02:41:03 +00:00
jruoho
30c90d58f5 Adjust for ACPICA 20110623. 2011-06-28 09:11:33 +00:00
christos
d2b7346773 delint 2011-06-25 20:27:01 +00:00
christos
67995da767 add missing paren 2011-06-25 20:13:03 +00:00
christos
478d1edef4 It is a lot nicer to getenv() what you need once and makes the code a lot
more readable.
2011-06-25 17:13:34 +00:00
riz
fa44c6496c Remove a noisy debugging printf that triggers on bigendian platforms.
(Reported upstream as well)
2011-06-23 16:12:36 +00:00
mrg
c64370a6d5 fix a potential off-by-two array overflow found by GCC 4.5.3. 2011-06-22 03:59:49 +00:00
mrg
16c29695a3 use %option noinput since we need it. found by GCC 4.5.3. 2011-06-22 03:58:51 +00:00
mrg
1f2368609b remove an always true test found by GCC 4.5.3. 2011-06-22 03:58:24 +00:00
mrg
c111245a78 apply some -Wno-error and/or -fno-strict-aliasing.
all of this should be looked at closer, but some of them are not
very trivial.
2011-06-22 02:49:41 +00:00
mrg
5b5d810159 this needs %option noinput. thanks to martin. 2011-06-21 09:34:54 +00:00
mrg
0a0dd75b65 add some XXX'd -Wno-foo if HAVE_GCC >= 45.
XXX: someone should look at these.
2011-06-21 02:32:55 +00:00
mrg
493d341048 various build fixes for gcc 4.5. from chuq. XXX i'm not sure all of
these work properly wtf pointer aliasing, but there are no casts at
least...

the lib/libpuffs/puffs_priv.h is definately a real bug fix.

from chuq.
2011-06-20 09:11:16 +00:00
mrg
75e42fa7da remove most of the remaining HAVE_GCC tests that are always true in
the modern world.
2011-06-20 07:43:56 +00:00
kardel
2734092359 fix lineedit functionality. ntpq and friends would just exit on empty lines
which is not intended - there is a quit command for that purpose.
2011-06-19 15:58:07 +00:00
joerg
5a5f3047c5 Properly use a format string. 2011-06-16 14:57:22 +00:00
jmmv
193dd4527d Pull up part of revision f621bc0489ac3e4ef364f840a852a6a5290e8e12:
-----
Only silence stdin for test programs

atf-check is expected to accept data in its stdin, and a previous change
broke this behavior.
-----

This should fix a few tests that broke during the 0.14 import.  In
particularly, the tests in libc/stdlib and libc/ssp that redirect stuff
to atf_check.
2011-06-15 08:48:35 +00:00
christos
506691b53b remove merge botch. 2011-06-15 01:45:16 +00:00
jmmv
1a674c628c Update reachover build files for atf-0.14. 2011-06-14 15:27:11 +00:00
jmmv
1d706b8151 Post-import merge of atf-0.14. 2011-06-14 15:26:20 +00:00
jmmv
5055cfd6b9 Import atf-0.14:
Experimental version released on June 14th, 2011.

* Added a pkg-config file for atf-sh and an aclocal file to ease the
  detection of atf-sh from autoconf scripts.

* Made the default test case body defined by atf_sh fail.  This is to
  ensure that test cases are properly defined in test programs and helps
  in catching typos in the names of the body functions.

* PR bin/44882: Made atf-run connect the stdin of test cases to /dev/zero.
  This provides more consistent results with "normal" execution (in
  particular, when tests are executed detached from a terminal).

* Made atf-run hardcode TZ=UTC for test cases.  It used to undefine TZ, but
  that does not take into account that libc determines the current timezone
  from a configuration file.

* All test programs will now print a warning when they are not run through
  atf-run(1) stating that this is unsupported and may deliver incorrect
  results.

* Added support for the 'require.files' test-case property.  This allows
  test cases to specify installed files that must be present for the test
  case to run.
2011-06-14 15:23:20 +00:00
roy
01c853e7fd Sync 2011-06-13 11:07:50 +00:00
roy
d8775c93d6 Import openresolv-3.4.2 with the following fix:
* Use printf(1) correctly
2011-06-13 11:05:19 +00:00
christos
7267577190 turn on printf warnings for all the printf-like atf functions. 2011-06-11 18:03:57 +00:00
joerg
7ee80c6f6e Update LLVM/Clang snapshot to 132736. This fixes two situations where
libraries could end up with text relocations.
2011-06-08 08:48:38 +00:00
plunky
5e99487c50 make PCC_DEBUG a global flag (will not compile without, currently) 2011-06-07 13:30:35 +00:00
plunky
43d2b2a329 use better method of creating version string, current method can
introduce spurious " characters during stringification
2011-06-07 13:07:26 +00:00
spz
1bddfb5091 fix up OPENSSL_VERSION_NUMBER check for entropy_add so it deals with the
current situation. Compile-checked by dholland, thanks.
2011-06-06 05:40:34 +00:00
plunky
82bbedc657 INCLUDEDIR and LIBEXECDIR only need to be defined for the
pcc front end
2011-06-03 13:31:25 +00:00
plunky
f56267db07 sterilise the environment before running configure 2011-06-03 08:56:39 +00:00