Nicholas Marriott
7b085136a7
-sys/queue.h in proc.c, and nuke the unnecessary C++ header guards stuff and
...
sys/cdefs.h in vis.h (it causes problems on some platforms). Reported by
someone on GitHub, issue 212.
2015-11-24 18:48:07 +00:00
Nicholas Marriott
2c482939fd
Move tmux.h below system includes.
2015-11-21 08:03:18 +00:00
Nicholas Marriott
a77960c540
Add reallocarray to compat.
2015-11-18 12:54:29 +00:00
Nicholas Marriott
f199fb6a2b
Fix available_fds when there is no AF_INET, reported by Mathieu Arnold.
2015-10-15 09:24:25 +01:00
Nicholas Marriott
2ebef95994
Sync up vis.* for stravis().
2015-09-01 21:08:19 +01:00
Nicholas Marriott
669059aa19
Fix a warning, from Kosta Zertsekel.
2015-07-24 09:06:15 +01:00
Nicholas Marriott
8c96e2a6d9
Implement osdep_get_name and osdep_get_cwd for AIX, from J Raynor.
2015-07-15 08:46:35 +01:00
Nicholas Marriott
235e0bd65a
Update imsg*.[ch] from OpenBSD, including bzero->memset.
2015-07-12 19:46:58 +01:00
Nicholas Marriott
dca084e703
Don't leak dotfd if fchdir fails. From ettl dot martin78 at gmail dot com.
2015-06-10 15:39:23 +01:00
Nicholas Marriott
63b7a031a5
queue.h should come from compat.h.
2015-05-07 11:43:52 +01:00
Nicholas Marriott
5e956f1148
Make place const to avoid a warning, from Ben Boeckel.
2015-03-31 09:26:37 +01:00
Nicholas Marriott
3771ab7c67
Add missing va_end, from Thomas Jarosch.
2014-12-15 09:23:34 +00:00
Nicholas Marriott
747cab4281
No need for $Id$ now.
2014-11-08 12:27:43 +00:00
Nicholas Marriott
5e7f1b9f0a
Don't close random file descriptor on error, from J Raynor.
2014-09-25 10:53:29 +01:00
Nicholas Marriott
16670410ca
I broke last change, fix so it works, from J Raynor.
2014-09-23 10:50:11 +01:00
Nicholas Marriott
054a825ee2
cdefs.h -> types.h.
2014-09-23 10:46:46 +01:00
Nicholas Marriott
4d53fd98a6
Synchronize forkpty master and child to avoid hang on AIX with fast exiting
...
child and output left in the queue, from J Raynor.
2014-09-22 14:07:00 +01:00
Thomas Adam
72797074f3
Add compat/fparseln.c
2014-08-09 21:16:21 +01:00
Thomas Adam
0e23ab4cce
Sync libutil from OpenBSD (imsg)
...
Changes in the imsg API need to be reflected here as tmux wasn't creating
any clients because of it.
2014-08-09 20:32:01 +01:00
Nicholas Marriott
e588ddb5d6
Add openat() to compat.
2013-10-10 10:27:23 +01:00
Nicholas Marriott
1099442c0a
+strings.h in compat/.
2013-06-25 09:57:49 +01:00
Nicholas Marriott
792e2856c9
Add compat for cfmakeraw, from Dagobert Michelsen.
2013-04-22 09:44:15 +01:00
Nicholas Marriott
0f31d231db
Return error for --foo when using compat/getopt.c.
2013-02-12 20:36:22 +00:00
Tiago Cunha
7a583b1e54
Sync with OpenBSD. Mostly because of the added _SAFE macros which is
...
needed by an upcoming change.
2012-07-12 20:59:39 +00:00
Tiago Cunha
513bd8f62d
Remove remaining xfree calls from the portable version.
2012-07-11 19:50:46 +00:00
Tiago Cunha
b74b875f25
Sync OpenBSD tree.h due to patchset 1104.
...
Prompted by ore on #tmux.
2012-05-03 20:39:42 +00:00
Nicholas Marriott
82f4db0d10
ANSIfy function prototypes, from Tim Ruehsen.
2012-03-02 11:23:51 +00:00
Nicholas Marriott
e9ebdac3dd
Can't use the same va_list twice, from Emanuele Giaquinta.
2011-07-25 09:56:43 +00:00
Nicholas Marriott
20134fa9f4
Compatibility for b64_ntop, missing from some alternative libc.
2011-07-22 10:49:33 +00:00
Tiago Cunha
391f1f08c0
Expand the Id keyword.
2011-07-09 09:42:33 +00:00
Tiago Cunha
8357a55d76
Add missing $Id$.
2011-07-09 09:34:04 +00:00
Nicholas Marriott
34bb013b92
Use the right asprintf since we don't support truly broken platforms right now.
2011-03-04 23:39:41 +00:00
Nicholas Marriott
38f169113e
Support for HP-UX.
2011-01-21 20:35:20 +00:00
Nicholas Marriott
e34c6fd187
Only have one asprintf implementation, that's likely to always work.
2011-01-21 20:03:18 +00:00
Nicholas Marriott
abd1f615b2
Trim spaces.
2011-01-10 22:45:10 +00:00
Nicholas Marriott
b463d3de54
Missing HAVE_STDINT_H.
2011-01-07 00:35:13 +00:00
Nicholas Marriott
30e8ed393e
Whoops, get the logic the right way round.
2010-11-13 16:29:05 +00:00
Nicholas Marriott
94c2adf499
malloc(0) may return NULL, so only assume that is an error if allocating
...
more than zero.
2010-11-11 20:41:08 +00:00
Nicholas Marriott
2287ec7b3e
Compat for closefrom().
2010-10-27 20:21:01 +00:00
Tiago Cunha
83447580b1
Remove redundant preprocessor check (it's already taken care of by tmux.h).
2010-10-24 01:55:21 +00:00
Tiago Cunha
bebfd7c2c8
Sync OpenBSD patchset 706:
...
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-06 00:08:28 +00:00
Nicholas Marriott
89eb95265a
Must allocate for putenv.
2010-06-05 18:20:48 +00:00
Nicholas Marriott
278effd7ea
Solaris 9 doesn't have setenv and unsetenv so add compat versions, based
...
on code from Dagobert Michelsen.
2010-05-19 21:31:39 +00:00
Tiago Cunha
0646b3caf2
Sync OpenBSD patchset 680:
...
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
2010-04-12 21:45:18 +00:00
Tiago Cunha
e41055c5aa
Adjust recent libevent changes to the portable version.
2009-11-08 22:51:34 +00:00
Nicholas Marriott
0614ca434a
Fill in the tty name in SunOS's forkpty compat, and use it in osdep_getname.
...
From Todd Carson.
Tweaked by me to nuke (void) casts. Say no to lint appeasement! ;-)
2009-10-15 07:11:25 +00:00
Nicholas Marriott
b29d4affd8
Don't try to use tio if it is NULL.
2009-09-20 18:31:16 +00:00
Nicholas Marriott
15b643fc11
Sync from OpenBSD:
...
==
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-16 12:36:28 +00:00
Tiago Cunha
150fba5ecd
Sync OpenBSD patchset 329:
...
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-09-15 23:59:40 +00:00
Nicholas Marriott
dd9dd142c9
Add $Id$, nuke queue.h.
2009-08-20 12:54:08 +00:00