summaryrefslogtreecommitdiffstats
path: root/compat
AgeCommit message (Collapse)Author
2012-07-11Remove remaining xfree calls from the portable version.Tiago Cunha
2012-05-03Sync OpenBSD tree.h due to patchset 1104.Tiago Cunha
Prompted by ore on #tmux.
2012-03-02ANSIfy function prototypes, from Tim Ruehsen.Nicholas Marriott
2011-07-25Can't use the same va_list twice, from Emanuele Giaquinta.Nicholas Marriott
2011-07-22Compatibility for b64_ntop, missing from some alternative libc.Nicholas Marriott
2011-07-09Expand the Id keyword. Tiago Cunha
2011-07-09Add missing $Id$.Tiago Cunha
2011-03-04Use the right asprintf since we don't support truly broken platforms right now.Nicholas Marriott
2011-01-21Support for HP-UX.Nicholas Marriott
2011-01-21Only have one asprintf implementation, that's likely to always work.Nicholas Marriott
2011-01-10Trim spaces.Nicholas Marriott
2011-01-07Missing HAVE_STDINT_H.Nicholas Marriott
2010-11-13Whoops, get the logic the right way round.Nicholas Marriott
2010-11-11malloc(0) may return NULL, so only assume that is an error if allocatingNicholas Marriott
more than zero.
2010-10-27Compat for closefrom().Nicholas Marriott
2010-10-24Remove redundant preprocessor check (it's already taken care of by tmux.h).Tiago Cunha
2010-06-06Sync OpenBSD patchset 706:Tiago Cunha
Rename some imsg bits to make namespace collisions less likely buf to ibuf, buf_read to ibuf_read, READ_BUF_SIZE to IBUF_READ_SIZE.
2010-06-05Must allocate for putenv.Nicholas Marriott
2010-05-19Solaris 9 doesn't have setenv and unsetenv so add compat versions, basedNicholas Marriott
on code from Dagobert Michelsen.
2010-04-12Sync OpenBSD patchset 680:Tiago Cunha
Remove XXX comment and just close received fd if calloc() fails. If this happens the imsg may no longer be usable as there may be queued messages, but this is a) already the case with the code now, and b) would be the case if recvmsg() fails anyway, so we can document that -1 from imsg_read() invalidates the struct imsgbuf. discussed with and ok eric
2009-11-08Adjust recent libevent changes to the portable version.Tiago Cunha
2009-10-15Fill in the tty name in SunOS's forkpty compat, and use it in osdep_getname.Nicholas Marriott
From Todd Carson. Tweaked by me to nuke (void) casts. Say no to lint appeasement! ;-)
2009-09-20Don't try to use tio if it is NULL.Nicholas Marriott
2009-09-16Sync from OpenBSD:Nicholas Marriott
== Rather than constructing an entire termios struct from ttydefaults.h, just let forkpty do it and then alter the bits that should be changed after fork. A little neater and more portable. == This should fix problems caused by glibc's broken ttydefaults.h file.
2009-09-15Sync OpenBSD patchset 329:Tiago Cunha
Enclose repeated buffer draining code in a new msgbuf_drain() function, which is additionally exported for use by others. From nicm@, who reminded me that tmux is now using buffer.c, too.
2009-08-20Add $Id$, nuke queue.h.Nicholas Marriott
2009-08-20Also undef CTRL.Nicholas Marriott
2009-08-20Solaris defines some of these in termios.h so #ifndef them.Nicholas Marriott
2009-08-20Solaris and AIX have no ttydefaults.h.Nicholas Marriott
2009-08-19Call tcsetattr(). Not tested.Nicholas Marriott
2009-08-16Solaris has no strsep(3).Nicholas Marriott
2009-08-14Adjust imsg changes to the portable version due to OpenBSD patchset 243.Tiago Cunha
2009-08-14Sync OpenBSD patchset 243:Tiago Cunha
Switch tmux to use imsg. This is the last major change to make the client-server protocol more resilient and make the protocol versioning work properly. In future, the only things requiring a protocol version bump will be changes in the message structs, and (when both client and server have this change) mixing different versions should nicely report an error message. As a side effect this also makes the code tidier, fixes a problem with the way errors reported during server startup were handled, and supports fd passing (which will be used in future). Looked over by eric@, thanks. Please note that mixing a client with this change with an older server or vice versa may cause tmux to crash or hang - tmux should be completely exited before upgrading.
2009-08-09Missing options are not illegal.Nicholas Marriott
2009-08-09Add unvis(3) compat stuff.Tiago Cunha
2009-07-02Solaris has no strcasestr.Nicholas Marriott
2009-07-01Don't see a reason for sys/cdefs.h here; remove it.Nicholas Marriott
2009-06-25vis compat stuff.Nicholas Marriott
2009-06-25Start of portability update: bitstring.h.Nicholas Marriott
2009-05-26Now in base.Nicholas Marriott
2009-05-14HAVE_.Nicholas Marriott
2009-05-13compat/bsd-poll.h now we are not doing -Icompat.Nicholas Marriott
2009-05-13Rename all feature flags to HAVE_* and move out of makefiles into a configureNicholas Marriott
script which must be run before building. Still two makefiles but they are a hell of a lot simpler. HAVE_* also will make it easier to move to $buildsystem if necessary later.
2009-05-13Bye-bye nonworking IRIX, can be rescued from the attic if ever needed again.Nicholas Marriott
2009-05-13Use getopt.c from openssh rather than OpenBSD's getopt_long.Nicholas Marriott
2009-04-29/* $Id$ */Nicholas Marriott
2009-04-29Some tweaks for Solaris.Nicholas Marriott
Get rid of vis.* in favour of a small replacement function.
2009-04-02Fake warnx().Nicholas Marriott
2009-03-31More AIX tweaks.Nicholas Marriott
2009-03-31AIX forkpty.Nicholas Marriott