Christopher Faylor
0ac2abea6c
* include/cygwin/version.h: Bump DLL minor number.
2002-01-21 20:55:59 +00:00
Christopher Faylor
07cc1f1fd8
* include/cygwin/version.h: Bump DLL minor number.
2002-01-21 03:36:16 +00:00
Christopher Faylor
5946622e72
* include/cygwin/version.h: Bump DLL minor number.
2002-01-19 23:06:28 +00:00
Corinna Vinschen
df3af7731e
* include/cygwin/version.h: Bump API minor version to 51.
2002-01-19 16:17:59 +00:00
Corinna Vinschen
7d6be0d616
* cygwin.din: Add recvmsg and sendmsg.
...
* net.cc: Add cygwin_recvmsg and cygwin_sendmsg.
* /usr/include/sys/socket.h: Add recvmsg and sendmsg.
2002-01-19 16:11:00 +00:00
Corinna Vinschen
104c3be681
* Makefile.in: Add fnmatch.o to DLL_OFILES.
...
* cygwin.din: Add fnmatch export symbol.
* fnmatch.c: New file.
* include/fnmatch.h: Ditto.
* include/cygwin/version.h: Bump API minor version to 50.
2002-01-17 10:39:37 +00:00
Christopher Faylor
33ad2bf9d1
Add copyright stuff
2002-01-13 20:03:03 +00:00
Corinna Vinschen
d6154fb758
* ioctl.cc (ioctl): Make third argument optional.
...
* include/sys/ioctl.h: Ditto in declaration.
* dtable.cc (dtable::init_std_file_from_handle): Revert previous
bogus patch.
* window.cc (WndProc): Raise SIGURG instead of SIGIO in case of FD_OOB
message.
2002-01-06 09:28:13 +00:00
Christopher Faylor
6d218bb5c6
* include/getopt.h: Fix define.
2001-12-31 04:00:07 +00:00
Corinna Vinschen
971ec8d310
* cygwin.din: Add symbols for endutent(), getutent(), getutid(),
...
getutline(), setutent() and utmpname().
* syscalls.cc (setutent): New function.
(endutent): Ditto.
(utmpname): Ditto.
(getutent): Ditto.
(getutid): Ditto.
(getutline): Ditto.
* include/cygwin/version.h: Bump API minor version.
2001-12-28 15:53:27 +00:00
Christopher Faylor
dcd8b9be82
* include/getopt.h: Protect a declaratin.
2001-12-26 17:48:44 +00:00
Christopher Faylor
77f4a25028
* Makefile.in: Autogenerate some header files which provide magic numbers.
...
Force dependencies for files which depend on autogenerated headers to ensure
that they are always built.
* child_info.h (child_info): Add new fields to accommodate new magic number
header stuff.
* dcrt0.cc: Rely on "child_info_magic.h" to ensure that correct child_info
magic numbers are used.
(dll_crt0_1): Temporarily remove _cygwin_testing_magic test.
(_dll_crt0): Do more testing on magic numbers from fork_info structure. Call
"multiple_cygwin_problem" where appropriate.
(multiple_cygwin_problem): Rename from multiple_cygwin_die. Issue a warning or
die, as appropriate based on cygwin version/magic number mismatch.
* pinfo.cc (pinfo::exit): Don't attempt to dereference `this' if it doesn't
exist. This can happen when a fatal error occurs early in process
initialization.
* shared.cc: Rely on "shared_info_magic.h" to accommodate that new magic number
header stuff.
(shared_info::initialize): Use new magic number stuff, for shared region.
(memory_init): Ditto, for mount table.
* shared_info.h: Accomodate new magic number stuff for shared region and mount
table.
* sigproc.cc: Rely on "child_info_magic.h" to accommodate new magic number
header stuff.
(init_child_info): Initialize new fields in child_info) to accomodate magic
numbers.
* winsup.h: Rename multiple_cygwin_die to multiple_cygwin_problem.
* include/cygwin/version.h: Define macros for manipulating version magic.
* cygmagic: New shell script for generating magic numbers.
2001-12-26 04:53:34 +00:00
Christopher Faylor
4f235c9559
* include/cygwin/version.h: Bump API minor version for below changes.
2001-12-20 18:54:30 +00:00
Christopher Faylor
4b31ae795b
Fix up comments.
2001-12-19 20:10:03 +00:00
Corinna Vinschen
6d114a5dea
* include/getopt.h: Don't define getopt_long() and friends when
...
included through unistd.h.
2001-12-17 21:34:59 +00:00
Christopher Faylor
a318eb217d
* include/limits.h: Define LLONG_MIN, LLONG_MAX, ULLONG_MAX.
2001-12-17 01:41:07 +00:00
Christopher Faylor
9b02812029
* include/getopt.h: Add HAVE_DECL_GETOPT to save pain elsewhere.
2001-12-11 22:22:43 +00:00
Christopher Faylor
cf77faefc8
whitespace cleanup
2001-12-10 03:35:54 +00:00
Christopher Faylor
2a50e3df6f
* path.cc (mount_info::conv_to_win32_path): Avoid returning error if cygdrive
...
== '/'.
(mount_info::cygdrive_win32_path): Return 0 if invalid cygdrive path.
2001-12-03 16:47:18 +00:00
Egor Duda
f38ac9b70c
* include/pthread.h (PTHREAD_COND_INITIALIZER): Define.
...
* thread.cc (__pthread_cond_destroy): Add support for
PTHREAD_COND_INITIALIZER.
(__pthread_cond_init): Ditto.
(__pthread_cond_broadcast): Ditto.
(__pthread_cond_signal): Ditto.
(__pthread_cond_dowait): Ditto.
(__pthread_mutex_init): Handle PTHREAD_MUTEX_INITIALIZER correctly,
don't return error when it's passed as parameter.
* winsup.h (check_null_invalid_struct): Call correct function.
2001-11-15 11:10:38 +00:00
Christopher Faylor
a36ee0b6b9
* include/cygwin/version.h: Bump version to 1.3.6.
2001-11-12 00:40:29 +00:00
Christopher Faylor
82105181d8
* include/cygwin/version.h: Bump version to 1.3.5.
2001-11-05 23:13:47 +00:00
Christopher Faylor
9c510edc61
Eliminate excess whitespace.
2001-11-05 06:09:15 +00:00
Christopher Faylor
a9f20457f3
* Makefile.in: Only build testsuite directory on first 'make check'.
...
* configure.in: Remove testsuite from SUBDIRS.
* configure: Regenerate.
2001-10-24 21:56:54 +00:00
Corinna Vinschen
b20e2ee663
* fhandler_tape.cc (fhandler_dev_tape::tape_status): Report
...
EOTWarningZoneSize in get->mt_eotwarningzonesize.
* include/cygwin/mtio.h: Define DEFTAPE.
(struct mtget): Add member `mt_eotwarningzonesize'. Add a comment.
* include/cygwin/version.h: Bump API minor version to 47.
2001-10-16 16:28:39 +00:00
Robert Collins
c918cf9421
Tue Sep 25 21:25:00 2001 Robert Collins <rbtcollins@hotmail.com>
...
* thread.cc (pthread_cond::BroadCast): Use address with verifyable_object_isvalid().
(pthread_cond::Signal): Ditto.
(__pthread_create): Ditto.
(__pthread_cleanup): Ditto.
(__pthread_attr_init): Ditto.
(__pthread_attr_getinheritsched): Ditto.
(__pthread_attr_getschedparam): Ditto.
(__pthread_attr_getschedpolicy): Ditto.
(__pthread_attr_getscope): Ditto.
(__pthread_attr_setdetachstate): Ditto.
(__pthread_attr_getdetachstate): Ditto.
(__pthread_attr_setinheritsched): Ditto.
(__pthread_attr_setschedparam): Ditto.
(__pthread_attr_setschedpolicy): Ditto.
(__pthread_attr_setscope): Ditto.
(__pthread_attr_setstacksize): Ditto.
(__pthread_attr_getstacksize): Ditto.
(__pthread_attr_destroy): Ditto.
(__pthread_join): Ditto.
(__pthread_detach): Ditto.
(__pthread_suspend): Ditto.
(__pthread_continue): Ditto.
(__pthread_getschedparam): Ditto.
(__pthread_getsequence_np): Ditto.
(__pthread_key_create): Ditto.
(__pthread_key_delete): Ditto.
(__pthread_setschedparam): Ditto.
(__pthread_setspecific): Ditto.
(__pthread_getspecific): Ditto.
(__pthread_cond_destroy): Ditto.
(__pthread_cond_init): Ditto.
(__pthread_cond_broadcast): Ditto.
(__pthread_cond_signal): Ditto.
(__pthread_cond_timedwait): Ditto.
(__pthread_cond_wait): Ditto.
(__pthread_condattr_init): Ditto.
(__pthread_condattr_getpshared): Ditto.
(__pthread_condattr_setpshared): Ditto.
(__pthread_condattr_destroy): Ditto.
(__pthread_kill): Ditto.
(__pthread_mutex_init): Ditto.
(__pthread_mutex_getprioceiling): Ditto.
(__pthread_mutex_lock): Ditto.
(__pthread_mutex_trylock): Ditto.
(__pthread_mutex_unlock): Ditto.
(__pthread_mutex_destroy): Ditto.
(__pthread_mutex_setprioceiling): Ditto.
(__pthread_mutexattr_getprotocol): Ditto.
(__pthread_mutexattr_getpshared): Ditto.
(__pthread_mutexattr_gettype): Ditto.
(__pthread_mutexattr_init): Ditto.
(__pthread_mutexattr_destroy): Ditto.
(__pthread_mutexattr_setprotocol): Ditto.
(__pthread_mutexattr_setprioceiling): Ditto.
(__pthread_mutexattr_getprioceiling): Ditto.
(__pthread_mutexattr_setpshared): Ditto.
(__pthread_mutexattr_settype): Ditto.
(__sem_init): Ditto.
(__sem_destroy): Ditto.
(__sem_wait): Ditto.
(__sem_trywait): Ditto.
(__sem_post): Ditto.
(verifyable_object_isvalid): Recieve a pointer to a pointer for verification.
(__pthread_mutexattr_getprotocol): Fix typo in magic number.
(__pthread_mutexattr_getpshared): Ditto.
(__pthread_mutexattr_gettype): Ditto.
* thread.h (verifyable_object_isvalid): Change prototype to recieve a pointer to a
pointer for verification.
* include/pthread.h: Fix typo for __cleanup_routine_type typedef. (Contrib from Net).
2001-09-25 11:45:26 +00:00
Christopher Faylor
5733509e25
* cygwin.din (__argv): Export.
...
(__argc): Ditto.
(__progname): Ditto.
* include/getopt.h (getopt_long): constify arguments.
* lib/getopt.c: Import new file from NetBSD.
2001-09-19 01:07:11 +00:00
Christopher Faylor
c98b577d40
* include/io.h: Add access declaration.
2001-09-17 21:29:19 +00:00
Corinna Vinschen
ba94682838
* Makefile.in: Build wincap.o.
...
* wincap.cc: New file.
* wincap.h: Ditto.
* autoload.cc: Add dynamic load statement for `CreateHardLinkA'.
* dcrt0.cc (os_being_run): Eliminated.
(osname): Ditto.
(iswinnt): Ditto.
(set_os_type): Ditto.
(dll_crt0_1): Call wincap.init() instead of set_os_type().
(_dll_crt0): Ditto.
* environ.cc (set_chunksize): New function.
(parse_thing): `forkchunk' setting now invokes function `set_chunksize'.
* fork.cc (chunksize): Eliminated. Moved to be member of wincap.
* host_dependent.h: Removed.
* syscalls.cc (_link): Try using `CreateHardLinkA' first, if available.
* cygheap.cc, dcrt0.cc, delqueue.cc, dir.cc,
environ.cc, fhandler.cc, fhandler.h, fhandler_console.cc,
fhandler_mem.cc, fork.cc, mmap.cc, net.cc, pinfo.cc, pinfo.h,
security.cc, syscalls.cc, sysconf.cc, syslog.cc, thread.cc,
times.cc, tty.cc, uinfo.cc, uname.cc, winsup.h: Use new wincap
capability check throughout.
* winsup.h: Include wincap.h. Eliminate extern declarations of
`os_being_run' and `iswinnt'. Eliminate `os_type" definition.
* include/cygwin/version.h: Bump version to 1.3.4.
2001-09-12 17:46:37 +00:00
Christopher Faylor
e3c25c4a47
Update copyrights.
2001-09-11 20:01:02 +00:00
Christopher Faylor
dbc82a87a3
* cygwin.din: Remove cygwin_getshared.
...
* shared.cc: Ditto.
* include/cygwin/version.h: Bump API minor number.
* dtable.cc (dtable::build_fhandler): Fix incorrect test for socket.
2001-09-11 15:25:08 +00:00
Corinna Vinschen
d969111291
* include/cygwin/version.h: Bump API minor version to 45 according
...
to adding the gamm*_r functions.
2001-09-09 12:32:54 +00:00
Christopher Faylor
c12a96d12f
* cygwin.din: Add gamm*_r function exports.
2001-09-08 01:35:55 +00:00
Christopher Faylor
1ff9f4b937
* cygheap.h (init_cygheap): Move heap pointers here.
...
* include/sys/cygwin.h (perprocess): Remove heap pointers.
* dcrt0.cc (__cygwin_user_data): Reflect obsolete perprocess stuff.
(_dll_crt0): Don't initialize heap pointers.
(cygwin_dll_init): Ditto.
(release_upto): Use heap pointers from cygheap.
* heap.h: Ditto.
* fork.cc (fork_parent): Ditto. Don't set heap pointers in ch.
(fork_child): Remove obsolete sigproc_fixup_after_fork.
* shared.cc (memory_init): Reorganize so that cygheap initialization is called
prior to regular heap since regular heap uses cygheap now.
* sigproc.cc (proc_subproc): Eliminate zombies allocation.
(sigproc_init): Move zombies alloation here. Don't free up array on fork, just
reuse it.
(sigproc_fixup_after_fork): Eliminate.
* sigproc.h: Ditto.
* include/cygwin/version.h: Reflect change to perprocess structure.
2001-09-07 21:32:07 +00:00
Corinna Vinschen
b0cce7e127
* include/limits.h: Define PIPE_BUF.
...
* syscalls.cc (fpathconf): Use PIPE_BUF instead of numerical constant.
(pathconf): Ditto.
2001-09-07 08:31:16 +00:00
Corinna Vinschen
a71aee46c4
* cygwin.din: Add `dirfd'.
...
* dir.cc (dirfd): New function.
(opendir): Open a directory file descriptor and save it in
__d_dirent->d_fd.
(closedir): Close directory file descriptor.
* include/cygwin/version.h: Bump API minor version to 44.
2001-09-03 16:36:54 +00:00
Corinna Vinschen
3171175e90
* resource.cc (getrlimit): Return OPEN_MAX as current limit
...
on RLIMIT_NOFILE.
* syscalls.cc (getdtablesize): Return OPEN_MAX.
* sysconf.cc (sysconf): Return OPEN_MAX on _SC_OPEN_MAX.
* include/limits.h (OPEN_MAX): Define as 256.
2001-08-16 14:20:09 +00:00
Christopher Faylor
3ca6bcc4d0
* include/cygwin/version.h: Bump API version.
2001-08-14 15:05:43 +00:00
Christopher Faylor
29a075260a
Oops. Forgot to check in include/wchar.h???
2001-08-11 01:56:53 +00:00
Christopher Faylor
96a3f4ae68
* cygheap.cc (cygheap_root::set): Avoid treating '/' specially.
...
* fhandler.cc (fhandler_base::fcntl): Only set specific O_NDELAY style flag
passed in from application.
* fhandler_socket.cc (fhandler_socket::fcntl): Ditto.
* fhandler.h: Set constant for future use.
* winsup.h: Define OLD_O_NDELAY only for old programs.
* include/cygwin/version.h: Define CYGWIN_VERSION_CHECK_FOR_OLD_O_NONBLOCK.
2001-08-07 00:01:42 +00:00
Corinna Vinschen
7eb971a561
* net.cc (cygwin_accept): Allow NULL peer and len parameters.
...
* include/cygwin/socket.h: Define socklen_t as int.
2001-08-03 12:06:29 +00:00
Christopher Faylor
8e4e3874c4
* cygwin.din: Export sys_errlist, sys_nerr.
...
* include/cygwin/version.h: Bump minor version number.
2001-07-27 16:33:20 +00:00
Christopher Faylor
351a85482c
Christopher Faylor <cgf@cygnus.com>
...
* cygwin.din: Export __signgam.
* include/cygwin/version.h: Bump minor version number.
2001-07-26 20:42:52 +00:00
Corinna Vinschen
463513f0e2
* cygwin.din: Add fchdir symbols.
...
* path.cc (chdir): Guard against invalid parameter.
(fchdir): New function.
* include/cygwin/version.h: Bump API minor version to 40.
* uinfo.cc (internal_getlogin): Remove unused variable.
2001-06-10 10:00:21 +00:00
Christopher Faylor
f01fb5e796
* include/cygwin/version.h: Bump minor version number.
2001-05-21 15:50:36 +00:00
Christopher Faylor
00b59ce9c9
* include/pthread.h: Remove C++ comment.
2001-05-09 14:45:47 +00:00
Christopher Faylor
ef8b659086
* include/sys/file.h: Revert special X_OK usage. Just make it a constant.
2001-05-08 01:36:50 +00:00
Christopher Faylor
620dd06d15
* include/pthread.h (pthread_cleanup_push): Eliminate space preceding
...
arguments.
(pthread_cleanup_pop): Ditto.
2001-05-03 20:42:28 +00:00
Christopher Faylor
b98ebf5470
Throughout, change 'tty_attached' to 'real_tty_attached', for clarity.
...
Throughout, change 'OutputStopped' to 'output_stopped', for consistency.
* dtable.cc (stdio_init): Set controlling tty if not set by stdio opens.
* exceptions.cc (ctrl_c_handler): Avoid special pgid checking if no tty is
associated with the process.
(Suggested by Tim Baker <dbaker@direct.ca>)
* external.cc (fillout_pinfo): Return actual tty number for ctty.
* fhandler_console.cc (get_tty_stuff): Set ctty when shared memory is
allocated. Accept flags input from open().
(set_console_ctty): New function.
(fhandler_console::open): Pass flags to get_tty_stuff and rely on this function
to set the ctty, if appropriate.
* fhandler_termios.cc (fhandler_termios::set_ctty): Move to tty_min class.
* fhandler_tty.cc (fhandler_tty_slave::open): Use tc field to access
set_ctty().
* tty.h (TTY_CONSOLE): Move to include/sys/cygwin.h.
(tty_min): Add set_ctty class here.
* include/sys/cygwin.h (TTY_CONSOLE): New home here.
* path.cc (symlink_info): Make contents an actual buffer. Pass more flags to
case_check.
(path_conv::check): Reorganize to do parsing based on posix path rather than
native path.
(symlink_info::check): Expect posix path as input. Translate to native path
here. Accept path_conv flags. Stop parsing if not a symlink regardless of
whether previous path was a symlink.
2001-04-28 23:48:28 +00:00
Egor Duda
86699e1555
* cygwin.din: Export asctime_r, ctime_r, gmtime_r, localtime_r
...
* include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR to 39
2001-04-25 16:18:43 +00:00