summaryrefslogtreecommitdiffstats
path: root/compat
AgeCommit message (Collapse)Author
2015-11-24-sys/queue.h in proc.c, and nuke the unnecessary C++ header guards stuff andNicholas Marriott
sys/cdefs.h in vis.h (it causes problems on some platforms). Reported by someone on GitHub, issue 212.
2015-11-21Move tmux.h below system includes.Nicholas Marriott
2015-11-18Add reallocarray to compat.Nicholas Marriott
2015-10-15Fix available_fds when there is no AF_INET, reported by Mathieu Arnold.Nicholas Marriott
2015-09-01Sync up vis.* for stravis().Nicholas Marriott
2015-07-24Fix a warning, from Kosta Zertsekel.Nicholas Marriott
2015-07-15Implement osdep_get_name and osdep_get_cwd for AIX, from J Raynor.Nicholas Marriott
2015-07-12Update imsg*.[ch] from OpenBSD, including bzero->memset.Nicholas Marriott
2015-06-10Don't leak dotfd if fchdir fails. From ettl dot martin78 at gmail dot com.Nicholas Marriott
2015-05-07queue.h should come from compat.h.Nicholas Marriott
2015-03-31Make place const to avoid a warning, from Ben Boeckel.Nicholas Marriott
2014-12-15Add missing va_end, from Thomas Jarosch.Nicholas Marriott
2014-11-08No need for $Id$ now.Nicholas Marriott
2014-09-25Don't close random file descriptor on error, from J Raynor.Nicholas Marriott
2014-09-23I broke last change, fix so it works, from J Raynor.Nicholas Marriott
2014-09-23cdefs.h -> types.h.Nicholas Marriott
2014-09-22Synchronize forkpty master and child to avoid hang on AIX with fast exitingNicholas Marriott
child and output left in the queue, from J Raynor.
2014-08-09Add compat/fparseln.cThomas Adam
2014-08-09Sync libutil from OpenBSD (imsg)Thomas Adam
Changes in the imsg API need to be reflected here as tmux wasn't creating any clients because of it.
2013-10-10Add openat() to compat.Nicholas Marriott
2013-06-25+strings.h in compat/.Nicholas Marriott
2013-04-22Add compat for cfmakeraw, from Dagobert Michelsen.Nicholas Marriott
2013-02-12Return error for --foo when using compat/getopt.c.Nicholas Marriott
2012-07-12Sync with OpenBSD. Mostly because of the added _SAFE macros which isTiago Cunha
needed by an upcoming change.
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