Commit graph

109 commits

Author SHA1 Message Date
jbettis
6d5b0dda0d 2006-04-14 Jeremy Bettis <jeremy@deadbeef.com>
* Source/win32/GSFileHandleWin32.m: Fix background reading of pipes.
		Several changes for Openstep compatiblity: Don't queue notification,
		don't raise exception when asked to read while a background operation
		is in progress.
	* Source/win32/GSRunLoopCtxt.m: If there are no handles to block on
		but there is a timer, sleep until the timer needs to wake up.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22791 72102866-910b-0410-8b05-ffd578937521
2006-04-14 15:17:21 +00:00
jbettis
55c7cd74a5 NSBundle.m: objc_executable_location(): A cast was obsuring a misuse of fileSystemRepresentation
NSFileManager.m: isExecutableFileAtPath: Added a comment
NSPropertyList.m: propertyListFromData:mutabilityOption:format:errorDescription: Don't call memcmp if the data is smaller than 8 bytes.
objc-load.m: mingw unicode
win32-load.h: mingw unicode
NSUserDefaultsWin32.m: Write defaults to registry as unicode strings, read in either unicode(REG_SZ) or ascii(REG_BINARY).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22782 72102866-910b-0410-8b05-ffd578937521
2006-04-12 19:52:10 +00:00
rfm
eaedea3169 tidied pipe streams in mingw32
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22711 72102866-910b-0410-8b05-ffd578937521
2006-03-26 06:24:55 +00:00
rfm
1b0b512733 fix typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22703 72102866-910b-0410-8b05-ffd578937521
2006-03-24 11:23:52 +00:00
rfm
fb52a7c32a Small runloop tidyup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22702 72102866-910b-0410-8b05-ffd578937521
2006-03-24 10:59:00 +00:00
rfm
97485b0e24 handle _dispatch for pipe being called when I/O not complete
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22695 72102866-910b-0410-8b05-ffd578937521
2006-03-21 16:35:18 +00:00
rfm
dd73a2c387 some bugfixes ... socket stuff still not working
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22694 72102866-910b-0410-8b05-ffd578937521
2006-03-21 16:22:42 +00:00
rfm
fa5f31547f Changes for NSStream support, especially in mingw32 ... not yet complete.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22693 72102866-910b-0410-8b05-ffd578937521
2006-03-21 15:33:05 +00:00
rfm
567a263baf minor mingw32 fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22616 72102866-910b-0410-8b05-ffd578937521
2006-03-08 06:25:44 +00:00
rfm
68b9508fa7 Add initial code for NSStream/NSRunLoop integration
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22608 72102866-910b-0410-8b05-ffd578937521
2006-03-07 09:14:37 +00:00
rfm
e1b9889677 make housekeeping timer more transparent and remove deprecated code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22593 72102866-910b-0410-8b05-ffd578937521
2006-03-04 06:47:56 +00:00
rfm
1217802f9f Further NSStream development
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22585 72102866-910b-0410-8b05-ffd578937521
2006-03-01 20:03:35 +00:00
rfm
3afbb2f09d fixup some private declarations accidentally left in public header
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22568 72102866-910b-0410-8b05-ffd578937521
2006-02-23 15:45:43 +00:00
rfm
187f32ab13 check file ownership before reading user specific config
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22507 72102866-910b-0410-8b05-ffd578937521
2006-02-17 06:31:04 +00:00
rfm
a84aca3d73 Add server and pipe streams.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22505 72102866-910b-0410-8b05-ffd578937521
2006-02-16 19:19:30 +00:00
rfm
efd1539f9f fixed missing semicolons
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22499 72102866-910b-0410-8b05-ffd578937521
2006-02-15 17:56:46 +00:00
rfm
6005aecf36 NSStream additions
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22496 72102866-910b-0410-8b05-ffd578937521
2006-02-15 17:34:47 +00:00
rfm
0a1c7f0a13 minor mingw32 tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22454 72102866-910b-0410-8b05-ffd578937521
2006-02-10 10:06:28 +00:00
CaS
e25bb075eb mingw fixups.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22313 72102866-910b-0410-8b05-ffd578937521
2006-01-15 13:13:36 +00:00
CaS
e548bb7e96 Added hack to workaround bug caused by some sort of registry caching in windows.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22312 72102866-910b-0410-8b05-ffd578937521
2006-01-15 11:31:37 +00:00
CaS
8699af99c7 More sized type tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22293 72102866-910b-0410-8b05-ffd578937521
2006-01-11 09:32:13 +00:00
CaS
bb1ce663a4 Tidy use of sized datatypes. Check for invalid asumption of interchangability
of int/long in encoder/decoder methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22291 72102866-910b-0410-8b05-ffd578937521
2006-01-11 08:37:16 +00:00
CaS
1659013d89 Don't cope with quit here ... do it in back end
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22271 72102866-910b-0410-8b05-ffd578937521
2006-01-09 08:09:29 +00:00
CaS
457bcfd021 Apply fix for situtation where we block unnecessarily because we have queued
windows messages which have already arrived.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22270 72102866-910b-0410-8b05-ffd578937521
2006-01-09 07:54:44 +00:00
CaS
ad6ff45e65 Improve user experience with distributed notification center.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22049 72102866-910b-0410-8b05-ffd578937521
2005-11-20 11:17:42 +00:00
CaS
aa8da172a5 Mingw-32 improvements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22048 72102866-910b-0410-8b05-ffd578937521
2005-11-20 10:36:12 +00:00
CaS
5a64008d76 More mingw32 tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22000 72102866-910b-0410-8b05-ffd578937521
2005-11-14 09:25:31 +00:00
CaS
77c9edcc24 Fixes for I/O operations which complete synchronously even though we wanted
them to be asynchronous.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21988 72102866-910b-0410-8b05-ffd578937521
2005-11-11 12:09:19 +00:00
CaS
50969bf11d More message port work.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21986 72102866-910b-0410-8b05-ffd578937521
2005-11-11 10:07:03 +00:00
CaS
e848a285c4 Performance tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21985 72102866-910b-0410-8b05-ffd578937521
2005-11-10 22:40:57 +00:00
CaS
252b778407 Automatically convert listen port to listen/speak if we try to use it as
a speaker.  To support threaded operation where a pair of ports are used
opposite way round in two threads.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21984 72102866-910b-0410-8b05-ffd578937521
2005-11-10 21:57:30 +00:00
CaS
c6b7765061 Yet more message port changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21983 72102866-910b-0410-8b05-ffd578937521
2005-11-10 21:45:16 +00:00
CaS
5807565afc More fixups and added debugging
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21980 72102866-910b-0410-8b05-ffd578937521
2005-11-10 13:37:01 +00:00
CaS
846003afda Fix port order in NSPortMessage
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21979 72102866-910b-0410-8b05-ffd578937521
2005-11-09 20:17:05 +00:00
CaS
2dac0159d0 Improive NSConnection debug, work on NSMessagePort for mingw32
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21975 72102866-910b-0410-8b05-ffd578937521
2005-11-09 16:30:57 +00:00
CaS
d1867e1813 Add default to enable mingw32 message ports
Do some debugging/fixing of mingw32 message ports.
Still not usable.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21974 72102866-910b-0410-8b05-ffd578937521
2005-11-09 09:39:25 +00:00
CaS
a323b896be NSMessagePort updates
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21973 72102866-910b-0410-8b05-ffd578937521
2005-11-08 20:42:45 +00:00
CaS
43acbffb34 Fix error in registry value type
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21971 72102866-910b-0410-8b05-ffd578937521
2005-11-08 19:51:35 +00:00
CaS
e0c3869168 Work towards mingw32 native NSMessagePort
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21970 72102866-910b-0410-8b05-ffd578937521
2005-11-08 16:44:46 +00:00
CaS
20d39d5242 Get rid of some unused code. Fix error in debug logs for unicode defaults key.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21965 72102866-910b-0410-8b05-ffd578937521
2005-11-07 07:46:44 +00:00
CaS
5af2d9d0a2 Spelling fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21962 72102866-910b-0410-8b05-ffd578937521
2005-11-06 13:53:40 +00:00
CaS
38e23cc6cb avoid some compiler warnings
fix oen inforrect use of ansi mingw function


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21956 72102866-910b-0410-8b05-ffd578937521
2005-11-05 17:41:01 +00:00
CaS
e6fd4ca0d1 mingw32 unicode fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21955 72102866-910b-0410-8b05-ffd578937521
2005-11-05 16:20:19 +00:00
CaS
9d64352859 more mingw32 updates
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21951 72102866-910b-0410-8b05-ffd578937521
2005-11-05 05:58:43 +00:00
CaS
abc019bbfe Deprecate old message access method ... we can be a lot more efficient if
we don't have to support it.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21922 72102866-910b-0410-8b05-ffd578937521
2005-10-30 12:46:26 +00:00
CaS
7cf5a73522 Debug/fix new window specific handling code ... allow generic (null)
window handle only if window specific code is not called.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21921 72102866-910b-0410-8b05-ffd578937521
2005-10-30 12:08:54 +00:00
CaS
02c7ccf532 Fix accidentally exposed private headers.
Implement code to handle windows messages on a per-window basis.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21916 72102866-910b-0410-8b05-ffd578937521
2005-10-30 10:42:42 +00:00
CaS
593f86be62 Various patches/fixes (mingw)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21898 72102866-910b-0410-8b05-ffd578937521
2005-10-28 20:39:17 +00:00
CaS
6ebfe03cf3 Optionally store defaults in windows registry.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21854 72102866-910b-0410-8b05-ffd578937521
2005-10-23 06:35:33 +00:00
CaS
7b4766b748 More moves towards making registry usable on win32
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21842 72102866-910b-0410-8b05-ffd578937521
2005-10-18 16:19:08 +00:00
CaS
7a43bb1ba9 Start work to apply patch to hold user defaults in registry.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21840 72102866-910b-0410-8b05-ffd578937521
2005-10-18 05:28:44 +00:00
CaS
e72d18365b Attempted fix for systems where sizeof(int) < sizeof(void*)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21770 72102866-910b-0410-8b05-ffd578937521
2005-10-04 11:54:03 +00:00
fedor
376e495dad * Update FSF Address.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21245 72102866-910b-0410-8b05-ffd578937521
2005-05-22 03:32:16 +00:00
CaS
62bd7f6782 Tidyups and fix in mingw drive handling
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20911 72102866-910b-0410-8b05-ffd578937521
2005-03-15 09:30:56 +00:00
fedor
61aee49c82 * Continuation of NSPathUtilities patches
* configure.ac: Add config-file option
* Headers/Foundation/NSPathUtilities.h: Add GSFindNamedFile, more
NSSearchPathDirectory enums.
* Source/GNUmakefile: Don't install Win32 headers.
* Source/NSPathUtilities.m (InitializePathUtilities, ...): Add
support for reading standard path locations from a configuration
file. Various support functions added/removed to fit.
(GSFindNamedFile): New function.
(GSSetUserName): Do nothing if the user is the same.
(NSHomeDirectoryForUser): Use Windows utilities to get user name
(on Windows, of course).
(NSFullUserName): Default to NSUserName on Windows.
(GSSystemRootDirectory): Mark as deprecated.
(GSDefaultsRootForUser): Correctly return the actual defaults
directory, not the user directory.
(GSStandardPathPrefixes): Mark as deprecated.
(NSSearchPathForDirectoriesInDomains): Add platform paths and
additional search directories.
* Source/NSUserDefaults (pathForUser): Correct use of
GSDefaultsRootForUser. Remove obsolete path checking and
defaults location checking. (Patches from Sheldon Gill
with some modifications).

