1 Mon Dec 23 13:35:27 1996 Jeremy Allison <jra@cygnus.com>
3 * Makefile.in: Added $(srcdir)/../libstdc++/stl -I$(srcdir)/../libio
4 to the include path. As mmap uses STL then this is needed
5 to build the cross compiler. Also added mmap.o file.
6 * cygwin.din: Added mmap, mprotect, msync, munmap.
7 * dcrt0.cc: Added code to get the module pathname from
8 a previously unused field in the u area so fork() calls
9 don't have to search the path. Forwards compatible with
10 earlier releases as they set this field to zero.
11 * fork.cc: Added call to recreate_mmaps_after_fork() in
12 child code. Ensures child has same view of mmap'ed areas
14 * libccrt0.cc: (See dcrt0.cc change). Setup the module
15 handle so fork can get the path name.
16 * mmap.cc: New file. Implements mmap, mprotect, msync, munmap,
17 recreate_mmaps_after_fork. Uses STL.
18 * select.cc: Added code to set errno to EINVAL if select done
19 on handles and sockets. Must fix this soon.
20 * spawn.cc: Set new variable hmodule in u area to zero for child.
21 * syscalls.cc: Added fsync functionality. No longer a dummy call.
22 * winsup.h: Decremented internal_reserved array by one to add
23 hmodule in u area. Added prototype for recreate_mmaps_after_fork().
24 * include/sys/mman.h: Fixed include file for mmap calls.
26 Tue Dec 17 16:20:52 1996 Geoffrey Noer <noer@cygnus.com>
28 * syscalls.cc (_rename): fix code so we really do
29 return -1 if _rename fails.
31 Tue Dec 17 12:12:29 1996 Jeremy Allison <jra@cygnus.com>
33 * fhandler.cc: Added Sergeys patch for FakeReadFile.
34 * cygwin.din: Re-ordered network calls.
36 Mon Dec 16 16:47:26 1996 Geoffrey Noer <noer@cygnus.com>
38 * configure.in: remove AC_C_CROSS (now part of AC_PROG_CC)
39 * utils/configure.in: ditto
40 * configure: regenerate
41 * utils/configure: regenerate
43 Mon Dec 16 14:50:46 1996 Geoffrey Noer <noer@cygnus.com>
45 * cygwin.din: export cygwin32_getsockopt
47 patch from sos@prospect.com.ru (Sergey Okhapkin):
48 * spawn.cc: don't assume all scripts should be run in
49 bash -- run the shell specified after the #!
51 Fri Dec 13 16:18:22 1996 Jeremy Allison <jra@cygnus.com>
53 * path.cc: Added support for UNC paths.
55 Fri Dec 13 10:56:21 1996 Jeremy Allison <jra@cygnus.com>
57 * cygwin.din: Added h_errno, seteuid, _seteuid.
58 * exceptions.cc: Made init_exceptions extern "C".
59 * exceptions.h: Added cplusplus wrappers to enable this to
61 * net.cc: Added error numbers, fixed gethostbyaddr, added h_errno
63 * stubs.cc: Added seteuid.
64 * include/mywinsock.h: Added HOST error entries for DNS lookups.
66 Tue Dec 10 15:38:46 1996 Geoffrey Noer <noer@cygnus.com>
68 * version.h: bump CYGWIN_DLL_VERSION_MINOR to 4
70 patch from Marcus Daniels <marcus@sysc.pdx.edu>:
71 * fhandler.cc: add fhandler_dev_null::dup (fhandler_base *child)
72 * fhandler.h: add matching header
74 gnu-win32 beta 17.1 release made
76 Thu Dec 5 14:03:08 1996 Geoffrey Noer <noer@cygnus.com>
78 * select.cc: add missing end comment at about line 933.
79 gnu-win32 beta 17 release made
81 Wed Dec 4 15:53:11 1996 Geoffrey Noer <noer@cygnus.com>
83 * version.h: increment minor dll number in conjunction
84 with gnu-win32 beta 17 release
86 Tue Dec 3 15:05:57 1996 Geoffrey Noer <noer@cygnus.com>
88 * strsep.cc: new file containing Berkeley-copyrighted strsep
89 code previously in misc.cc.
90 * misc.cc: strsep moved to strsep.cc, stop including
91 unistd.h, strings.h, sys/types.h, stddef.h, and stdarg.h
92 * Makefile.in: appropriate adjustments to add strsep.cc
94 Tue Dec 3 13:50:59 1996 Geoffrey Noer <noer@cygnus.com>
96 * include/sys/copying.dj: new file whose presence is
97 required by include/sys/file.h
99 Tue Dec 3 13:37:27 1996 Geoffrey Noer <noer@cygnus.com>
101 Throughout all Cygnus-developped source files: put all
104 Tue Dec 3 10:54:01 1996 Jeremy Allison <jra@cygnus.com>
106 * fork.cc: Changed code to delete [] saved child_hinfo
107 after allocate_pid called. Needed as child changes this
108 value in the shared area when it de-linearizes fd array.
109 Needed to stop race condition with earlier fix.
110 * winsup.h: Changed definition of item in hinfo to be
111 a char array rather than fhandler_console. Stops
112 destructor being called when fork delete [] of
114 * hinfo.cc: Changes (casts) to support winsup.h changes.
116 Mon Dec 2 17:22:13 1996 Geoffrey Noer <noer@cygnus.com>
118 * include/utime.h: add ifdef _UTIME_U wrapper around header
120 Mon Dec 2 15:45:46 1996 Jeremy Allison <jra@cygnus.com>
122 * fork.cc: Fixed file descriptor resource leak in parent.
123 * registry.cc: Removed fatal error if registry key cannot
124 be opened. Causes errors in service code.
126 Wed Nov 27 15:40:15 1996 Geoffrey Noer <noer@cygnus.com>
128 * cygwin.din: for MS compatibility, also export functions
129 as _funcname = funcname
131 * include/sys/socket.h:
132 Do the equivalent thing for functions exported as cygwin32_funcname
134 Wed Nov 27 15:14:30 1996 Geoffrey Noer <noer@cygnus.com>
136 * cygwin.din: remove exported helper functions that shouldn't
137 need to be exported (_read et al)
138 * glob/Makefile.in: add SHELL definition
139 * utils/Makefile.in: add SHELL definition
141 Mon Nov 25 14:24:52 1996 Geoffrey Noer <noer@cygnus.com>
143 * include/commdlg.h, ddeml.h, winadvapi.h, winbase.h, wincon.h,
144 windef.h, windowsx.h, winerror.h, wingdi.h, winkernel.h, winnt.h,
145 wintypes.h, winuser.h, winversion.h:
146 Add MS-style header files back, each of which now includes our
147 windows.h. This should allow compilation of Windows code
148 that expects normal MS-named headers as long as the information
149 is in our windows.h somewhere. The appropriate wrappers have
150 been added to each file so windows.h isn't included more than
152 * include/windows.h: add paranoia wrapper so it can be included
155 Mon Nov 18 22:19:40 1996 Geoffrey Noer <noer@cygnus.com>
157 * Makefile.in: change rules around so new-cygwin.dll is
158 only rebuilt when necessary
159 * spawn.cc: include <stdlib.h>
161 Mon Nov 18 21:08:15 1996 Geoffrey Noer <noer@cygnus.com>
163 * net.cc: remove extern "C"s that shouldn't be there
164 (get_win95_ifconf, get_winnt_ifconf, get_if_flags)
165 * syscalls.cc: remove extern "C"s from num_entries, _stat_worker
166 * winsup.h: add extern "C"s for syscalls protos
168 Mon Nov 18 20:35:39 1996 Geoffrey Noer <noer@cygnus.com>
170 * winsup.h: include version.h
171 * Makefile.in: remove dependencies involving version.h, but add
172 version.h to winsup.h dependency line and also add others that
173 should also be there.
177 * shared.cc: delete includes of version.h
179 Mon Nov 18 20:16:37 1996 Geoffrey Noer <noer@cygnus.com>
181 * stubs.c -> stubs.cc, add extern "C"s
182 * uname.c -> uname.cc, add extern "C"s
183 * console.cc: add extern "C"s, remove include windows.h
184 since its already included in winsup.h
185 * dirsearch.cc: add extern "C"s
186 * fcntl.cc: add extern "C"s
187 * winsup.h: remove LEAN_AND_MEAN define since that's no longer
188 relevant with new windows headers, include version.h
189 * malloc.cc: fix typos
191 Mon Nov 18 18:02:31 1996 Geoffrey Noer <noer@cygnus.com>
193 * grp.c renamed to grp.cc, add extern "C"s
194 * misc.c renamed to misc.cc, add extern "C"s
196 Mon Nov 18 16:08:26 1996 Geoffrey Noer <noer@cygnus.com>
198 * syscalls.cc: extern "C"'d function calls
199 * net.cc: extern "C"'d function calls, some respacing
200 * hinfo.cc: extern "C"'d function calls, some respacing
201 * syscalls.h: removed defines for MIN, errno, alloca(x),
202 DEFAULT_GID/UID, NOT_OPEN_FD(fd), STD_RBITS et al,
204 * winsup.h: added what was just deleted from syscalls.h
206 Mon Nov 18 15:56:22 1996 Jeremy Allison <jra@cygnus.com>
208 * cygwin.din: Added readv
209 * syscalls.cc: Added readv code.
210 * syscalls.h: Added readv prototype.
212 Wed Nov 13 15:55:14 1996 Geoffrey Noer <noer@cygnus.com>
214 * cygwin.din: added C++-related exports for stuff in
215 libgcc.a (from new.o, tinfo.o, tinfo2.o, exception.o).
217 Mon Nov 11 15:50:26 1996 Geoffrey Noer <noer@cygnus.com>
228 need to #include <stdlib.h> which used to be included
229 automatically in windows.h included by winsup.h.
230 * shared.cc: UnmapViewOfFile takes a void *, not a
232 * malloc.cc: formatting fixes
234 Fri Nov 8 17:31:55 1996 Jeremy Allison <jra@cygnus.com>
236 * select.cc: Added fix for HANDLE select sent by
238 * fhandler.h: Changed dup to return int. Can now
239 return error to dup2.
240 * fhandler.cc: Changed dup to return error code.
241 Corrected fhandler_console::close to return
243 * hinfo.cc (dup2): Check return code from
245 * times.cc: Changed DST calculation as tm struct
246 month starts at zero, NT wMonth starts at 1.
247 * TODO: Added the things i'd like to do.
249 Wed Nov 6 17:42:31 1996 Geoffrey Noer <noer@cygnus.com>
251 * Makefile.in: Changed name of base file for cygwin.dll from
252 base to cygwin.base. Changed name of exp file for cygwin.dll
253 from win.exp to cygwin.exp. Updated dependency list, removing
254 recently removed files like libcfork.cc, added missing files,
255 and added all missing header dependencies. Small formatting
258 Fri Nov 1 16:38:48 1996 Geoffrey Noer <noer@cygnus.com>
260 * TODO: deleted old stuff from a long time ago, added some
263 * added public domain disclaimers to all files missing them,
264 reformatting of non-imported code to conform to GNU standards.
266 delqueue.h, exceptions.h, fcntl.cc, fhandler.h, grp.c,
267 init.cc, ioctl.cc, key.cc, libcctype.c, libcerr.cc, libcmain.cc,
268 misc.c, path.h, pold.c, resource.cc, smallprint.c, strerror.cc,
269 syslog.cc, termios.cc, test.c, version.h, wait.cc
271 Fri Nov 1 14:44:29 1996 Jeremy Allison <jra@cygnus.com>
273 * fhandler.h: Added is_console() method needed by
275 * fhandler.cc (fhandler_console::init): Added c_oflag setting
276 dependent on bin parameter.
277 * select.cc: Added code to implement select from console
278 handles. Ignores keyup events and still blocks.
280 Wed Oct 30 16:35:41 1996 Jeremy Allison <jra@cygnus.com>
282 * fhandler.h: Removed fhandler_console_in, fhandler_console_out
283 and integrated them both into fhandler_console. Added output_handle_
284 so fhandler console has two handles.
285 * fhandler.cc: Updated to support changes in fhandler.h. It is now
286 possible to open("/dev/tty") and read/write to the same fd.
287 * hinfo.cc(build_fhandler): Removed references to obsolete classes.
288 * spawn.cc: Changed to get correct reference to output_handle_ for
289 fhandler_console class.
290 * console.cc: Changed to get output handle rather than input handle.
291 * winsup.h: Changed definition of prototypes for functions changed
294 Wed Oct 30 13:05:33 1996 Geoffrey Noer <noer@cygnus.com>
300 * include/cygwin32/icmp.h
301 * include/cygwin32/ip.h
302 * include/cygwin32/sockios.h
303 * include/cygwin32/types.h
304 * include/cygwin32/uio.h
305 * include/sys/ttychars.h
306 Added comment with name of header to each so that these are no
307 longer empty files (some unzip programs won't create
308 zero-length files which is a problem for headers)
310 Sun Oct 27 17:30:03 1996 Geoffrey Noer <noer@cygnus.com>
312 * cygwin.din: also export "_execl = execl" and the same
313 for _execle and _execlp
315 Thu Oct 24 01:43:29 1996 Geoffrey Noer <noer@cygnus.com>
317 * include/windows.h: rewritten to include headers from
318 the include/Windows32 subdirectory
319 * winsup.h: no longer define MAX_PATH here since it's defined
320 in header files dragged in by windows.h
321 * dirsearch.cc (readdir): change WIN32_FIND_DATAA to WIN32_FIND_DATA
322 * libccrt0.cc: #include <stdlib.h>
323 * syscalls.cc (_unlink): chmod file to be unlinked to be
324 writable and try to delete it again if first delete failed
325 with permission denied error (rm will now work on read-only files)
326 (num_entries): change WIN32_FIND_DATAA to WIN32_FIND_DATA
327 * include/commdlg.h: delete
328 * include/ddeml.h: delete
329 * include/winadvapi.h: delete
330 * include/winbase.h: delete
331 * include/wincon.h: delete
332 * include/windef.h: delete
333 * include/windowsx.h: delete
334 * include/winerror.h: delete
335 * include/wingdi.h: delete
336 * include/winkernel.h: delete
337 * include/winnt.h: delete
338 * include/wintypes.h: delete
339 * include/winuser.h: delete
340 * include/winversion.h: delete
342 Wed Oct 23 10:43:05 1996 Jeremy Allison <jra@cygnus.com>
344 * dcrt0.cc (api_fatal): Changed locking clear of
345 process table to unlocking clear. Needed as lock code calls
347 * exceptions.cc: Added debug_printfs to follow exceptions in
349 * pinfo.cc: Added code to ensure fd table is cleared when new
350 pid entry allocated. Fixed bug when process is terminated
351 violently by TerminateProcess and leaves fd table non-zero.
352 * termios.cc: Changed stubbed out syscalls to syscall_printf
353 rather than small_printf. Stops annoying tcdrain message.
354 * winsup.h: Made get_empty_pinfo call private to pinfo_list.
355 Should never be called external to this class.
357 Tue Oct 22 16:14:23 1996 Jeremy Allison <jra@cygnus.com>
359 * hinfo.cc: Removed previous change. This is not the
360 correct place to flush input events.
362 Tue Oct 22 09:25:32 1996 Jeremy Allison <jra@cygnus.com>
364 * dcrt0.cc: Fixed up exit code to clean up pinfo array.
365 * exceptions.cc: Fixed up exit code to clean up pinfo array.
366 * fork.cc: Tidied up access to inuse_p entry. Added flags
367 to allow different states to be represented.
368 * hinfo.cc: Added code to flush pending events if
370 * pinfo.cc (pinfo::record_death): Added code to clean
371 the pinfo array if we are an exiting parent.
372 * spawn.cc: Removed erroneous code to clean childs
374 * wait.cc: Changed WAIT_ERROR_RC to Win32 WAIT_FAILED.
375 Tidied up access to pinfo array.
376 * winsup.h: Added record_death_nolock to pinfo class.
377 Added PID_XXX types for inuse_p.
379 Tue Oct 22 01:26:52 1996 Geoffrey Noer <noer@cygnus.com>
381 * include/Windows32/Base.h:
382 * include/Windows32/Functions.h:
383 * include/Windows32/Structures.h:
384 * include/Windows32/UnicodeFunctions.h:
385 Fixes to just commited changes
387 Mon Oct 21 19:58:50 1996 Geoffrey Noer <noer@cygnus.com>
389 * include/Windows32/ASCIIFunctions.h:
390 * include/Windows32/Base.h:
391 * include/Windows32/Defines.h:
392 * include/Windows32/Functions.h:
393 * include/Windows32/Structures.h:
394 * include/Windows32/UnicodeFunctions.h:
396 Add back items in old include files (commdlg.h, ddeml.h,
397 shellapi.h, winadvapi.h, winbase.h, wincon.h, windef.h,
398 windowsx.h, winerror.h, wingdi.h, winkernel.h, winnt.h,
399 wintypes.h, winuser.h, winversion.h) which should now be able
400 to be erased and windows.h modified to point to the new headers
401 without anything nasty happening.
403 * include/WINREADME: deleted
404 * include/mywinsock.h: removed many blank lines
406 Mon Oct 21 09:48:00 1996 Jeremy Allison <jra@cygnus.com>
408 * select.cc: Re-written from scratch. Take account of
409 the following cases. (1). All sockets [written&works]
410 (2). Handles, sockets and always readies [written,not tested]
411 (3). All handles [written,not tested]. (4). Handles & sockets
412 with timeout [not yet written,returns -1]. Correctly blocks
413 and doesn't spin cpu.
414 * pinfo.cc: Changed to add global lock around pinfo array.
415 * fork.cc: Changed to use global pinfo lock.
416 * shared.cc: Fixed bug with fork()->exec()->exec() code.
417 * net.cc: Removed select_init() call (no longer used).
418 * spawn.cc: Implemented suggestion that spawn creates
419 process suspended, then sets up it's dwProcessId entry
420 in the shared pinfo array.
421 * wait.cc: Changed to use global pinfo lock.
422 * winsup.h: Added missing windows_95() call.
423 * fhandler.h: Changed ifdefs to select new always_ready
425 * fhandler.cc (fhandler_console::write): Fixed bug
426 where return of write_normal was being ignored.
427 * dcrt0.cc: Added code to use global pinfo lock.
428 Ensure that process records it's own death.
429 * exceptions.cc: Added code to clear our entry in pinfo
430 array when we are exiting. Should reduce dead processes in
432 * include/winbase.h: Added MAXIMUM_WAIT_OBJECTS define.
434 Mon Oct 21 00:52:17 1996 Geoffrey Noer <noer@cygnus.com>
436 * Makefile.in: install headers from new Windows32 dir
438 Sat Oct 19 00:47:58 1996 Geoffrey Noer <noer@cygnus.com>
440 * include/Windows32/Base.h: change DWORD to unsigned int from
441 unsigned long, change __WIN32__ checks to _WIN32, change
444 Fri Oct 18 17:33:07 1996 Geoffrey Noer <noer@cygnus.com>
446 * include/Windows32/Defines.h: change INFINITE to 0xFFFFFFFF,
447 add back definitions present in old winsup headers missing from
448 this file (STATUS_WAIT_0 et al, CONTEXT stuff, FAR, PACKED,
450 * include/Windows32/Functions.h: change // comments to /* */
451 * include/Windows32/Messages.h: add definitions for WM_NULL,
452 WM_PENWINFIRST, WM_PENWINLAST
453 * include/Windows32/Sockets.h: change __WIN32__ checks to _WIN32
454 * include/Windows32/Structures.h: add ppc case for CONTEXT
455 structure, change // comments to /* */
457 Fri Oct 18 17:25:09 1996 Geoffrey Noer <noer@cygnus.com>
459 * include/Windows32: new directory for Windows headers
460 * include/Windows32/ASCIIFunctions.h:
461 * include/Windows32/Base.h:
462 * include/Windows32/Defines.h:
463 * include/Windows32/Errors.h:
464 * include/Windows32/Functions.h:
465 * include/Windows32/Messages.h:
466 * include/Windows32/Sockets.h:
467 * include/Windows32/Structures.h:
468 * include/Windows32/UnicodeFunctions.h:
469 New Win32 headers from Scott Christley's windows32api-0.1.2 package
470 with no local modifications.
472 Wed Oct 16 17:16:33 1996 Geoffrey Noer <noer@cygnus.com>
474 * key.cc: remove extra blank lines, change ASCIICHAR to AsciiChar
475 * registry.cc: remove #include <winbase.h> since it's already
476 included in windows.h
478 Tue Oct 15 09:51:48 1996 Jeremy Allison <jra@cygnus.com>
480 * fhandler.h: Many changes to support moving fhandler array out of
481 shared area into locally allocated memory. Removed fhandler class,
482 fhandler_base is now root of class tree. Re-arranged class definitions
483 to make it clear what functions are virtual and can be overridden.
484 Inlined may accessor functions.
485 * fhandler.cc: Many changes to support moving fhandler array out of
486 shared area into locally allocated memory. unix_path_name_ is now
487 always set (all fhandler_base classes have a name).
488 * hinfo.cc: Many changes to support moving fhandler array out of
489 shared area into locally allocated memory. Added linearization and
490 de-linearization functions.
491 * net.cc(socket): Added code to keep name for fhandler_socket.
492 * pinfo.cc : Changed allocation of fhandler_base array to be in local
493 memory rather than in shared area. (modified functions are pinfo_init,
494 pinfo_list::get_empty_pinfo, pinfo_list::allocate_pid,
495 pinfo::record_death).
496 * shared.cc: Added functions to copy fd area for spawned process.
497 Changed name of shared area to include master version number of
499 * spawn.cc (spawn_guts): Added code to initialize new shared area
501 * syscalls.cc: Changed all code depending on NOFILE to use
502 getdtablesize(). Added internal setdtablesize() call for exec'ed
504 * syscalls.h: Added getdtablesize().
505 * sysconf.cc (sysconf): Changed SC_OPEN_MAX to return getdtablesize().
506 * winsup.h: Moved fhandler array out of shared area. Changed from
507 fhandler to fhandler_base (new root of class tree).
508 * include/mywinsock.h: Updated #endif to make end of
509 __INSIDE_CYGWIN32__ clear.
510 * include/winkernel.h: Added UnmapViewOfFile call.
512 Mon Oct 14 14:59:16 1996 Geoffrey Noer <noer@cygnus.com>
514 * sysdef/i386: replace all files with ones from Scott
515 Christley's windows32api-0.1.2 package. Still need to
516 integrate new headers.
518 Mon Oct 14 13:41:14 1996 Geoffrey Noer <noer@cygnus.com>
520 * syscalls.cc (_unlink): need to fchmod file to writable
521 before attempting to delete. This change still needs more
522 work (fchmod isn't written yet).
523 * (fchmod): change comment
525 Fri Oct 11 22:27:17 1996 Geoffrey Noer <noer@cygnus.com>
527 * fhandler.cc, fhandler.h: minor fixes to console
528 support functions (remove missed reference to gotarg2,
529 definition in fhandler.h)
531 Wed Oct 9 17:55:00 1996 Geoffrey Noer <noer@cygnus.com>
533 * delqueue.cc: added copyright notice, reformatted file
535 from sos@prospect.com.ru (Sergey Okhapkin):
536 * fhandler.cc, fhandler.h: add/fix ansi/vt100 console support,
538 (modified functions are fhandler_console_out::clear_screen,
539 fhandler_console_out::clear_to_eol,
540 fhandler_console_out::char_command,
541 fhandler_console_out::write,
544 Wed Oct 9 17:32:17 1996 Jeremy Allison <jra@cygnus.com>
546 * times.cc: Swapped gmtime and localtime (they were
547 incorrectly reversed).
548 Added is_dst determination to them both.
549 * misc.c: Added swab, ffs.
550 * fcntl.cc(fcntl): Added capability for lock calls.
551 * fhandler.h: Added lock method into fhandler class.
552 * fhandler.cc: Added NT/Win95 semantics locks into ::lock
553 made them pretend they are POSIX locks.
554 * syscalls.cc (writev): Fixed return value bug.
555 * net.cc: Added WSAEOPNOTSUPP error.
556 * cygwin.din: Added ffs and swab.
557 * include/strings.h: Added file (just include string.h).
558 * include/winbase.h: Added defines LOCKFILE_FAIL_IMMEDIATELY
559 and LOCKFILE_EXCLUSIVE_LOCK.
560 * include/winerror.h: Added define ERROR_LOCK_FAILED.
562 Thu Oct 3 16:19:23 1996 Jeremy Allison <jra@cygnus.com>
564 * fhandler.h: Many changes - removed all public variables
565 from classes, replaced with accessor functions. Renamed all
566 class variables to add a trailing '_'. This makes reading
567 and understanding which variables are class variables much simpler.
568 Changed name member to unix_path_name_ and made dynamic rather
569 than a fixed 31 byte buffer per entry.
570 * fhandler.cc: Updated varable access for above.
571 * fcntl.cc: Updated varable access for above.
572 * hinfo.cc: Updated varable access for above.
573 * spawn.cc: Updated varable access for above.
574 * syscalls.cc: Added fsync (null call) and fchmod(null
576 * net.cc: Added ioctls for SIOCGIFCONF and SIOCGIFFLAGS.
577 Added ntohs, ntohl, static functions get_winnt_ifconf,
578 get_win95_ifconf and get_if_flags.
579 * include/cygwin32/if.h: Added structs for new ioctls.
580 * include/cygwin32/socket.h: Added iovec include.
581 * include/asm/socket.h: Added defines for above ioctls.
582 * cygwin.din: Added ntohs, ntohl, fsync, fchmod.
584 Wed Oct 2 17:34:21 1996 Geoffrey Noer <noer@cygnus.com>
586 * utils/configure.in: add call to AC_CANONICAL_SYSTEM
587 * utils/configure: regenerate
588 * Makefile.in: build cygwin.dll as new-cygwin.dll and install as
589 cygwin.dll to prevent confusion when building winsup natively
591 Tue Oct 1 17:27:34 1996 Jeremy Allison (jra@cygnus.com)
593 * include/regex.h: Added.
594 * net.cc: Added WSAECONNRESET, WSAEPFNOSUPPORT to
597 Tue Oct 1 15:40:39 1996 Jeremy Allison (jra@cygnus.com)
599 * fork.cc (cygwin_fork_helper1): Fixed resource leak of process
600 handles, added cleanup code. Also fixed timout problem when child
601 cannot be initialized.
602 * dirsearch.cc (readdir): Changed comparison to explicitly check for
603 INVALID_HANDLE_VALUE. Test < 0 fails with void *.
604 * syscalls.cc (num_entries): Changed comparison to explicitly check for
605 INVALID_HANDLE_VALUE. Test < 0 fails with void *.
606 * cygwin.din: Added regcomp, regexec, regerror, regfree.
607 * Makefile.in: Added EXTRA_OFILES containing ../librx/rx.o. Added
608 comment to explain makefrag. Added ../newlib/libc/include to include
611 Mon Sep 30 16:10:56 1996 Stu Grossman (grossman@critters.cygnus.com)
613 * cygwin.din: Remove getopt and friends.
615 Fri Sep 27 18:31:28 1996 Jeremy Allison <jra@cygnus.com>
617 * dcrt0.cc (dll_crt_1): Moved initialization of _reent to correct
620 Fri Sep 27 14:24:05 1996 Jeremy Allison <jra@cygnus.com>
622 * dcrt0.cc (dll_crt_1): Fixed fork bug with _impure_ptr not being
623 initialized correctly in a forked child. This should fix
624 the bash echo in a sub-shell bug.
625 * include/sys/uio.h: Created file. Contains definitions for writev
626 * include/limits.h: Added IOV_MAX and SSIZE_MAX.
627 * syscalls.cc: Added writev, changed read and write to return ssize_t.
628 * syscalls.h: Added writev, changed read and write to return ssize_t.
629 * cygwin.din: Added writev call.
631 Wed Sep 20 13:09:00 1996 Jeremy Allison <jra@cygnus.com>
633 * include/mntent.h: Added MOUNTED definition, needed by
635 * dcrt0.cc : Added __progname for getopt code.
636 * misc.c: Added getw code.
637 * cygwin.din: Added getopt, optarg, opterr, optind
638 optopt, putw, getw calls.
640 Fri Sep 20 03:03:17 1996 Geoffrey Noer <noer@cygnus.com>
642 * select.cc: change long millisec to unsigned int,
645 patch from Sergey Okhapkin <sos@prospect.com.ru>:
646 * select.cc (polled): fix for select to get keyboard input
647 working properly (check EventType != KEY_EVENT instead
648 of checking for KeyEvent.AsciiChar == 0)
649 * select.cc (cygwin32_select): make int i unsigned int so NULL is
650 a valid timeout argument for loop
652 Fri Sep 13 18:21:52 1996 Jeremy Allison <jra@cygnus.com>
654 * fhandler.cc (fhandler_base::read): rewrite text mode read
656 Fri Sep 13 14:58:17 1996 Geoffrey Noer <noer@cygnus.com>
658 * exceptions.cc (call_handler): fix control-C not working
659 problem by setting rethere variable before the old value is
662 Thu Sep 12 16:27:00 1996 Jeremy Allison <jra@cygnus.com>
664 * syslog.cc (pass_handler) : Removed duplicate code
665 in pass_handler::print(). Added get_win95_event_log_path()
666 to facilitate moving to registry configuration.
668 Thu Sep 12 12:56:00 1996 Jeremy Allison <jra@cygnus.com>
670 * syslog.cc : Added real openlog, syslog, logmask, closelog
671 calls. syslog logs to event log on NT, file on Win95.
672 * include/winnt.h : added EVENTLOG_xx_TYPE definitions.
673 * include/winadvapi.h : added ReportEventA, RegisterEventSourceA
674 DeregisterEventSourceA declarations.
675 * include/winkernel.h : added LockFile, UnlockFile, LockFileEx,
676 UnlockFileEx declarations.
677 * include/wintypes.h : added PSID typedef.
678 * include/sys/syslog.h : added options flag definitions for openlog.
680 Wed Sep 11 15:34:09 1996 Geoffrey Noer <noer@cygnus.com>
682 * fhandler.cc (popen): delete stub in favor of newlib's
683 (pclose): delete stub in favor of newlib's
685 Tue Sep 10 17:20:56 1996 Geoffrey Noer <noer@cygnus.com>
687 * configure.in: don't transform names (the only time this might
688 be a good idea is for unix x cygwin32)
689 * configure: regenerated with autoconf
691 Tue Sep 10 17:20:56 1996 Geoffrey Noer <noer@cygnus.com>
693 patch from Sergey Okhapkin <sos@prospect.com.ru>:
694 * fhandler.cc (FakeReadFile): support arrow keys, stop treating
695 bringing window to front as a key down (resulting in random
696 characters being printed in bash).
698 Mon Sep 9 19:09:36 1996 Geoffrey Noer <noer@cygnus.com>
700 * syscalls.cc (system): fix system call
702 Fri Sep 6 09:33:13 1996 Doug Evans <dje@canuck.cygnus.com>
704 * fhandler.h (fhandler_base): Make execable_p public char, not
705 private signed char. Delete get_execable.
706 * fhandler.cc (fhandler_base::get_execable): Renamed to
708 (fhandler_base::open): Restore symlink support.
709 Set execable_p, symlink_p.
710 (fhandler_base::fstat): Replace call to get_execable with reference
712 (fhandler_base::fhandler_base): Set execable_p to 0.
713 * path.h (symlink_check): Declare it.
714 * path.cc (symlink_check): New function.
716 (symlink_follow): Likewise. New arg EXEC, callers updated.
717 * syscalls.cc (_stat_worker): New arg CALLER, callers updated.
719 * syscalls.cc: Delete all occurences of in/out and MARK.
721 Thu Sep 5 18:51:01 1996 Doug Evans <dje@canuck.cygnus.com>
723 * fork.cc: Don't include <ctype.h>. Delete find_exec and support.
724 * spawn.cc: Include <ctype.h>. Move find_exec and support here.
725 (perhaps_suffix): New argument report_failure_p, callers updated.
726 (find_exec_1): Use perhaps_suffix when scanning PATH.
727 (spawn_guts): Replace code to translate posix to win32 path lists
728 with calls to utility fns that do the job.
730 Wed Sep 4 13:30:57 1996 Doug Evans <dje@canuck.cygnus.com>
732 * path.cc (readlink): Make more bulletproof.
734 Wed Aug 28 16:44:24 1996 Geoffrey Noer <noer@cygnus.com>
736 * syscalls.cc (system): use execlp
737 * public release beta 16 made
739 Tue Aug 27 09:58:14 1996 Doug Evans <dje@canuck.cygnus.com>
741 * version.h (CYGWIN_DLL_VERSION_MINOR): Bump up to 2.
743 Mon Aug 26 15:12:44 1996 Geoffrey Noer <noer@cygnus.com>
745 * syscalls.cc (system): added basic system() call.
747 Mon Aug 26 13:46:30 1996 Doug Evans <dje@canuck.cygnus.com>
749 * cygwin.din (cygwin_fork_helper__FPvN30): Delete.
751 * fork.cc (prepare_child): Delete, contents moved into
753 (cygwin_fork_helper): Delete, contents moved into __fork.
754 * winsup.h (cygwin_fork_helper): Delete.
756 * path.cc: #include <fcntl.h>.
757 (symlink,readlink): Reenable, rewrite.
758 (symlink_follow): New function.
759 * path.h (symlink): Delete.
760 (SYMLINK_COOKIE, MAX_LINK_DEPTH): Define.
761 (symlink_follow): Declare.
762 * spawn.cc (spawn_guts): Rewrite symlink support.
764 * syscalls.cc (_unlink): Make arg a const char *.
765 * winsup.h (_unlink): Likewise.
767 * spawn.cc (spawn_guts): Fix allocation of stack space for sh.exe path.
769 * include/sys/errno.h: Deleted. Use newlib's.
771 Fri Aug 23 16:00:00 1996 Jeremy Allison <jra@cygnus.com>
773 * net.cc (getdomainname): Changed win95 code to open
774 "System" key rather than "SYSTEM". I think the registry
777 Thu Aug 22 17:04:09 1996 Geoffrey Noer <noer@cygnus.com>
779 move fork into the dll:
780 * libcfork.cc: deleted
781 * fork.cc (vfork): used to be in libcfork.cc
782 * (__fork): used to be in libcfork.cc
783 * (fork): used to be in libcfork.cc
784 * Makefile.in: don't build libcfork.cc any more
785 * libccrt0.cc: set data_start, etc. from dll structure
786 * winsup.h: add data_start, etc. to public vars in dll
787 * cygwin.din: list fork
789 Thu Aug 22 01:36:53 1996 Geoffrey Noer <noer@cygnus.com>
791 * registry.cc: fix new registry code
792 * syscalls.cc: make Windows95 check function extern "C"
794 Wed Aug 21 16:15:47 1996 Geoffrey Noer <noer@cygnus.com>
796 * cygwin.din: list vfork
797 * dirsearch.cc: fix errno setting in readdir that caused
798 diff to not function on directories
799 * pipe.cc: reformatted
801 Wed Aug 21 15:12:47 1996 Jeremy Allison <jra@cygnus.com>
803 * net.cc (domainname): Changed getdomainname to get the
804 information from the registry.
805 * registry.h: Modified interface to reg_key.
806 * registry.cc: Added open(),close() calls, made
807 get/set string values return error indication, added trailing
808 underscore to hkey member so it can be seen to
810 * include/winadvapi.h: Added KEY_READ and KEY write
811 defines for registry access.
813 Mon Aug 19 09:22:35 1996 Doug Evans <dje@canuck.cygnus.com>
815 * path.cc (split_path): New function.
816 * path.h (split_path): Declare it.
817 * cygwin.din (cygwin32_split_path): Export it.
819 * include/winkernel.h (FILE_SHARE_DELETE): Define.
821 * syscalls.cc (__do_global_[cd]tors], __main): Move from here.
824 * dcrt0.cc (recur): Restore (now that we know WHY it was needed).
825 (dll_crt0_1): Probe forked child's stack out.
827 * fork.cc (FORK_WAIT_TIMEOUT): Bump up to two minutes.
829 * fork.cc (dump_jmp_buf): New function.
830 (cygwin_fork_helper1): Call it.
831 * dcrt0.cc (dll_crt0:1): Call it.
832 * winsup.h (dump_jmp_buf): Declare it.
834 * fork.cc (cygwin_fork_helper1): Reenable child suspend before
837 Sat Aug 17 04:06:36 1996 Geoffrey Noer <noer@cygnus.com>
839 * dirsearch.cc: reformatted, removed a couple of gotos
841 Thu Aug 15 17:56:08 1996 Geoffrey Noer <noer@cygnus.com>
843 * cygwin.din: added __eprintf, a newlib function needed by assert.
844 * times.cc: swap gmtime and localtime (gmtime really was localtime
847 Tue Aug 13 03:46:22 1996 Geoffrey Noer <noer@cygnus.com>
849 * signal.cc: renamed all signal variables "sig",
850 fixed signal range error checking in all relevant functions,
855 * cygwin.din: added corresponding entries for new signal functions.
856 * cygwin.h: added protos for them
857 * fhandler.cc, fhandler.h: major reformat of code
858 * net.cc (cygwin32_socket): call checkinit() at start to
859 initialize WinSock in case it isn't already.
860 * syscalls.cc (access): set errno appropriately when no
862 * fcntl.cc: reformatting
864 Sat Aug 10 16:30:14 1996 Geoffrey Noer <noer@cygnus.com>
866 * signal.cc (_raise): rewrite to shorten code, corrected
868 * fcntl.cc, net.cc, signal.cc, stubs.c: reformatted, added
869 public domain notice at the tops if they were missing.
871 Fri Aug 9 18:19:12 1996 Geoffrey Noer <noer@cygnus.com>
873 * syscalls.cc (_rename): return -1 if file to be renamed
874 doesn't exist. Reformatted whole file.
875 * fork.cc: increase timeout value to 60 sec from 30 sec
877 Thu Aug 8 17:44:39 1996 Jim Wilson <wilson@cygnus.com>
879 * config/i386/longjmp.c: Increment %eax if it is zero.
881 Wed Aug 7 15:51:04 1996 Geoffrey Noer <noer@cygnus.com>
883 * include/sys/mman.h: fixed defines for PROT_READ et al to
884 match what's more normally there in unix
885 * sysdef/i386/*: removed the extra underscores present in most
886 of these files that shouldn't have been there
887 * net.cc: cleaned up whitespace, formatting
889 Tue Jul 16 12:43:16 1996 Doug Evans <dje@canuck.cygnus.com>
891 * libccrt0.cc (__version): Deleted, unused.
893 * uname.c (uname): Print CYGWIN_DLL_VERSION is version field.
895 Mon Jul 15 16:48:29 1996 Doug Evans <dje@canuck.cygnus.com>
897 * version.h (CYGWIN_DLL_VERSION_MINOR): Bump up to 1.
899 Path handling clean up, pass 2 (use //<letter>, not /.<letter>.).
900 * path.cc (SLASH_DRIVE_PREFIX_LEN): Delete.
901 (slash_drive_to_win32_path): New function.
902 (mount_info::posix_path_p): Delete support for $CYGWIN,
904 (path_conv::path_conv): Call slash_drive_to_win32_path.
905 (mount_info::conv_to_win32_path): Renamed from
906 posix_path_to_win32_path. All callers updated.
907 (mount_info::conv_to_posix_path): Renamed from
908 win32_path_to_posix_path. All callers updated.
909 (normalize_posix_path): Keep two leading /'s (or \'s).
910 (normalize_win32_path): Likewise.
911 (conv_to_{win32,posix}_path): Renamed from
912 {posix,win32}_path_to_{win32,posix}_path_keep_rel.
913 (conv_to_full_{win32,posix}_path): Renamed from
914 {posix,win32}_path_to_full_{win32,posix}_path.
915 (posix_path_list_p): New function.
916 (cygwin32_{unix,dos}_path_to_{dos,unix}_path_keep_rel): Delete.
917 ({unix,dos}_path_to_{dos,unix}_path): Delete.
918 ({win32,posix}_to_{posix,win32}_path_list_buf_size): Renamed from
919 cygwin32_{win32,posix}_to_{posix,win32}_path_list_buf_size.
920 ({win32,posix}_to_{posix,win32}_path_list): Renamed from
921 cygwin32_{win32,posix}_to_{posix,win32}_path_list.
922 (slash_drive_prefix_p): Recognize //<letter>, not /.<letter>.
923 (build_slash_drive_prefix): Update.
925 * cygwin.din ({dos,unix}_path_to_{unix,dos}_path): Delete.
926 (cygwin32_{dos,unix}_path_to_{unix,dos}_path_keep_rel): Delete.
927 (cygwin32_conv_to_{posix,win32}_path): Renamed from
928 (cygwin32_{win32,posix}_path_to_{posix,win32}_path_keep_rel.
929 (cygwin32_conv_to_full_{posix,win32}): New exports.
930 (cygwin32_posix_path_list_p): New export.
931 * dcrt0.cc (path_len): Delete.
932 (PATH_ENV_BUF_SIZE): Delete.
933 (conv_path_names): Delete all but PATH.
934 (dll_crt0_1): Rewrite environment variable conversion code.
935 * fork.cc (find_exec_1): Delete _SC_PATH_RULES support. Determine
936 path delimiter by calling posix_path_list_p.
937 * shared.cc (shared_info::initialize): Delete `path_rules'.
938 * sysconf.cc (sysconf): Delete _SC_PATH_RULES.
939 * winsup.h (shared_info): Delete `path_rules'.
941 * fork.cc (cygwin_fork_helper1): Reset u->forkee after child has
944 * pinfo.cc (pinfo::init_from_fork): Delete. Empty function.
945 * fork.cc (cygwin_fork_helper1): Delete call to it.
947 * utils/kill.cc (usage): New function.
948 (main): Allow multiple pids to be passed. Call usage.
950 Mon Jul 15 13:07:23 1996 Michael Meissner <meissner@tiktok.cygnus.com>
952 * Makefile.in (install): If cross compiling, install the
953 cygwin.dll file as $target_alias-cygwin.dll in the bin directory,
954 instead of plain cygin.dll.
955 Install the cygwin.dll file in the library directory as well.
957 * configure.in: Test for cross compiling, and if cross compiling,
958 transform name of cygwin.dll file in the binary directory.
960 * configure: Regenerate.
962 * utils/Makefile.in (Makefile): Rebuild Makefile if configure.in
964 (install): Use the toplevel install.sh to install the utilities,
965 and transform the name if cross compiling.
967 * utils/configure.in: Test for cross compiling, and if cross
968 compiling, tranform mount, umount, ps, etc. Do not call
969 AC_PROG_INSTALL anymore.
971 * utils/configure: Regenerate.
973 Fri Jul 12 16:25:09 1996 Geoffrey Noer <noer@cygnus.com>
975 * Makefile.in: also make install in utils subdir so "mount"
976 et al gets installed.
978 Thu Jul 11 17:53:31 1996 Geoffrey Noer <noer@cygnus.com>
980 * include/sys/param.h: fixed value of HZ (now 1000 instead of 100).
981 caused bug that showed up as "time sleep 5" returning 50.
983 Thu Jul 11 14:08:09 1996 Geoffrey Noer <noer@cygnus.com>
985 * fhandler.cc: correct typo in comment
986 * exceptions.cc: remove definition of sig_func_ptr, replace
987 occurances with newlib-defined _sig_func_ptr.
989 Wed Jul 10 19:12:18 1996 Doug Evans <dje@canuck.cygnus.com>
991 * version.h (CYGWIN_DLL_VERSION_{MAJOR,MINOR}): Bump up to 17.0.
992 * winsup.h (class per_process): New members {public,internal}_reserved.
993 (SIZEOF_PER_PROCESS): Define.
994 * dcrt0.cc (dll_crt0_1): Add sanity check of per_process size.
995 Don't call checkout for forkee.
996 * libccrt0.cc (cygwin_crt0): Set magic_biscuit to sizeof per_process
999 * utils/ps.cc (main): Print uid.
1001 * hinfo.h: Deleted. Contents moved to winsup.h.
1002 * Makefile.in (WINSUP_H): Update.
1004 * dcrt0.cc (u, environ): Moved here.
1005 * shared.cc: From here.
1007 * pinfo.cc (pinfo_init): Renamed from pinfo_init_per_process.
1008 All callers updated.
1009 * hinfo.cc (hmap_init): Renamed from hmap_init_per_process.
1010 All callers updated.
1011 * winsup.h (cygwin_parent_p): Renamed from invoked_by_cygwin_p.
1014 * fork.cc (prepare_child): Add debug message.
1016 * uinfo.cc (uinfo_init): Renamed from uinfo::init.
1017 All callers updated. Call getlogin instead of GetUserName.
1018 (getlogin): Call GetUserName.
1019 * winsup.h (class uinfo): Delete. Members uid,gid moved ...
1020 (class pinfo): To here. All uses updated.
1021 (class shared_info): Delete member `u'.
1022 * fork.cc (cygwin_fork_helper1): Set child's uid,gid.
1024 * pinfo.cc (pinfo::clearout): Reset strace_mask_ptr.
1026 * shared.cc (open_shared_file_map): Add debugging message.
1028 Fri Jul 5 15:36:48 1996 Doug Evans <dje@canuck.cygnus.com>
1030 * exceptions.cc (sig_func_ptr): New typedef.
1031 (__stack_trace): Make i386 and ppc formats the same.
1032 (sigfunc): Use sig_func_ptr.
1033 (call_handler): Likewise. All callers updated.
1034 (__cygwin_exception_handler): Handle exceptions before dll has
1035 fully initialized. Only call dump_status once, like __stack_trace.
1036 (really_exit): Call _exit, not exit.
1038 * hinfo.cc: Add copyright.
1039 * uinfo.cc: Likewise.
1041 * passwd.c: Whitespace cleanup.
1042 (search_for): Make static.
1044 * pinfo.cc (pinfo_list::init): Delete call to clearout vec[0].
1045 (pinfo::clearout): Reset more fields.
1046 (pinfo_list::get_empty_pinfo): Delete printing of error messages
1049 * shared.cc (open_shared_file_map): Mark shared map as not inherited.
1051 * signal.cc (signal): Delete (void *) coersion of result.
1052 (usleep): Convert microseconds to milliseconds. Delete second copy.
1053 (_raise): Use _sig_func_ptr.
1055 * syscalls.h: Delete #include mntent.h, sys/types.h, string.h,
1056 stdio.h, setjmp.h, stdlib.h, signal.h, sys/strace.h, unistd.h,
1058 * winsup.h: #include sys/types.h, sys/strace.h, setjmp.h, signal.h,
1059 string.h, windows.h.
1060 * All necessary files updated.
1062 * winsup.h (class pinfo): Delete member localtime_buf.
1063 * times.cc (corelocaltime): Use static local for localtime_buf.
1065 * winsup.h (class pinfo): Rename the_pid to pid. All uses updated.
1066 Delete handle_valid_p, unused. Rename __sig_mask to sig_mask.
1068 Thu Jul 4 14:36:01 1996 Doug Evans <dje@canuck.cygnus.com>
1070 * shared.h: Deleted. All files updated.
1071 * winsup.h: shared.h contents moved here.
1072 * Makefile.in (WINSUP_H): Update.
1074 * heap.cc: Renamed from pproc.cc.
1075 (heap_init): Renamed from per_process::init.
1076 In forkee initialization, ensure memory being reserved is at same
1077 address as parent's. Commit forkee memory in one chunk.
1078 (_sbrk): Moved here,
1079 * syscalls.cc (_sbrk): From here.
1080 * Makefile.in (DLL_OFILES): Update.
1081 * dcrt0.cc (dll_crt0_1): Call heap_init instead of u->init.
1082 * winsup.h (class per_process): Delete member `init'.
1084 * dcrt0.cc (recur): Delete.
1085 (dos_argv_to_unix_argv): Delete.
1087 * delqueue.cc: Delete #include of delqueue.h, winerror.h
1088 * winsup.h: #include delqueue.h.
1090 * exceptions.cc (ctrl_c_handler): Only require 13 ^c's to quit task.
1092 * fork.cc (fork_mutex,forkee_stopped,forker_stopped): New static
1093 globals, were in class_shared info.
1094 (fork_init,fork_terminate): New functions.
1095 (prepare_child,cygwin_fork_helper1): Update.
1096 (cygwin_fork_helper1): If fork disabled, return EAGAIN.
1097 Delete unnecessary resetting of forkee_stopped event.
1098 * winsup.h (fork_init,fork_terminate): Declare them.
1099 * dcrt0.cc (dll_crt0_1): Call fork_init.
1100 (_exit): Call fork_terminate.
1101 * shared.c (shared_info::initialize): Delete init of fork stuff.
1103 * shared.c (h): New static global, was in class shared_info.
1104 (shared_info::terminate): Delete, move contents into shared_terminate.
1106 * strace.cc (flush_p): New static global.
1107 (strace_init): Don't clobber u->strace_mask if _STRACE_INHERIT set.
1108 (__sys_printf): Only flush buffers if _STRACE_FLUSH.
1109 * include/sys/strace.h (_STRACE_FLUSH,_STRACE_INHERIT): Define.
1110 Reorganize bitmasks.
1112 * utils/ps.cc (main): Make output prettier.
1114 Wed Jul 3 12:30:24 1996 Doug Evans <dje@canuck.cygnus.com>
1116 * utils/Makefile.in (mount,umount,ps,kill): Rewrite rules.
1117 (PROGS): Add cygwin.
1118 (cygwin): New target.
1119 (install): Install all of $(PROGS).
1120 * utils/cygwin.cc: New file.
1122 * pinfo.cc (pinfo_init_per_process): PID environment variable handling
1123 moved here. Delete setting of u->parent. Set strace_mask_ptr.
1124 Set invoked_by_cygwin_p appropriately.
1125 (vfork_init): Delete, unused.
1126 (pinfo::init_self): Delete setting of root_p.
1127 (pinfo::terminate): root_p renamed to invoked_by_cygwin_p.
1128 * winsup.h (class per_process): Delete initial_pid, no longer used.
1129 (class pinfo): Add strace_mask_ptr.
1130 * fork.cc (cygwin_fork_helper1): Update.
1132 * winsup.h (class per_process): Delete trace_file, trace_mutex.
1133 Rename estrace to strace_mask.
1134 (system_printf): Declare.
1135 * strace.cc (strace_init): Renamed from per_process::strace_init.
1136 Don't open trace file unless strace environment variable set.
1137 Open trace file with FILE_SHARE_READ so others can read trace file
1138 while tracing in progress. Print error if $strace too big.
1139 (strace_file, strace_mutex): New static globals.
1140 (__sys_printf): Don't do anything if strace file not opened.
1141 (system_printf): New function.
1142 * pproc.cc (per_process::init): Delete call to strace_init.
1143 * dcrt0 (dll_crt0_1): Call strace_init as soon as possible.
1145 * dcrt0 (dll_crt0_1): Delete local can_glob, use
1146 u->self->invoked_by_cygwin_p instead.
1147 Move PID environment variable handling into pinfo_init_per_process.
1148 Delete setting of u->self->in_bash.
1149 Delete watching for bash.
1150 * winsup.h (class pinfo): Delete in_bash.
1152 * exceptions.cc (*): Call system_printf, not __sys_printf.
1154 * shared.h (class shared_info): Delete pp, unused.
1156 * syscalls.cc (isatty): Replace ttyname with is_tty.
1158 * winsup.h (registry_init_once_only): Delete, unused.
1159 (stdout_handle,file_handle_from_fd): Likewise.
1160 (CHILD_P,child_p,ALL_FS,loadup_dll,cygwin_s): Likewise.
1161 (unmixedcaseify): Prototype moved to path.h.
1162 * path.h (unmixedcaseify): Declare.
1164 * fork.cc (FORK_WAIT_TIMEOUT, WAIT_ERROR_RC): Define.
1165 (find_exec_1): Don't search PATH if directory present (not only if
1166 absolute path). Search "." before searching PATH.
1167 (copy): Return boolean indicating success. All callers updated.
1168 (prepare_child): Simplify. Check return code of WaitForSingleObject.
1169 Don't wait an infinite amount of time.
1170 (cygwin_fork_helper1): Simplify.
1171 Check return code of WaitForSingleObject.
1172 Don't wait an infinite amount of time.
1173 Check return code of copy.
1174 Disable code to Suspend/Resume child thread a second time.
1176 * winsup.h (class per_process): Make initial_sp a char *.
1177 * libccrt0.cc (cygwin_crt0): Update.
1179 * path.cc (path_conv): If name too long, set path to bogus value.
1181 * include/winkernel.h (WriteProcessMemory): Fix prototype.
1183 * include/sys/strace.h: Add extern "C" ifdef __cplusplus.
1185 * dirsearch.cc (rewinddir): Use syscall_printf.
1187 Tue Jul 2 14:44:18 1996 Doug Evans <dje@canuck.cygnus.com>
1189 * wait.cc (WAIT_ERROR_RC): Use it instead of ALL_FS.
1190 (wait_found): New argument `options'. If GetExitCodeProcess fails,
1191 ensure `result' contains something reasonable.
1192 (wait_for_single): Check whether `c' is NULL before dereferencing it.
1193 (wait_for_any): Add some comments. Delete unnecessary gotos.
1194 (waitpid): Print message if called with intpid == 0.
1196 Sat Jun 29 10:49:28 1996 Doug Evans <dje@canuck.cygnus.com>
1198 * dirsearch.cc (readdir): Clean up syscall tracing.
1199 Mixed case handling temporarily disabled.
1201 Wed Jun 26 11:54:27 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1203 * Makefile.in (bindir, libdir, datadir, infodir, includedir):
1204 Use autoconf-set values.
1206 (install-info): Add.
1207 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1208 * configure: Rebuilt.
1209 * glob/configure.in (AC_PREREQ): autoconf 2.5 or higher.
1210 * glob/configure: Rebuilt.
1211 * utils/Makefile.in (bindir, exec_prefix): Use autoconf-set values.
1212 * utils/configure.in (AC_PREREQ): autoconf 2.5 or higher.
1213 * utils/configure: Rebuilt.
1215 Tue Jun 25 17:48:56 1996 Doug Evans <dje@canuck.cygnus.com>
1217 * include/sys/param.h (PATH_MAX,MAXPATHLEN): Change from 1024 to 259.
1218 (BIG_ENDIAN,LITTLE_ENDIAN,BYTE_ORDER): Define.
1220 Mon Jun 24 16:35:48 1996 Mark Eichin <eichin@cygnus.com>
1222 * fhandler.cc (read): Replace the old broken igncr code (which has
1223 been disabled for a while anyway) with code that checks for
1224 ENABLE_LINE_INPUT and replace only \r\n with \n.
1226 Mon Jun 24 00:12:22 1996 Doug Evans <dje@canuck.cygnus.com>
1228 * dcrt0.cc (dll_crt0_1): Convert argv[0] to posix style if necessary.
1230 Sun Jun 23 17:21:41 1996 Doug Evans <dje@canuck.cygnus.com>
1232 * version.h (CYGWIN_DLL_VERSION_MINOR): Bump up to 2.
1234 * fork.cc (perhaps_suffix): Simplify.
1235 (find_exec_1): Likewise. Always try appending .exe first.
1236 (cygwin_fork_helper1): Clean up (lots more needed still).
1237 Test for split heap before calling CreateProcess.
1238 No longer call find_exec, now done at start up.
1239 * dcrt0.cc (dll_crt0_1): Call find_exec to expand argv[0].
1241 * path.cc (conv_path_list_buf_size): New function.
1242 (cygwin32_{win32,posix}_to_{posix,win32}_path_list_buf_size): Ditto.
1243 (conv_path_list): Ditto.
1244 (cygwin32_{win32,posix}_to_{posix,win32}_path_list): Ditto.
1245 * cygwin.din: Export them.
1247 * misc.c (small_printf): Delete.
1248 (vhangup): Set errno.
1250 * syscalls.cc (isatty): Print syscall trace message even if error.
1252 * console.cc (*): Check return codes of win32 api calls.
1254 * syscalls.cc (chmod): Set errno of SetFileAttributes fails.
1255 Fix call to syscall_printf.
1257 Thu Jun 20 00:43:52 1996 Doug Evans <dje@canuck.cygnus.com>
1259 * dcrt0.cc (dll_crt0_1): Save full program name.
1260 * fork.cc (cygwin_fork_helper1): Always call find_exec.
1262 * path.cc (normalize_{posix,win32}_path): Fix edge case handling.
1263 (path_conv::path_conv): Ensure path is \-ified if win32 path rules.
1265 * spawn.cc (spawn_guts): Set errno if CreateProcess fails.
1267 Wed Jun 19 00:18:03 1996 Doug Evans <dje@canuck.cygnus.com>
1269 * path.h (PATH_RULES macros): Delete. Use ones in unistd.h.
1270 (enum path_rules_enum): Deleted. All uses updated.
1271 (path_conv): Rename member get_native to get_win32. All uses updated.
1272 (*win32_path*): Renamed from *native_path*.
1273 * path.cc (*win32_path*): Renamed from *native_path*.
1274 (mount_info::posix_path_p): Prepend '_' to PATH_RULES.
1275 Fix returning of cached value.
1276 (slash_drive_prefix_p, build_slash_drive_prefix): New functions.
1277 (mount_info::posix_path_to_win32_path): /.<letter>. is a drive spec.
1278 (path_conv::path_conv): Likewise.
1279 (mount_info::win32_path_to_posix_path): Convert unknown drives to
1280 /.<letter>. Normalize win32_path.
1281 (normalize_win32_path): New functions.
1282 (getcwd_inner): New arg `posix_p'. All callers updated.
1283 * shared.cc (shared_info::initialize): Prepend '_' to PATH_RULES.
1284 _PATH_RULES_NATIVE -> _PATH_RULES_WIN32.
1285 * spawn.cc (*win32_path*): Renamed from *native_path*.
1286 * dcrt0.cc: Likewise.
1287 * cygwin.din: Likewise.
1289 * Makefile.in (WINSUP_H): Add shared.h
1291 * smallprint.c (rn): Make static.
1293 * sysconf.cc: Renamed from sysconf.c.
1294 (sysconf): Support _SC_PATH_RULES.
1296 * screen.c: Deleted.
1297 * Makefile.in (DLL_OFILES): Delete screen.o.
1299 * fork.cc (cygwin_fork_helper): Don't pass 0 from longjmp to setjmp.
1301 * path.h (class mount_info): Update posix_path_to_native_path member.
1302 * path.cc (path_prefix_p): Rewrite.
1303 New arg `len'. All callers updated.
1304 (mount_info::binary_native_path_p): Call path_prefix_p.
1305 (path_conv::path_conv): Pass full_path to binary_native_path_p.
1306 (mount_info::posix_path_to_native_path): Delete arg keep_rel_p.
1307 New arg full_native_path. All callers updated. Don't call
1308 getcwd_inner if unnecessary. Rewrite relative path handling.
1309 (mount_info::native_path_to_posix_path): Call path_prefix_p.
1310 Call slashify on `pathbuf', not original argument.
1312 * syscalls.cc (chdir): Fix lifetime of converted path.
1314 Tue Jun 18 11:48:51 1996 Doug Evans <dje@canuck.cygnus.com>
1316 * configure.in (EXE_LDFLAGS): Explicitly link with newlib if necessary.
1317 * configure: Regenerated.
1318 * Makefile.in (EXE_LDFLAGS): Define.
1319 (FLAGS_TO_PASS): Add EXE_LDFLAGS.
1320 (config.status): New target.
1321 (utils-all): Depend on $(LIBNAME).
1322 * utils/Makefile.in (EXE_LDFLAGS): Define.
1323 (mount,umount,ps,kill): Link with $(EXE_LDFLAGS).
1325 * version.h (CYGWIN_DLL_VERSION_MINOR): Bump up to 1.
1327 Mon Jun 17 18:29:54 1996 Doug Evans <dje@canuck.cygnus.com>
1329 Improve pathname handling, first pass.
1330 * path.h (symlink): Renamed from link_cookie.
1331 (class path_conv): New member error.
1332 (path_conv::get_native): Renamed from get_dos, all uses updated.
1333 (path_conv::get_binary): Delete.
1334 (mount_info::{mangle,reverse_mangle}): Delete.
1335 (mount_item::posix_path_to_native_path): Renamed from mangle.
1336 (mount_info::native_path_to_posix_path): Renamed from reverse_mangle.
1337 (path_rules_enum): Define.
1338 * path.cc: Temporarily disable mixed-case and symlink handling.
1339 (mount_info::posix_path_p): New function.
1340 (mount_info::binary_native_path_p): Renamed from binary_dos_path_p.
1341 (path_conv::path_conv): Handle native path rules.
1342 (mount_item::{mangle,reverse_mangle}): Delete.
1343 (mount_info::posix_path_to_native_path): Renamed from mangle.
1344 (mount_info::native_path_to_posix_path): Renamed from reverse_mangle.
1345 (mount_info::from_registry): Set nmounts. Use MAX_PATH.
1346 (mount_info::{add,del}_item): Rewrite.
1347 (slashify): Renamed from flip_slash.
1348 (getcwd_inner): Make static. Don't convert to posix path if using
1350 (file_exists): Delete.
1351 (addmntent,hasmntopt): Delete.
1352 (mount): Only update registry if mount succeeded.
1353 (umount): Only update registry if umount succeeded.
1354 (normalize_posix_path): Renamed from normalize_path. Pass in cwd.
1355 (cygwin32_{posix,native}_path_to_{native,posix}_path_keep_rel): Renamed
1356 from ...{unix/dos}....
1357 * dcrt0.cc (dos_argv_to_unix_argv): #ifdef out.
1358 (dll_crt0_1): Don't call it.
1359 * fhandler.cc (fhandler_base::open): Temporarily disable symlinks.
1360 * shared.cc (open_shared_file_map): New function.
1361 (shared_init): Call it.
1362 (shared_info::initialize): Fetch `path_rules' from registry.
1363 * shared.h (inited): Make private.
1364 (path_rules): New member.
1365 * spawn.cc: #include "shared.h".
1366 (spawn_guts, env var translation): Don't translate path names if
1367 using native path rules.
1368 * syscalls.cc (symlink): Delete (moved to path.cc).
1369 * cygwin.din (dump__5pinfo): Delete.
1370 (cygwin32_{posix,native}_path_to_{native,posix}_path_keep_rel): Renamed
1371 from ...{unix/dos}....
1373 * smallout.cc: Delete.
1375 * shared.cc (u,s,environ): Define here.
1376 * Makefile.in (glob/libglob.a): Depend on glob/glob.c, glob/fnmatch.c.
1377 (utils-all): New target.
1378 (DLL_OFILES): Delete smallout.o, sdata.o.
1379 (Makefile): Depend on cygwin.din.
1380 (WINSUP_H): Depend on syscalls.h.
1382 * configure.in (AC_CONFIG_SUBDIRS): Add bin.
1383 (AC_PROG_INSTALL): Call.
1384 * configure: Regenerated.
1385 * utils/{Makefile.in,configure.in,configure}: New files.
1386 * utils/{kill.cc,mount.cc,ps.cc,umount.cc,termcap}: New files.
1387 * Makefile.in (UTILS_ALL): Define.
1388 (all): Depend on $(UTILS_ALL).
1389 (utils-all): New target.
1391 * dcrt0.cc (recur): Make no-op to see what happens.
1392 (globify): Don't call glob if unnecessary.
1393 Check return code from glob.
1394 (api_fatal): New function.
1395 * fhandler.cc (fhandler_base::read): Dump first few chars read.
1396 (fhandler_base::get_execable): New function.
1397 (fhandler_base::fstat): Use it.
1398 (fhandler_base::fhandler_base): Init execable_p.
1399 (fhandler_disk_file::fhandler_disk_file): Delete execable_p.
1400 (fhandler::{get,set}_execable_bit): Delete.
1401 (fhandler_disk_file::{get,set}_execable_bit): Delete.
1402 * fhandler.h (class fhandler): Delete {get,set}_execable_bit.
1403 (class fhandler_base): New member execable_p.
1404 New member fn get_execable.
1405 * fork.cc: Simplify/cleanup.
1406 (cygwin_fork_helper1): Use MAX_PATH, not MAXPATHLEN.
1407 * pinfo.cc (pinfo::dump): Delete.
1408 * pproc.cc (per_process::set_envname): Delete.
1409 * strace.cc (smallout::do_pline): Delete.
1410 * syscalls.h (readlink): Third arg is an int.
1411 * winsup.h (class pinfo, member progname): Use MAX_PATH.
1412 (class pinfo, member dump): Delete.
1413 (class smallout): Delete.
1415 (class per_process, member set_envname): Delete.
1416 (file_exists): Delete.
1417 (api_fatal): Declare.
1418 * Makefile.in (LIB{C,CXX}FLAGS_FOR_TARGET): Delete, use {C,CXX}FLAGS.
1419 (FLAGS_TO_PASS): Define.
1420 (glob/libglob.a): Delete duplicate entry.
1422 * syscalls.cc (_sbrk): Update u->size when heap is grown.
1424 * hinfo.cc (hmap_init_per_process): Ensure stdout's handle != stderr's.
1426 Fri Jun 14 06:32:13 1996 Doug Evans <dje@canuck.cygnus.com>
1428 * register.h, registry.cc: Whitespace cleanup.
1430 Thu Jun 13 20:57:28 1996 Doug Evans <dje@canuck.cygnus.com>
1432 * Makefile.in (install): Install cygwin.dll in $(bindir).
1434 Tue Jun 11 13:46:17 1996 Geoffrey Noer <noer@cygnus.com>
1436 * fhandler.cc: lseek is now only binary mode, interpret control
1437 z characters as EOF when reading from a file. Reformatted some
1438 of the code (cleaned up line spacing, etc.)
1440 Tue Jun 11 09:50:09 1996 Jason Molenda (crash@kyriath.cygnus.com)
1442 * path.cc (nofinalslash): move it so it is next to its friends
1443 flip_slash and backslashify.
1445 Mon Jun 10 18:57:03 1996 Jason Molenda (crash@kyriath.cygnus.com)
1447 * path.cc (*): Pretty printing.
1448 (unix_path_to_dos_path_with_rel): use "dosnamein" and "unixnameout"
1449 instead of "path" & "real_path".
1450 (dos_path_to_unix_path_keep_rel): delete obsolete code.
1451 (mount_item::mangle): use "unixnamein" and "dosnameout" instead of
1452 "unixname" and "dosname".
1453 (mount_info::mangle): use "unixnamein" and "dosnameout". Remove
1455 * path.h (mount_item): Update prototypes, add comment.
1456 (mount_info): Update prototypes.
1458 Mon Jun 10 17:05:23 1996 Jason Molenda (crash@kyriath.cygnus.com)
1460 * path.cc (mount_item::reverse_mangle): Pretty printing,
1461 add a bit to the comment.
1462 (getcwd_inner): use MAX_PATH not MAXPATHLEN.
1463 (normalize_path): use MAX_PATH not MAXPATHLEN.
1464 (link_cookie::follow): use MAX_PATH not MAXPATHLEN.
1466 Mon Jun 10 15:36:32 1996 Geoffrey Noer <noer@cygnus.com>
1468 * Makefile.in: changed $(DOC) so it doesn't include html
1469 files; made a new info-html target that does the html
1470 versions of the docs. Since most customers don't have texi2html
1471 installed, the make shouldn't fail because of this.
1472 * configure: regenerated with autoconf 2.8
1474 Sun Jun 9 17:10:37 1996 Doug Evans <dje@canuck.cygnus.com>
1476 * version.c: Deleted.
1477 * version.h: New file.
1478 * winsup.h (VERSION): Deleted.
1479 (class per_process): Add version_major, version_minor. Delete version.
1480 * registry.cc: #include "version.h".
1481 (reg_session::reg_session): Update.
1482 * libccrt0.cc: #include "version.h"
1483 (cygwin_crt0): Delete setting of version, set magic_biscuit to 0.
1484 Set version_major, version_minor.
1485 * dcrt0.cc: #include "version.h".
1486 (cygwin_dll_version_{major,minor}): New static locals.
1487 (dll_crt0_1): Rewrite app/dll compatibility test.
1488 * Makefile.in (LIBCOS): Delete version.o.
1489 (DLL_OFILES): Delete version.o.
1490 (dcrt0.o,libccrt0.o,registry.o): Depend on version.h.
1492 * exceptions.h: New file.
1493 * exceptions.cc: Massive cleanups (still lots more to go).
1494 #include "exceptions.h".
1495 (init_exceptions): Renamed from __init_exceptions. New argument of
1496 pointer to exception handler list entry.
1497 (init_exception_handler): Renamed from init_thread_exceptions.
1498 Rewrite based on info from Onno Hovers <onno@stack.urc.tue.nl>.
1499 (ppc descriptor_to_{function,gotattr}): Make static.
1500 (i386 __stack_trace): Fix test for top of stack.
1501 * dcrt0.cc: #include "exceptions.h".
1502 (dll_crt0_1): Exception handler list entry must live on stack.
1503 * winsup.h (class pinfo): Delete member myp.
1504 * syscalls.h (struct exception_list): Delete.
1505 (__really_exit, __init_exceptions): Delete.
1506 * Makefile.in (dcrt0.o,exceptions.o): Depend on exceptions.h.
1508 Fri Jun 7 17:49:28 1996 Jason Molenda (crash@phydeaux.cygnus.com)
1510 * dcrt0.cc (conv_path_names): Add GCC_EXEC_PREFIX.
1512 Fri Jun 7 14:38:05 1996 Doug Evans <dje@canuck.cygnus.com>
1514 * Makefile.in (CC_FOR_TARGET,LD,DLLTOOL): Define.
1515 (AR,RANLIB): Set via configure.
1516 * configure.in (AR,LD,DLLTOOL): Set.
1517 (AC_PROG_RANLIB): Call.
1518 * configure: Regenerated.
1520 Thu Jun 6 12:11:23 1996 Kim Knuttila <krk@cygnus.com>
1522 * dcrt0.cc (dll_crt0_1): Removed reference to reent_data._next.
1524 Tue Jun 4 15:52:29 1996 Geoffrey Noer <noer@cygnus.com>
1526 * include/winkernel.h: fixed typo
1528 Tue May 28 13:08:25 1996 Doug Evans <dje@canuck.cygnus.com>
1530 * syscalls.cc (_sbrk): Fix test of return value from VirtualAlloc.
1531 Delete lincr, make incr signed, and use only it. Misc. minor cleanup.
1533 Thu May 23 17:31:57 1996 Geoffrey Noer <noer@cygnus.com>
1536 * path.h: change MAXMOUNTS to 30 instead of 20
1537 * sysdef/i386/rpcndr.def: add "none" to end of file
1538 * fhandler.cc: fix memset call to say sizeof (*buf) instead
1540 * include/winuser.h: define MDIS_ALLCHILDSTYLES
1541 * Makefile.in: entry to build glob/libglob.a:
1543 Thu May 23 10:38:43 1996 Doug Evans <dje@canuck.cygnus.com>
1545 * fhandler.h (class fhandler_base): Make `name' private and shrink
1547 (set_name): Declare.
1548 * fhandler.cc (fhandler::set_name): New function.
1549 (fhander_base::open): Call it.
1550 (fhander_base::init): Call it.
1551 (fhandler_tty::ttyname): Call get_name instead of accessing `name'
1554 * dcrt0.cc (dll_crt0_1): Call ExitProcess instead of exit if
1555 DLL and APP are out of sync.
1557 Thu May 16 03:07:18 1996 Mark Eichin <eichin@cygnus.com>
1559 * fhandler.cc (FakeReadFile): new function. Interface like
1560 ReadFile, only called from fhandler_console_in::read, calls
1561 ReadFile unless we're really reading from STD_INPUT_HANDLE and
1562 with ENABLE_LINE_INPUT turned off, in which case we use
1563 ReadConsoleInput instead. When using ReadConsoleInput, always read
1564 all available events, but only block if we don't get at least one
1565 actual character. This would be the place to implement FIONBIO on
1566 the console tty, which doesn't actually exist yet.
1567 (dbg_input_event): copied from select.cc, debugging code to show
1568 detail of what events we're actually getting.
1569 (ioctl): off-by-one on window size.
1571 Wed May 15 18:11:16 1996 Jim Wilson <wilson@chestnut.cygnus.com>
1573 * fhandler.h (class fhandler_base): Use MAXPATHLEN not 100 for size
1576 Wed May 15 11:14:46 1996 Doug Evans <dje@canuck.cygnus.com>
1578 * fork.cc (cygwin_fork_helper1): More debugging printf's.
1580 * dcrt0.cc (num_ms_env_vars): Renamed from ms_env_arity.
1581 (build_argv): Renamed from fill.
1582 (compute_argc): Renamed from prepare.
1583 * libccrt0.cc (cygwin_statu): Make static.
1584 * pproc.cc (per_process::init): Move strace initialization from here,
1585 * strace.cc (per_process::strace_init): To here.
1586 Pass FILE_SHARE_WRITE to CreateFileA. Print error message if open
1587 of log file fails. Create mutex for trace messages.
1588 (__sys_printf): Always write to end of disk files. Use mutex.
1590 * winsup.h (class per_process): Add strace_init. Reorganize.
1591 `run_ctors' renamed to `run_ctors_p'. New member `trace_mutex'.
1595 * Makefile.in: Add header file dependencies.
1597 * dcrt0.cc (_exit): Add debugging printf.
1598 * shared.h (class shared_info): Rename member mutex_a to fork_mutex.
1599 * fork.cc (cygwin_fork_helper1): Update.
1600 Return with error if process slot unavailable.
1601 Set errno and release fork_mutex if failed because of split heap.
1602 * shared.cc (shared_info::terminate): Update.
1603 (shared_info::initialize): Update.
1605 Tue May 14 14:59:32 1996 Doug Evans <dje@canuck.cygnus.com>
1607 * fork.cc (cygwin_fork_helper1): Avoid SIGSEGV if allocate_pid fails.
1609 * pproc.cc (per_process::init): Fix test.
1611 * winsup.h (): Rename member `parent' to `ppid'.
1612 * fork.cc (prepare_child): Update.
1613 (cygwin_fork_helper1): Likewise.
1614 * hinfo.cc (hmap_init_per_process): Likewise.
1615 (hinfo_vec::dup_for_fork): Fix message.
1616 (hinfo_vec::dup2): Fix args to debug_printf. Delete extra printf's.
1617 * pinfo.cc (pinfo_init_per_process): Update.
1618 (pinfo::dump): Likewise.
1619 (pinfo::init_self): Likewise.
1620 * pproc.cc (per_process::init): Open strace file in append mode.
1621 * smallprintf.c (__small_vsprintf): Support %p.
1622 * syscalls.cc (getppid): Update.
1623 * wait.cc (wait_for_any): Likewise.
1625 Mon May 13 13:45:36 1996 Mark Eichin <eichin@cygnus.com>
1627 * fhandler.cc (ioctl): fix TIOCGWINSZ handling: (1) check the
1628 error return (2) if we're trying on STD_INPUT_HANDLE, substitute
1629 STD_OUTPUT_HANDLE since GetConsoleScreenBufferInfo only works on
1630 console output (3) check srWindow for the *screen* size, instead
1631 of checking dwSize for the scroll buffer size.
1633 * include/sys/errno.h (ECONNABORTED): add another errno value.
1634 * net.cc (errmap): add ECONNABORTED case.
1636 * fhandler.cc (fstat): clear the *entire* stat buf, not just the
1639 Fri May 10 17:59:09 1996 Mark Eichin <eichin@cygnus.com>
1641 * select.cc: change most debugging statements to select_printf.
1642 (dbg_input_event): new function, prints an INPUT_RECORD via select
1644 (polled): Don't sleep around WaitForMultipleObjects; let it have a
1645 10ms timeout until we have time to test it with 0. If
1646 WaitForMultipleObjects says that STD_INPUT_HANDLE has data, use
1647 PeekConsoleInput to scan the available events. If the first one is
1648 not a *bKeyDown* with a non-zero *AsciiChar* then use
1649 ReadConsoleInput to rip it off the queue, and pretend it wasn't
1650 there, so that later calls to read (and thus ReadFile) don't block
1651 because they can't find any *real* input. (This could be optimized
1652 later to check the whole queue, and if there are *no* real input
1653 events, nuke them all.)
1655 * include/sys/strace.h (_STRACE_SELECT, select_printf): new printf
1656 category, because select needs a *lot* of work. STRACE=256 to use it.
1658 * fhandler.cc (fhandler_console_in::init): IGNCR can't work
1659 without major changes to deal with the interaction with select
1660 (which shouldn't wake up if IGNCR causes the whole input to be
1661 deleted...) so don't make it the default.
1662 (fhandler_console_out::tcgetattr, fhandler_tty::tcgetattr): don't
1663 set IGNCR based on get_r_binary either.
1665 Wed May 8 20:20:05 1996 Mark Eichin <eichin@cygnus.com>
1667 * times.cc (__to_clock_t): must cast dwLowDateTime to *unsigned*
1668 before adding it -- otherwise we may subtract it!
1671 Wed May 8 18:21:28 1996 Mark Eichin <eichin@cygnus.com>
1673 * times.cc (corelocaltime): new function. Basic localtime from
1674 newlib, with no conversions.
1675 (gmtime): just calls corelocaltime.
1676 (localtime): uses GetTimeZoneInformation, biases to standard time
1677 first, then uses DaylightDate and StandardDate to figure out if
1678 we're in DST -- and calls corelocaltime a second time with the
1679 rebiased seconds, if we are.
1680 (times): add debug_printf statements which work around apparent
1681 compiler bug and 7+ minute error.
1683 * select.cc: revert to <sac>'s changes of 4/20 which were
1684 accidentally backed out on 4/24.
1686 Tue May 7 05:29:42 1996 Mark Eichin <eichin@cygnus.com>
1688 * times.cc (__to_clock_t): subtract out FACTOR, the difference
1689 between 1601 and 1970, just like to_time_t() does.
1691 Tue May 7 01:55:06 1996 Mark Eichin <eichin@cygnus.com>
1693 * times.cc (gmtime): new function. Use GetTimeZoneInformation to
1694 compensate ahead before calling localtime (since the newlib
1695 version doesn't know what timezone we're in.)
1696 (localtime): use SECSPERMIN, not 60, to show that we know what
1697 we're talking about.
1699 * net.cc (errmap): add WSAEADDRINUSE, WSAECONNREFUSED mappings.
1701 Sun May 5 00:45:59 1996 Mark Eichin <eichin@cygnus.com>
1703 * include/sys/socket.h: add recvfrom macro and cygwin32_recvfrom
1704 declaration. Remove htons/htonl misdeclarations as they collide
1705 with the macros in asm/byteorder.h.
1707 * include/asm/byteorder.h: enable the ntohl/ntohs declarations so
1708 we at least get the macro versions when we optimize, even if the
1709 library hooks aren't there.
1711 Wed Apr 24 23:42:49 1996 Steve Chamberlain <sac@dilithium.transmeta.com>
1713 * winsup.h (pinfo, pinfo_list): Remove dummy item.
1714 * fork.cc (*): Revert changes of Apr 2.
1716 Sun Apr 21 17:00:14 1996 Steve Chamberlain <sac@slash.cygnus.com>
1718 * wait.cc (wait_for_any): Fix the wait heuristic.
1720 Sat Apr 20 13:22:03 1996 Steve Chamberlain <sac@slash.cygnus.com>
1722 * Makefile.in (.cc.o): Pass -fno-rtti.
1723 * dcrt0.cc (globify): A single match is ok.
1724 * exceptions.cc (i386 call_handler): optimize.
1725 * fhandler.cc (fhandler_console_in::read): Handle ICRNL right.
1726 (*:get_name *:always_ready): New.
1727 * select.cc: Understand that console output doesn't signal when it's
1730 Fri Apr 12 14:49:34 1996 Doug Evans <dje@canuck.cygnus.com>
1732 * Makefile.in (glob/libglob.a): Pass -I so glob.c finds right dirent.h.
1734 Wed Apr 10 16:13:30 1996 steve chamberlain <sac@slash.cygnus.com>
1736 * Makefile.in (glob/libglob.a): Call glob makefile correctly.
1737 * winsup.h (pinfo, pinfo_list): Reorder elements to avoid
1738 alignment bug in PPC gcc.
1740 Tue Apr 9 17:23:57 1996 steve chamberlain <sac@slash.cygnus.com>
1742 * dcrt0.cc (globify): Expand command line wildcards if
1743 run from dos prompt.
1745 * exceptions.cc (386 call_handler): More fumblings.
1746 * fhandler.cc (fhandler_base::stat): Initialize ino.
1747 (fhandler_console::open): Fix test for RDONLY.
1748 (fhandler_tty::stat): Set ino.
1749 (fhandler_console_out::vt100 stuff): More.
1751 * pinfo.cc (pinfo::init_self): Don't bother to DuplicateHandles
1752 to get process info.
1753 * signal.cc (usleep): Get correct order of magnitude.
1754 * spawn.cc (spawn_guts): Turn of exception handling in
1755 parent of thing which execs.
1756 * syscalls.cc (stat): Look for <file> and <file.exe>.
1757 * wait.cc (wait_for_any): Keep waiting if WaitForMultipleObject
1758 returns invalid result.
1760 Tue Apr 2 12:45:35 1996 steve chamberlain <sac@slash.cygnus.com>
1762 * dcrt0.cc (conv_path_names): Add HOME.
1763 (dll_crt0_1): Use u->self->head_sp.
1764 * exceptions.cc (i386 call_handler): Rewritten, now almost works
1766 * fhandler.cc (fhandler_base::open): Calculate namehash.
1767 (fhandler_base::fstat): ^ name hash with file index low.
1768 * fork.cc (*): forkee/forkerr events moved from sinfo
1771 Fri Mar 29 16:35:02 1996 steve chamberlain <sac@slash.cygnus.com>
1774 * winsup.h: restore and myp moved from per_process to pinfo class.
1775 * dcrt0.cc (dll_crt0_1): Cope with move.
1776 * exceptions.cc (init_thread_exceptions): Ditto.
1777 * signal.cc (sigprocmask): Ditto.
1778 * fork.cc (cygwin_fork_helper1): Don't fork if split_heap_p.
1779 * pinfo.cc (pinfo::clearout): Zero split_heap_p.
1780 * syscalls.cc (_sbrk): Cope with not being able to
1781 allocate contiguous chunks.
1784 Tue Mar 26 09:14:32 1996 steve chamberlain <sac@slash.cygnus.com>
1786 * exceptions.cc (__cygwin_exception_handler): re-export.
1788 Fri Mar 22 16:49:29 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1790 * cygwin.din (__stack_trace): Export.
1791 (__cygwin_exception_handler): Ditto.
1793 * exceptions.cc (i386 exception handling): Move under appropriate
1794 x86 #ifdefs. Use the macro HAVE_INIT_THREAD_EXCEPTIONS to be
1795 whatever a machine needs to do to initialize exceptions in this
1796 thread. Nop for the PowerPC right now.
1797 (__stack_trace): Make it a "C" function so there is no name
1798 mangling, and export it.
1799 (call_handler): Split by architecture before the function, rather
1800 than inside it. First stab at PowerPC exception handling.
1801 (__cygwin_exception_handler): Rename from ehandler3, and export
1802 it. Add more status -> signal mappings.
1803 (ctrl_c_handler, CTRL_LOGOFF_EVENT): Map to SIGHUP, not SIGQUIT.
1804 (__stack_trace): Split into separate machine dependent functions,
1805 rather than #ifdef'ing inside of a common function. Make the
1806 PowerPC messages clearer.
1808 Mon Mar 18 13:27:05 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1810 * include/winkernel.h (CreateThread): Correctly declare function
1813 * misc.c (wprintf): Convert to use vprintf and fix warnings.
1814 (tgetent): Declare to return int to fix warnings.
1815 (vhangup): Declare to return int to fix warnings. Return -1 also.
1817 * include/winbase.h (UnhandledExceptionFilter): Declare.
1819 Tue Mar 12 12:56:28 1996 Doug Evans <dje@charmed.cygnus.com>
1821 * include/winkernel.h (FlushFileBuffers): Declare.
1823 Tue Mar 12 11:16:32 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1825 * exceptions.cc (dump_status): Make columns line up for PowerPC.
1826 (call_handler): Right now, call exit(255) for the PowerPC.
1828 * strace.cc (__sys_printf): Call FlushFileBuffers after writing
1829 out the file to make sure it really gets flushed.
1831 * include/winkernel.h (PowerPC CONTEXT): Add fields returned if
1832 CONTEXT_DEBUG_REGISTERS is set.
1834 Sun Mar 10 15:31:17 1996 Steve Chamberlain <sac@slash.cygnus.com>
1836 * strerror.cc, syslog.cc, net.cc: New files.
1837 * cygwin.din: Add new net functions.
1838 * dcrt0.cc (dll_crt0_1): Fix call to build argv[0].
1839 * fhandler.cc (fhandler_base::open): Tidy.
1840 * fhandler.h: Add net classes.
1841 * hinfo.cc (hinfo_vec::build_fhandler): Add tape stuff.
1842 * path.cc (*::mangle, *::reverse_mangle): Fix.
1843 (mount_info::init): No trailing / now.
1844 * select.cc (*): Rewrite.
1845 * spawn.cc (spawn_guts): Fix leak.
1846 * syscalls.cc (_sbrk): Keep working until memory really fills up.
1848 Tue Feb 20 16:53:24 1996 Steve Chamberlain <sac@slash.cygnus.com>
1850 * dcrt0.cc (dll_crt0_1): Get version from the header.
1851 * fhandler.cc (CHUNK_SIZE): New.
1852 (fhandler_base::read, fhandler_base::write): CRLF conversion
1854 path.cc (path_conv::path_conv): Initialize mixed, binary and silent.
1855 * smallprint.c (__small_vsprintf): Add 'c' option.
1856 * wait.cc (wait_found): Close child handles.
1858 Mon Feb 19 09:11:57 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1860 * Makefile.in (real-headers): Eliminate real-headers dependency on
1861 mspatches/*.patch, since you can't be guaranteed that it exists.
1863 Fri Feb 16 14:24:47 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1865 * exceptions.cc (dump_status): On the PowerPC, dump all of the
1868 * uname.c (uname): Don't assume that the only two NT systems are
1870 * exceptions.cc (call_handler): Ditto.
1871 (dump_status): Ditto.
1873 Thu Feb 15 18:20:33 1996 Steve Chamberlain <sac@slash.cygnus.com>
1875 * cygwin.din (__empty): Add.
1876 * dcrt0.cc (dos_argv_to_unix_argv): New.
1877 (check, onetimecheck): New.
1878 * exceptions.cc (ehandler3): Always show backtrace
1879 if exception failed.
1880 * fhandler.cc (*::open): Removed dos_path argument.
1881 (fhandler_base::fstat): Use nFileIndexLow as the inode
1883 * hinfo.cc (init_std_file_from_handle): Don't default
1885 * paths.cc (*): Use new registry classes.
1886 * registry.cc (*): Rewritten.
1887 * syscalls.cc (open): Call fhandler->open without
1888 the dos filename arg.
1890 Sat Feb 10 08:18:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1892 * configure.in (ALLOCA for powerpc): Add __allocate_stack.
1894 Wed Feb 7 16:41:18 1996 Steve Chamberlain <sac@slash.cygnus.com>
1898 * malloc.cc (export_*): New. Changed the way that malloc
1900 * cygwin.din: Export the export_* stuff as malloc, realloc and free.
1901 * path.cc (link_cookie::create): Keep cookie filenames in unix
1903 (reverse_mangle): Clean up.
1905 (qfunc): Sort by name too.
1906 * spawn.cc (spawn_guts): Handle zero length arg.
1907 Only set errno when it's not 0.
1908 * Makefile.in: Build new doc.
1909 * fhandler.cc (fhandler_base::fstat): Round up block used.
1910 * path.cc (escape_char): Now it's ^.
1911 * syscalls.cc (errmap): ERROR_INVALID_NAME yields ENOENT.
1914 (_unlink): Only try and DeleteFile once.
1916 Mon Feb 5 19:15:44 1996 Steve Chamberlain <sac@slash.cygnus.com>
1918 * dcrt0.cc (dll_crt0_1): Build env string into static buffer.
1919 * dirsearch.c (opendir): Stat on unix pathname.
1920 * paths.cc (*): Support for mixed case filenames.
1922 Sun Feb 4 15:55:58 1996 Steve Chamberlain <sac@slash.cygnus.com>
1925 (conv_path_names): New.
1926 (dll_crt0_1): Use conv_path_names list.
1927 * fctnl.cc (F_DUPFD): Look from the fd forward.
1928 * fhandler.cc (fhandler_base::open): Understand binary modes.
1929 (fhandler_console_in::init): Call tcsetattr with reasonable start
1931 * spawn.cc (spawn_guts): Use conv_path_names.
1932 (queue_file_deletion): Deleted.
1933 (unlink): Use new queue file stuff.
1934 * delqueue.cc, delqueue.h: New files.
1935 * shared.h: New file.
1937 Wed Jan 31 11:12:24 1996 Steve Chamberlain <sac@slash.cygnus.com>
1939 * crt0.cc: Hacks to probe out ppc stack.
1940 * exceptions.cc (ehander3): Don't use 386 context info on the ppc.
1941 * path.cc (mount_info::mangle): Turn /usi or /usp into /usr.
1942 * uname.c (uname): Change sysname and get ppc name right.
1944 Fri Jan 26 15:47:31 1996 Steve Chamberlain <sac@slash.cygnus.com>
1946 * pproc.cc (per_process::init): Cope when no memory is needed.
1947 * Makefile.in, configure.in: Cope with config directory.
1948 * setjmp.c, longjmp.c: Moved into config/i386.
1949 * config/ppc/setjmp.S, config/ppc/longjmp.S: New.
1951 Fri Jan 26 14:57:33 1996 Jason Molenda (crash@phydeaux.cygnus.com)
1953 * Makefile.in (DLL_OFILES): removed ppc-stub.o
1954 ppc-stub.c: Removed.
1955 configure: regenerated with autoconf 2.7.
1957 Fri Jan 26 11:18:07 1996 Kim Knuttila <krk@cygnus.com>
1959 * Makefile.in (DLL_OFILES): added ppc-stub.o
1961 Thu Jan 25 09:33:24 1996 Steve Chamberlain <sac@slash.cygnus.com>
1963 * malloc.cc (malloc, free, realloc): Hack for ppc.
1965 Wed Jan 24 20:22:42 1996 Steve Chamberlain <sac@slash.cygnus.com>
1967 * cygwin.dll (loadup_dll): Remove.
1969 * fhandler.* (*): Move to new class structure.
1970 * hinfo.cc: Use new fhandler glue.
1971 * libcfork.cc: Cope with ppc naming convention.
1973 Mon Jan 22 10:33:53 1996 Steve Chamberlain <sac@slash.cygnus.com>
1975 * fhandler.h, hinfo.h: New files.
1976 * winsup.h: Split from here.
1977 * configure.in: Set i386 entry point correctly.
1978 * fhandler.cc (fhandler_normal:open): .com files
1980 * hinfo.cc (init_std_file_from_handle): Inspect
1981 master_fmode_binary.
1982 * misc.cc (wcscmp, wcslen): New.
1983 * dcrt0.cc (probe): Change way a forkee's stack is allocated.
1984 * pproc.cc (per_process::init): Initialize using heap chunk.
1985 * shared.cc (shared_info::initialize): Initialize heap chunk.
1986 * syscalls.cc (_sbrk): If current chunk is used, allocate another.
1987 * wait.cc (wait_found): Fix exit code.
1989 Thu Jan 18 10:09:45 1996 Steve Chamberlain <sac@slash.cygnus.com>
1991 * fhandler.cc (fhandler_normal::open) Don't test a
1992 com port to see if it's executable.
1993 * configure.in, cygwin.din: More powerpc configury.
1995 Wed Jan 17 16:25:36 1996 Steve Chamberlain <sac@slash.cygnus.com>
1997 * configure.in, Makefile.in: Build powerpc stuff.
1998 * hinfo.cc (build_fhandler): Use new with placement.
1999 (fhandler::operator new): New.
2001 Wed Jan 3 18:18:57 1996 steve chamberlain <sac@slash.cygnus.com>
2003 * select.cc: New file.
2004 * Makefile.in: Cope with it.
2006 Tue Jan 2 08:58:58 1996 steve chamberlain <sac@slash.cygnus.com>
2008 * version.c: New file.
2009 * Makefile.in: Cope with it.
2010 * cygwin.def (setgrent, cuserid, setpgrp, mount, setmntent, endmntent, umount): New.
2011 * dcrt0.cc: Remove obsolete vfork stuff.
2012 (dll_crt0): Change way environ is built. Check that app is built
2013 with correct version of dll.
2014 * dirsearch.cc, exceptions.cc: Lint.
2015 * fhandler.cc: Lint. Most of termios.c moved into here.
2016 (fhandler_console:*): New.
2017 * hinfo.cc (hinfo_vec::init_std_file_from_handle): Open stdfiles as consoles
2019 * libccrt0.cc: Lint.
2020 * malloc.cc: More comments.
2021 * path.cc (*): Cope with mount handling.
2022 * registry.cc: Lint.
2025 * signal.cc (usleep): New.
2026 * spawn.cc: Lint. Removed vfork stuff.
2027 * stubs.c (getmntent, endgrent): Deleted.
2028 * syscalls.c (__seterrno): Now takes arguments.
2029 * termios.c: Much moved info fhandler.c
2030 * times.cc (utime, utimes): New.
2031 * uinfo.c (cuserid): New.