summaryrefslogtreecommitdiff
path: root/crypto/LPdir_win.c
Commit message (Collapse)AuthorAgeFilesLines
* Following the license change, modify the boilerplates in crypto/Richard Levitte2018-12-061-1/+1
| | | | | | | [skip ci] Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/7827)
* Fix typo (note by oneton@users.github)Rich Salz2017-06-201-1/+1
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3716)
* Standardize Levitte's dual-licenseRich Salz2017-06-151-0/+3
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3689)
* Fix mingw buildMatt Caswell2016-07-181-0/+1
| | | | | | Mingw builds on Travis were failing because INT_MAX was undeclared. Reviewed-by: Rich Salz <rsalz@openssl.org>
* crypto/LPdir_win.c: rationalize temporary allocations.Andy Polyakov2016-07-161-31/+41
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* crypto/LPdir_win.c: harmonize with o_fopen.c.Andy Polyakov2016-07-161-18/+38
| | | | | Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
* Add back lost copyright and license text in LPdir_win.cRichard Levitte2016-07-161-0/+26
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* Copyright consolidation 09/10Rich Salz2016-05-171-22/+6
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* memset, memcpy, sizeof consistency fixesRich Salz2015-05-051-1/+1
| | | | | | | | Just as with the OPENSSL_malloc calls, consistently use sizeof(*ptr) for memset and memcpy. Remove needless casts for those functions. For memset, replace alternative forms of zero with 0. Reviewed-by: Richard Levitte <levitte@openssl.org>
* Use safer sizeof variant in mallocRich Salz2015-05-041-2/+2
| | | | | | | | | | | | | For a local variable: TYPE *p; Allocations like this are "risky": p = OPENSSL_malloc(sizeof(TYPE)); if the type of p changes, and the malloc call isn't updated, you could get memory corruption. Instead do this: p = OPENSSL_malloc(sizeof(*p)); Also fixed a few memset() calls that I noticed while doing this. Reviewed-by: Richard Levitte <levitte@openssl.org>
* Run util/openssl-format-source -v -c .Matt Caswell2015-01-221-127/+110
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* Check for FindNextFile when defining it rather than FindFirstFileRichard Levitte2014-11-281-1/+1
| | | | Reviewed-by: Matt Caswell <matt@openssl.org>
* Followup on RT3334 fix: make sure that a directory that's the emptyRichard Levitte2014-09-031-0/+6
| | | | | | string returns 0 with errno = ENOENT. Reviewed-by: Andy Polyakov <appro@openssl.org>
* RT3334: Fix crypto/LPdir_win.cPhil Mesnier2014-09-031-7/+35
| | | | | Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Andy Polyakov <appro@openssl.org>
* Fix mingw warnings.Andy Polyakov2006-10-231-2/+0
|
* Import changed files from LPlib. The changes are logged as followsRichard Levitte2004-09-231-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | for LPdir_unix.c in LPlib. For the other files, only the last log entry applies. ---------------------------- revision 1.11 date: 2004/09/23 22:07:22; author: _cvs_levitte; state: Exp; lines: +20 -6 Define my own macro LP_ENTRY_SIZE to express the size of my own buffering of directory entries, and make it depend on whichever comes first of PATH_MAX and NAME_MAX. As a fallback, make sure it's set to 255 if neither PATH_MAX or NAME_MAX were defined. Also, if the size given from PATH_MAX or NAME_MAX is less than 255, force LP_ENTRY_SIZE to be 255. It makes no harm whatsoever if LP_ENTRY_SIZE is larger than the maximum local path name limit. It does make a lot of harm if LP_ENTRY_SIZE is smaller. 255 seemed like a fairly acceptable default when nothing else is available. ---------------------------- revision 1.10 date: 2004/08/26 13:36:05; author: _cvs_levitte; state: Exp; lines: +13 -13 License correction. I am not REGENTS, just a COPYRIGHT HOLDER. ----------------------------
* Typos and due casts. As for the latter. It's "safe" to cast as below,Andy Polyakov2004-07-251-7/+11
| | | | because "wrong" casts will either be optimized away or never performed.
* From LPlib:Richard Levitte2004-07-221-10/+11
| | | | | | Apparently, the length *including* the NUL byte should be used. Contributed by Andy Polyakov <appro@fy.chalmers.se>
* From LPlib:Richard Levitte2004-07-221-3/+8
| | | | | | | Make a nicer comment, as we don't really know for sure that it's really needed, and just want to play on the safe side. Suggest by Andy Polyakov <appro@fy.chalmers.se>
* From LPlib:Richard Levitte2004-07-211-11/+19
| | | | | | | | | | | | Some code beautification. Change the macro CP_THREAD_ACP to CP_ACP, because the latter is more widely defined. Add a conditional macro definition in case FindFirstFile and FindNextFile aren't properly defined (might happen on WinCE). Suggested by Andy Polyakov <appro@fy.chalmers.se>
* From LPlib:Richard Levitte2004-07-201-22/+44
| | | | | | | Windows changes that detects if multibyte characters are available and deals with them properly. Contributed by Andy Polyakov <appro@fy.chalmers.se>
* Imported from LPlib, making sure the entry name (at least on Unix) isRichard Levitte2004-07-191-3/+1
| | | | | NUL-teminated at all times, and that we don't make unneeded calls to free().
* Copy a few files from LPlib (a new project of mine), add a wrapper.Richard Levitte2004-07-101-0/+117
Now we have directory reading capabilities for VMS as well, and all of it in a fairly general manner.