ObjFW  Check-in [b648c7090f]

Overview
Comment:OFSecureData: Move chunkSize into #ifdef
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: b648c7090f6574825918be3570f22c6eda73b5effaec71aab6e2ba9c123a22b9
User & Date: js on 2021-04-25 16:20:21
Other Links: manifest | tags
Context
2021-04-25
16:48
Make OFListItem opaque check-in: 8573ef86c6 user: js tags: trunk
16:20
OFSecureData: Move chunkSize into #ifdef check-in: b648c7090f user: js tags: trunk
11:29
Change the naming convention check-in: 2b74ff13b0 user: js tags: trunk
Changes

Modified src/OFFile.m from [5d9cdb9d33] to [cd41ef981c].

76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# define O_EXLOCK 0
#endif

#ifndef OF_AMIGAOS
# define closeHandle(h) close(h)
#else
static struct OFFileHandle
	OFFileHandle previous, next;
	BPTR handle;
	bool append;
} *firstHandle = NULL;

static void
closeHandle(OFFileHandle handle)
{







|







76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# define O_EXLOCK 0
#endif

#ifndef OF_AMIGAOS
# define closeHandle(h) close(h)
#else
static struct OFFileHandle
	struct OFFileHandle *previous, *next;
	BPTR handle;
	bool append;
} *firstHandle = NULL;

static void
closeHandle(OFFileHandle handle)
{

Modified src/OFSecureData.m from [7db7cba207] to [850d3da4ab].

31
32
33
34
35
36
37

38
39
40
41
42
43
44
45
46
47

#import "OFInitializationFailedException.h"
#import "OFInvalidArgumentException.h"
#import "OFNotImplementedException.h"
#import "OFOutOfMemoryException.h"
#import "OFOutOfRangeException.h"


static const size_t chunkSize = 16;

#if defined(HAVE_MMAP) && defined(HAVE_MLOCK) && defined(MAP_ANON)
struct page {
	struct page *next, *previous;
	void *map;
	unsigned char *page;
};

# if defined(OF_HAVE_COMPILER_TLS)







>


<







31
32
33
34
35
36
37
38
39
40

41
42
43
44
45
46
47

#import "OFInitializationFailedException.h"
#import "OFInvalidArgumentException.h"
#import "OFNotImplementedException.h"
#import "OFOutOfMemoryException.h"
#import "OFOutOfRangeException.h"

#if defined(HAVE_MMAP) && defined(HAVE_MLOCK) && defined(MAP_ANON)
static const size_t chunkSize = 16;


struct page {
	struct page *next, *previous;
	void *map;
	unsigned char *page;
};

# if defined(OF_HAVE_COMPILER_TLS)