* Documentation/Base.gsdoc: Update documentation.
* Headers/Additions/GNUstepBase/Win32_Utilities.h,
Source/win32/Win32_Utilities.m: Fix function arguments.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20908 72102866-910b-0410-8b05-ffd578937521
2005-03-15 04:24:26 +00:00
CaS
f92b8f24ef Tidyups to avoid compiler warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20863 72102866-910b-0410-8b05-ffd578937521
2005-03-07 11:19:34 +00:00
fedor
a504a2adde Fix some syntax errors
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20839 72102866-910b-0410-8b05-ffd578937521
2005-03-03 17:20:19 +00:00
fedor
5c7a02d672 * Start on integrating Sheldon Gills NSPathUtilities patches.
* Headers/Foundation/NSPathUtilities.h: Depreciate
GSSystemRootDirectory, GSStandardPathPrefixes. Add
GSPreferencesDirectory to NSSearchPathDirectory enum. Enumerate
NSSearchPathDomainMask values.
* Headers/Additions/GNUStepBase/Win32Support.h,
Headers/Additions/GNUStepBase/Win32_Utilites.h: New files.
* Source/GNUmakefile: Add NSPathUtilities.m
* Source/NSUser.m: Move everything in here...
* Source/NSPathUtilities.m: to here.
* Source/win32/GNUmakefile: Add Win32Support.m, Win32_Utilities.m
* Source/win32Win32Support.m, Win32_Utilities.m: New files
* Testing/nspathutilites.m: New file.
(Files and patches from Sheldon Gill with minor modifications).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20837 72102866-910b-0410-8b05-ffd578937521
2005-03-03 16:04:22 +00:00
CaS
813f640a49 Apply modified patch to support windows native event handling
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20785 72102866-910b-0410-8b05-ffd578937521
2005-02-23 16:05:09 +00:00