Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Constify utimes in compat library to match specs. | Darren Tucker | 2022-02-25 | 1 | -1/+1 |
| | | | | Patch from vapier at chromium.org. | ||||
* | Split EGD/PRNGD interface into its own file. | Darren Tucker | 2021-06-18 | 1 | -0/+1 |
| | | | | This will allow us to use it when building --without-openssl. | ||||
* | Add pselect implementation for platforms without. | Darren Tucker | 2021-06-04 | 1 | -0/+5 |
| | | | | | | | | | | | This is basically the existing notify_pipe kludge from serverloop.c moved behind a pselect interface. It works by installing a signal handler that writes to a pipe that the select is watching, then calls the original handler. The select call in serverloop will become pselect soon, at which point the kludge will be removed from thereand will only exist in the compat layer. Original code by markus, help from djm. | ||||
* | Improve search for 'struct timespec'. | Darren Tucker | 2020-01-14 | 1 | -0/+2 |
| | | | | | Make struct timespec test consistent with existing timeval test. Include time.h for timespec in compat header where required. | ||||
* | Add missing bracket in realpath macro. | Darren Tucker | 2019-11-01 | 1 | -1/+1 |
| | |||||
* | Use sftp_realpath if no native realpath. | Darren Tucker | 2019-11-01 | 1 | -0/+4 |
| | |||||
* | Add implementation of localtime_r. | Darren Tucker | 2019-10-29 | 1 | -0/+4 |
| | |||||
* | Fix ifdefs to not mask needed bits. | Darren Tucker | 2019-10-28 | 1 | -2/+1 |
| | |||||
* | Move utimensat definition into timespec section. | Darren Tucker | 2019-10-28 | 1 | -10/+12 |
| | | | | | Since utimensat uses struct timespec, move it to the section where we define struct timespec when needed. | ||||
* | Add minimal fchownat and fchmodat implementations. | Darren Tucker | 2019-01-18 | 1 | -0/+12 |
| | | | | Fixes builds on at least OS X Lion, NetBSD 6 and Solaris 10. | ||||
* | Add a minimal implementation of utimensat(). | Darren Tucker | 2019-01-18 | 1 | -0/+8 |
| | | | | | Some systems (eg older OS X) do not have utimensat, so provide minimal implementation in compat layer. Fixes build on at least El Capitan. | ||||
* | Check for and work around buggy fflush(NULL). | Darren Tucker | 2018-03-05 | 1 | -0/+4 |
| | | | | | Some really old platforms (eg SunOS4) segfault on fflush(NULL) so check for and work around. With klausz at haus-gisela.de. | ||||
* | Check if HAVE_DECL_BZERO correctly. | Darren Tucker | 2018-02-27 | 1 | -1/+1 |
| | |||||
* | Hook up flock() compat code. | Darren Tucker | 2018-02-26 | 1 | -0/+8 |
| | | | | | Also a couple of minor changes: fail if we can't lock instead of silently succeeding, and apply a couple of minor style fixes. | ||||
* | Add no-op getsid implmentation. | Darren Tucker | 2018-02-26 | 1 | -0/+4 |
| | |||||
* | Check for raise and supply if needed. | Darren Tucker | 2018-02-26 | 1 | -0/+4 |
| | |||||
* | Check for bzero and supply if needed. | Darren Tucker | 2018-02-26 | 1 | -0/+4 |
| | | | | | Since explicit_bzero uses it via an indirect it needs to be a function not just a macro. | ||||
* | Move signal compat code into bsd-signal.{c,h} | Darren Tucker | 2018-02-11 | 1 | -10/+0 |
| | |||||
* | Add minimal strsignal for platforms without it. | Darren Tucker | 2017-09-25 | 1 | -0/+4 |
| | |||||
* | Add llabs() implementation.V_7_5_P1 | Darren Tucker | 2017-03-20 | 1 | -0/+4 |
| | |||||
* | Remove obsolete CVS $Id from source files. | Darren Tucker | 2016-08-17 | 1 | -2/+0 |
| | | | | | Since -portable switched to git the CVS $Id tags are no longer being updated and are becoming increasingly misleading. Remove them. | ||||
* | Strip trailing whitespace. | Darren Tucker | 2016-08-02 | 1 | -1/+1 |
| | | | | | Mechanically strip trailing whitespace on files not synced with OpenBSD (or in the case of bsd-snprint.c, rsync). | ||||
* | Move err.h replacements into compat lib. | Darren Tucker | 2016-07-13 | 1 | -0/+11 |
| | | | | | Move implementations of err.h replacement functions into their own file in the libopenbsd-compat so we can use them in kexfuzz.c too. ok djm@ | ||||
* | Add a null implementation of pledge. | Darren Tucker | 2015-11-30 | 1 | -0/+4 |
| | | | | Fixes builds on almost everything. | ||||
* | Use do{}while(0) for no-op functions. | Darren Tucker | 2015-04-07 | 1 | -2/+2 |
| | | | | From FreeBSD. | ||||
* | - (dtucker) [auth-krb5.c configure.ac openbsd-compat/bsd-misc.h] Add support | Darren Tucker | 2013-08-04 | 1 | -1/+9 |
| | | | | for building with older Heimdal versions. ok djm. | ||||
* | - (dtucker) [configure.ac openbsd-compat/bsd-misc.h] bz#2087: Add a null | Darren Tucker | 2013-05-30 | 1 | -1/+5 |
| | | | | | implementation of endgrent for platforms that don't have it (eg Android). Loosely based on a patch from Nathan Osman, ok djm | ||||
* | - (djm) [configure.ac openbsd-compat/bsd-misc.c openbsd-compat/bsd-misc.h] | Damien Miller | 2013-03-15 | 1 | -1/+5 |
| | | | | Add a usleep replacement for platforms that lack it; ok dtucker | ||||
* | - (dtucker) [configure.ac openbsd-compat/bsd-misc.c openbsd-compat/bsd-misc.h] | Darren Tucker | 2013-02-15 | 1 | -1/+5 |
| | | | | Use getpgrp() if we don't have getpgid() (old BSDs, maybe others). | ||||
* | - (dtucker) [configure.ac openbsd-compat/bsd-misc.h] Add setlinebuf for | Darren Tucker | 2012-07-04 | 1 | -1/+4 |
| | | | | platforms that don't have it. "looks good" tim@ | ||||
* | - (tim) [openbsd-compat/bsd-misc.h sshd.c] Fix conflicting return type for | Tim Rice | 2012-02-14 | 1 | -2/+2 |
| | | | | | unsetenv due to rev 1.14 change to setenv.c. Cast unsetenv to void in sshd.c ok dtucker@ | ||||
* | - (tim) [configure.ac openbsd-compat/bsd-misc.h openbsd-compat/bsd-misc.c] Add | Tim Rice | 2010-11-08 | 1 | -1/+5 |
| | | | | support for platforms missing isblank(). ok djm@ | ||||
* | - (dtucker) [acconfig.h configure.ac openbsd-compat/bsd-misc.{c,h}] | Darren Tucker | 2005-02-26 | 1 | -5/+1 |
| | | | | | Remove SETGROUPS_NOOP, was only used by Cygwin, which doesn't need it any more. Patch from vinschen at redhat.com. | ||||
* | - (djm) [acconfig.h configure.ac openbsd-compat/Makefile.in | Damien Miller | 2004-08-15 | 1 | -5/+1 |
| | | | | | | openbsd-compat/bsd-closefrom.c openbsd-compat/bsd-misc.c openbsd-compat/bsd-misc.h openbsd-compat/openbsd-compat.h] Use smarter closefrom() replacement from sudo; ok dtucker@ | ||||
* | - (dtucker) [configure.ac openbsd-compat/misc.c [openbsd-compat/misc.h] | Darren Tucker | 2004-06-25 | 1 | -1/+5 |
| | | | | | | Add closefrom() for platforms that don't have it. (might need some tuning later, but I want to be able to test reexec). | ||||
* | - (dtucker) [configure.ac sshd.c openbsd-compat/bsd-misc.h | Darren Tucker | 2004-03-08 | 1 | -1/+5 |
| | | | | | openbsd-compat/setenv.c] Unset KRB5CCNAME on AIX to prevent it from being inherited by the child. ok djm@ | ||||
* | - (djm) Simplify the license on code I have written. No code changes. | Damien Miller | 2004-02-17 | 1 | -20/+12 |
| | |||||
* | - (bal) openbsd-compat/ clean up. Considate headers, add in $Id$ on our | Ben Lindstrom | 2003-08-29 | 1 | -3/+3 |
| | | | | files, and added missing license to header. | ||||
* | - (bal) redo how we handle 'mysignal()'. Move it to | Ben Lindstrom | 2003-08-25 | 1 | -1/+7 |
| | | | | | openbsd-compat/bsd-misc.c, s/mysignal/signal/ and #define signal to be our 'mysignal' by default. OK djm@ | ||||
* | - (djm) s/get_progname/ssh_get_progname/g to avoid conflict with Heimdal | Damien Miller | 2003-08-22 | 1 | -2/+2 |
| | | | | -lbroken; ok dtucker | ||||
* | - (dtucker) [configure.ac openbsd-compat/bsd-misc.c openbsd-compat/bsd-misc.h] | Darren Tucker | 2003-08-13 | 1 | -2/+6 |
| | | | | | | | Add a tcsendbreak function for platforms that don't have one, based on the one from OpenBSD. Any more of these and I'll split them out into bsd-termio.[ch]. | ||||
* | - (dtucker) [openbsd-compat/bsd-misc.c openbsd-compat/bsd-misc.h] | Darren Tucker | 2003-08-02 | 1 | -1/+5 |
| | | | | Add a tcgetpgrp function. | ||||
* | - (djm) Big KNF on openbsd-compat/ | Damien Miller | 2003-05-19 | 1 | -14/+13 |
| | |||||
* | [configure.ac openbsd-compat/bsd-misc.c openbsd-compat/bsd-misc.h] | Tim Rice | 2003-03-18 | 1 | -1/+10 |
| | | | | add nanosleep(). testing/corrections by Darren Tucker <dtucker@zip.com.au> | ||||
* | - (bal) typo of setgroup for cygwin. Patch by vinschen@redhat.com | Ben Lindstrom | 2002-06-13 | 1 | -2/+2 |
| | |||||
* | - (bal) Build noop setgroups() for cygwin to clean up code (For other | Ben Lindstrom | 2002-06-12 | 1 | -1/+6 |
| | | | | | platforms without the setgroups() requirement, you MUST define SETGROUPS_NOOP in the configure.ac) Based on patch by vinschen@redhat.com | ||||
* | Add truncate() emulation to address Bug 208 | Tim Rice | 2002-05-07 | 1 | -1/+4 |
| | |||||
* | - (stevesk) use setresgid() for setegid() if needed | Kevin Steves | 2001-04-09 | 1 | -1/+5 |
| | |||||
* | - (djm) Add CVS Id's to files that we have missed | Damien Miller | 2001-02-09 | 1 | -0/+2 |
| | |||||
* | - (bal) Reorder. Move all bsd-*, fake-*, next-*, and cygwin* stuff to | Ben Lindstrom | 2001-01-31 | 1 | -0/+70 |
openbsd-compat/. And resolve all ./configure and Makefile.in issues assocated. Logic: * All OpenBSD functions should have the same filename as in the OpenBSD tree * All 'home brew' functions have bsd-* infront of them. * All 'not really implemented' functions have fake-* infront of them. |