a069f5602e* tty.cc (tty::make_pipes): Set to_slave pipe mode to nonblocking. * fhandler_tty.cc (fhandler_pty_master::accept_input): If pipe buffer is full, give slave a chance to read data.
Egor Duda
2001-04-27 06:27:28 +0000
71bb5ea46b* configure.in (libgcj_saved): Copy from $libgcj. (libgcj): Zero out if --enable-libgcj; add to noconfigdirs is --disable-libgcj.
Alexandre Oliva
2001-04-25 21:41:21 +0000
968d91b2e6* sigproc.h [sigthread]: Add exception field. [sigframe::~sigframe]: Clear exception field. [sigframe::set]: Set exception field from caller. * sigproc.cc (sig_send): Set exception field when frame pointer is passed in. * exceptions.cc (interrupt_on_return): Always treat exception as interruptible.
Christopher Faylor
2001-04-25 19:11:37 +0000
d551169a9f* autoload.cc: Add LoadDLLfunc statements for SetTokenInformation@16. * cygheap.cc: Include security.h. * grp.cc (internal_getgrent): New function. (getgroups): Rearranged using `internal_getgrent' and the new `cygsid' class. * passwd.cc (internal_getpwent): New function. * sec_acl.cc: Use new `cygsid' class throughout. (acl_access): Use `internal_getgrent' instead of `getgrent'. * sec_helper.cc: Use new `cygsid' class throughout. (get_id_from_sid): Use `internal_getgrent' instead of `getgrent'. Use `internal_getpwent' instead of `getpwent'. * security.cc: Use new `cygsid' class throughout. * security.h: Move `MAX_SID_LEN' from winsup.h to here. Add extern declarations for `internal_getgrent' and `internal_getpwent'. (class cygsid): New class. * shared.cc (sec_user): Use new `cygsid' class. * syscalls.cc (seteuid): Try to set owner to user and primary group to current group in impersonation token before performing impersonation. (setegid): Try to set primary group in process token to the new group if ntsec is on. * uinfo.cc (internal_getlogin): Use new `cygsid' class. Try to set owner to user and primary group to current group in process token if the process has been started from a non cygwin process. (uinfo_init): Set primary group only if the process has been started from a non cygwin process. * winsup.h: Move define for `MAX_SID_LEN' to security.h.
Corinna Vinschen
2001-04-25 09:43:25 +0000
3a6e96682d* fhandler_dsp.cc: Improved handling of 8 bit playback modes. Put in mock support for SNDCTL_DSP_SETFRAGMENT.
Corinna Vinschen
2001-04-25 07:26:54 +0000
7260ea4954* lib/Makefile.in: Install libraries in /usr/lib/w32api when building for cygwin.
Christopher Faylor
2001-04-25 03:51:06 +0000
a874cd21de2001-04-24 Charles Wilson <cwilson@ece.gatech.edu
Jeff Johnston
2001-04-24 22:09:21 +0000
3c73ae1c1e* passwd.cc (getpwnam_r): Use correct offsets into buffer. Copy pw_gecos field as well. (getpwuid_r): Ditto.
Corinna Vinschen
2001-04-24 21:45:20 +0000
f669342ed7* include/winsock2.h: Protect one *more* newlib defines when compiling cygwin.
Christopher Faylor
2001-04-24 20:20:01 +0000
96d16d1c11* sparc.h: Fix typo.
DJ Delorie
2001-04-24 18:32:27 +0000
8db71e0169* dlmalloc.c: New file. Port of Doug Lea's malloc * dlmalloc.h: Ditto. * Makefile.in: Add support for MALLOC_DEBUG * config.h.in: Ditto. * winsup.h: Ditto. * configure.in: Add --enable-malloc-debugging option. * configure: Regenerate. * debug.h: Include declarations for debugging malloc. * tty.cc (grantpt): Fix definition. (unlockpt): Ditto.
Egor Duda
2001-04-24 15:25:31 +0000
19a90cfeafAdd OpenRISC support
Nick Clifton
2001-04-24 15:08:16 +0000
c35bcd3ebc* include/winsock2.h: Protect some more newlib defines when compiling cygwin
Christopher Faylor
2001-04-24 03:41:37 +0000
f3ea62a847Remove trailing underscore from fhandler_base and friends, throughout. * fhandler.h (fhandler_base::set_open_status): New method. Stores original open status. (fhandler_base::get_open_status): New method. Retrieves original open status. (fhandler_base::reset_to_open_binmode): New method. * fhandler.cc (fhandler_base::open): Save open status. (fhandler_base::init): Ditto. * fhandler_clipboard.cc (fhandler_clipboard::open): Ditto. * fhandler_console.cc (fhandler_console::open): Ditto. * fhandler_dsp.cc (fhandler_dsp::open): Ditto. * fhandler_dev_mem.cc (fhandler_dev_mem::open): Ditto. * fhandler_dev_random.cc (fhandler_dev_random::open): Ditto. * fhandler_serial.cc (fhandler_serial::open): Ditto. * fhandler_tty_slave.cc (fhandler_tty_slave::open): Ditto. * fhandler_tty_master.cc (fhandler_tty_master::open): Ditto. * fhandler_dev_zero.cc (fhandler_dev_zero::open): Ditto. * syscalls.cc (setmode): Rework so that 0 mode value causes reversion to open state. * fhandler_tty_slave.cc (fhandler_tty_slave::read): Use correct multiplier when converting from deciseconds to milliseconds.
Christopher Faylor
2001-04-24 02:07:58 +0000
9cf9c14668* fhandler.h (fhandler_base::clear_r_binary): New method. (fhandler_base::clear_w_binary): New method. * syscalls.cc (setmode): Accept 0 as mode value. Resets text/binary behavior for fd to default.
Christopher Faylor
2001-04-23 17:29:33 +0000
ca608f5682* include/winsock.h: Protect some more newlib defines when compiling cygwin.
Christopher Faylor
2001-04-23 17:19:24 +0000
f940c5b1aa* net.cc [errmap]: Add '0' condition. (find_winsock_errno): Don't translate no error to EPERM.
Christopher Faylor
2001-04-23 16:46:30 +0000
4ba81bbab22001-04-23 Bo Thorsen <bo@suse.de>
Andreas Jaeger
2001-04-23 08:00:14 +0000
3c76c0760fspacing changes.
Christopher Faylor
2001-04-23 02:56:19 +0000
c02e9189cf* include/cygwin/version.h: Bump Cygwin version and API version.
Christopher Faylor
2001-04-23 00:48:23 +0000
9672024b82Mon Apr 23 9:27:00 2001 Robert Collins <rbtcollins@hotmail.com>
Robert Collins
2001-04-22 23:59:15 +0000
cb4cc28370* libc/include/sys/unistd.h [X_OK]: Use better protection against Cygwin X_OK definitions in sys/file.h.
Christopher Faylor
2001-04-22 23:52:06 +0000
1acf5c29c8* features.h: Reinstate as wrapper for sys/features.h.
Christopher Faylor
2001-04-22 23:18:28 +0000
b265245256* security.cc (alloc_sd): Reformat comment. * shared.cc: Drop function declarations already in security.h.
Corinna Vinschen
2001-04-22 22:12:12 +0000
96dc5dd7e5* shortcut.c (check_shortcut): Close input file handle before returning. * path.cc (check_sysfile): Ditto. (symlink_info::check): Rely on opened file handle being closed by symlink checking routines. Set ext_tacked_on when .lnk is detected.
Christopher Faylor
2001-04-22 16:19:27 +0000
da77d416c5* thread.cc (MTinterface::Init): Remove accidentally checked in code.
Christopher Faylor
2001-04-21 23:26:14 +0000
9450ad0d02Sun Apr 22 20:22:00 2001 Robert Collins <rbtcollins@hotmail.com>
Robert Collins
2001-04-21 14:23:47 +0000
8c9df1d571* libc/include/sys/time.h: Define timercmp and other macros for __CYGWIN__, too.
Christopher Faylor
2001-04-21 03:22:47 +0000
3ac6f3a7482001-04-20 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2001-04-21 01:17:33 +0000
603260769e* cygwin.din: Add *scanf and *scan_r functions.
Christopher Faylor
2001-04-20 23:38:43 +0000
52cb9e69342001-04-20 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2001-04-20 22:50:51 +0000
3c8e92d9fc* security.cc (set_process_privileges): Swap out. * sec_helper.cc (set_process_privilege): Rename from `set_process_privileges'. Takes the privilege to enable or disable as parameter now. * security.h: Add prototype for `set_process_privileges'.
Corinna Vinschen
2001-04-20 20:36:13 +0000
b9815dc3dc* path.cc (path_conv::check): Always initialize member variables.
Christopher Faylor
2001-04-20 16:40:04 +0000
cbd8868713* include/sys/file.h: More cleanup for X_OK.
Christopher Faylor
2001-04-20 16:36:17 +0000
bfbc1aecdc* grp.cc (getgroups): Change so that SIDs get compared instead of strings to SIDs.
Corinna Vinschen
2001-04-20 14:30:22 +0000
c0d1968a18* Makefile.in: Add object files `sec_helper.cc' and `sec_acl.cc'. * security.cc: Swap out several functions. * sec_acl.cc: New file. Move Sun compatibel ACL functions from `security.cc' to here. * sec_helper.cc: New file. Move security helper functions from `security.cc' to here. * security.h: Changed to accomodate the above changes.
Corinna Vinschen
2001-04-20 13:02:32 +0000
b78d6f6e7b* mmap.cc (mmap): Drop usage of the same memory area if the same region of the same file is mapped twice.
Corinna Vinschen
2001-04-19 07:44:34 +0000
a9467b6835* Makefile.in: Add -U_WIN32 to CFLAGS compile line to avoid inappropriate Windows-isms.
Christopher Faylor
2001-04-19 03:55:02 +0000
f8415f617b* configure.in: Add bz2lib.
Christopher Faylor
2001-04-18 22:45:27 +0000
0381fec68fThroughout, change fdtab references to cygheap->fdtab. * child_info.h (cygheap_exec_info): Eliminate special fdtab stuff. * spawn.cc (spawn_guts): Ditto. * cygheap.cc (cygheap_init): Initialize fdtab, if appropriate. * cygheap.h (CYGHEAPSIZE): Include size of init_cygheap. (_cmalloc_entry): Include fdtab here. * dtable.h (dtable): Declare/define new methods. * dtable.cc (dtable::vfork_child_fixup): New method. (dtable::fixup_after_exec): Remove unneeded extra arguments. * dcrt0.cc (dll_crt0_1): Ditto. * environ.cc (getwinenv): Use case sensitive comparison. (winenv): Make a copy of environment cache to avoid realloc problems when duplicate environment variables exist in the environment. (From Egor Duda) * net.cc (cygwin_socket): Revert Apr 14 change. * include/sys/file.h: Protect against previous X_OK definition. * passwd.cc: Eliminate passwd_sem throughout. * security.cc: Ditto. * cygwin.din: Export New functions. * passwd.cc (read_etc_passwd): Make race safe. (getpwuid_r): New function. (getpwnam_r): New function.
Christopher Faylor
2001-04-18 21:10:15 +0000
a2d47fe9d9*** empty log message ***
Christopher Faylor
2001-04-18 20:00:34 +0000
77c45b121e* grp.cc (getgroups): Avoid crash if passwd field if /etc/group is empty.
Corinna Vinschen
2001-04-18 14:52:07 +0000
4199e1e6fb* path.h (path_conv::add_ext_from_sym): Declare. * path.cc (path_conv::add_ext_from_sym): Convert to pure inline method.
Christopher Faylor
2001-04-17 23:12:11 +0000
273861e3aa2001-04-17 Stephen L. Moshier <moshier@moshier.ne.mediaone.net>
Jeff Johnston
2001-04-17 17:13:00 +0000
adfd477da3* path.cc (windows_device_names): Move dsp to proper location.
Christopher Faylor
2001-04-17 16:16:27 +0000
91874e20bf* include/windows.h: Define _ANONYMOUS_STRUCT and _ANONYMOUS_UNION as __extenstion__ when appropriate. * include/mmsystem.h: Mark anonymous structs and unions as __extension__ to prevent compiler warning when invoked with -pedantic * include/oaidl.h: Ditto. * include/objidl.h: Ditto. * include/olectl.h: Ditto. * include/prsht.h: Ditto. * include/shlobj.h: Ditto. * include/winbase.h: Ditto. * include/winnt.h: Ditto. * include/wtypes.h: Ditto.
Earnie Boyd
2001-04-17 12:58:06 +0000
8aefe7c08bForgot the ChangeLog...
Corinna Vinschen
2001-04-17 11:49:19 +0000
0f56512627* path.cc (path_conv::check): Set case_clash even if pcheck_case is set to PCHECK_ADJUST when a case clash is given for the last component in path. (symlink_info::case_check): Ditto. * syscalls.cc (_rename): Avoid overwriting an already existing file if a case clash is given even if pcheck_case is set to PCHECK_ADJUST.
Corinna Vinschen
2001-04-17 11:47:37 +0000
7ade56ca6a* mmap.cc: Move fh_paging_file from some functions to be a global static variable. (class mmap_record): Add `devtype_' member to remember the device type of the file. Add declaration for methods `get_device', `alloc_fh' and `free_fh'. (mmap_record::mmap_record): Initialize `devtype_' correctly. (mmap_record::alloc_fh): New method. (mmap_record::free_fh): Ditto. (munmap): Use new mmap_record::alloc_fh and mmap_record::free_fh methods to create a correct fhandler. (msync): Ditto. (fixup_mmaps_after_fork): Ditto.
Corinna Vinschen
2001-04-16 17:26:04 +0000
881afbda5a2001-04-15 Daniel Berlin <dan@cgsoftware.com>
Daniel Berlin
2001-04-16 14:10:14 +0000
c4548fb4fa* grp.cc (getgroups): If `allow_ntsec' is set, use the process token information to evaluate the groups list.
Corinna Vinschen
2001-04-16 14:02:42 +0000
8a3adc99ec* mkgroup.c: Add function pointers `netlocalgroupgetmembers' and `netgroupgetusers'. (load_netapi): Load function pointers `netlocalgroupgetmembers' and `netgroupgetusers'. (enum_local_users): New function. (enum_local_groups): Call `enum_local_users' for each group if `print_users' is set. (enum_users): New function. (enum_groups): Call `enum_users' for each group if `print_users' is set. (usage): Add usage text for `-u/--users'. (longopts): Add option `--users'. (opts): Add option character `u'. (main): Set `print_users' according to option `-u/--users'. Call `enum_local_groups' and `enum_groups' with additional parameter `print_users'.
Corinna Vinschen
2001-04-16 13:19:27 +0000
3b3b19d258* features.h: Remove this file as it is now being supplied by newlib.
Christopher Faylor
2001-04-16 04:08:05 +0000
b0a50cf34c* autoload.cc: Add winmm functions needed by fhandler_dsp.cc. * fhandler_dsp.cc: New file. Implements OSS like /dev/dsp. * include/sys/soundcard.h: New file. User land includes for OSS /dev/dsp. * fhandler.h: Add new class fhandler_dev_dsp and a FH_OSS_DSP definition. * dtable.cc (dtable::build_fhandler): Allow creation of the /dev/dsp device. * path.cc (windows_device_names): Add /dev/dsp into list of device names. * Makefile.in (DLL_OFILES): Add fhandler_dsp.o.
Christopher Faylor
2001-04-16 03:27:16 +0000
9f42525632* mount.cc (longopts): Add help to options list. (opts): Add 'h' to options string. * umount.cc (longopts): Add help to options list. (opts): Add 'h' to options string and change 'R' to 'A'.
Christopher Faylor
2001-04-16 02:51:03 +0000
4535e6a9aa* uname.c (uname): Default n in in86 to 6 if Windows returns > 6.
Christopher Faylor
2001-04-15 20:39:46 +0000
9f2cad57a6Patch by Kazuhiro Fujieda <fujieda@jaist.ac.jp>: * mkgroup.c (enum_groups): Use RID + offset specified an additional argument as ID. (usage): Add description of -o option. (longopts, opts): Add specifications of -o/--id-offset option. (main): Add -o option. Invoke enum_groups with specified offset. * mkpasswd.c (enum_users): Just like mkgroup.c. (usage, longopts, opts): Ditto. (main): Add -o option. Invoke enum_users with specified offset only against domain accounts.
Corinna Vinschen
2001-04-15 14:09:33 +0000
1ff87985a1* path.cc (add_ext_from_sym): Redefine to call `add_ext_from_sym_'. (add_ext_from_sym_): New inline function.
Corinna Vinschen
2001-04-15 14:00:45 +0000
34bbe838e6* config.h.in: Turn on VFORK by default.
Christopher Faylor
2001-04-14 23:24:07 +0000
266be1d8c9* net.cc (cygwin_socket): Set SO_LINGER to small value so closed UNIX domain sockets will not stay around. * select.cc (socket_cleanup): Set SO_LINGER to small value so closed dummy sockets do not stay around. Use correct value for second argument to shutdown.
Christopher Faylor
2001-04-14 22:11:03 +0000
e6b98fc8d6Sat Apr 14 17:04:00 2001 Robert Collins <rbtcollins@hotmail.com>
Robert Collins
2001-04-14 07:06:02 +0000
1114d47268Fix ChangeLog format.
Christopher Faylor
2001-04-13 15:34:33 +0000
39b6859a28* fork.cc (fork_child): Call the __pthread_atforkchild function. (fork_parent): Call the __pthread_atforkparent function. * cygwin.din: Export pthread_atfork. * thread.h (callback): New class. (MTinterface): Use it. * thread.cc (__pthread_atforkprepare): New function. (__pthread_atforkparent): New function. (__pthread_atforkchild): New function. (__pthread_atfork): New function. * pthread.cc (pthread_atfork): New function.
Christopher Faylor
2001-04-13 15:28:20 +0000
e61cead397* path.cc (add_ext_from_sym): New define evaluating `known'suffix'. (path_conv::check): Use add_ext_from_sym throughout.
Corinna Vinschen
2001-04-13 07:54:20 +0000
cf620a6912bfd/ * libbfd-in.h (_bfd_merge_section): New. (_bfd_write_merged_section): New. (_bfd_merged_section_offset): New. * libbfd.h: Rebuilt. * linker.c (_bfd_generic_link_output_symbols): Handle discard_sec_merge. * aoutx.h (aout_link_write_symbols): Likewise. * pdp11.c (aout_link_write_symbols): Likewise. * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section. (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE sections. (elf_link_sec_merge_syms): New. (elf_link_input_bfd): Call _bfd_merged_section_offset and _bfd_write_merged_section. Handle discard_sec_merge. * elf-bfd.h (struct elf_link_hash_table): Add merge_info field. (struct bfd_elf_section_data): Likewise. * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and SEC_STRINGS section flags and entsize from their ELF counterparts. (_bfd_elf_link_hash_table_init): Initialize merge_info. (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize from their BFD counterparts. * merge.c: New file. * Makefile.am: Add strtab.lo. * Makefile.in: Rebuilt. include/ * bfdlink.h (bfd_link_discard): Add discard_sec_merge. gas/ * config/obj-elf.c (obj_elf_change_section): Add entsize argument, handle SHF_MERGE and SHF_STRINGS. (obj_elf_parse_section_letters): Set SHF_MERGE and SHF_STRINGS. (obj_elf_section): Allow additional argument specifying entity size. * write.c (adjust_reloc_syms): Keep relocations against local symbols in SEC_MERGE sections. ld/ * ldmain.c (main): Default to discard_sec_merge. * lexsup.c (OPTION_DISCARD_NONE): Define. (ld_options): Add --discard-none. (parse_args): Handle OPTION_DISCARD_NONE. * ldlang.c (wild_doit): SEC_MERGE should be set in the output section only if SEC_MERGE and SEC_STRINGS flags and entsize of all its input sections match.
Jakub Jelinek
2001-04-13 00:34:36 +0000
67e810e18c* cygwinenv.sgml: Add text for `check_case' option.
Corinna Vinschen
2001-04-12 21:52:38 +0000
70c370d674* dir.cc (mkdir): Check for case clash. * environ.cc: Add extern declaration for `pcheck_case'. (check_case_init): New function. (struct parse_thing): Add "check_case" option. * errno.cc (_sys_nerrlist): Add text for ECASECLASH. (strerror): Add case branch for ECASECLASH. * fhandler.cc (fhandler_disk_file::open): Check for case clash. * path.cc: Add global variable `pcheck_case'. (struct symlink_info): Add member `case_clash' and method `case_check'. (path_prefix_p_): Call `pathnmatch' instead of `strncasematch'. (pathnmatch): New funtion. (pathmatch): Ditto. (path_conv::check): Add handling for case checking. (symlink): Check for case clash. (symlink_info::check): Add parameter for case checking. Handle case checking. (symlink_info::case_check): New method. (chdir): Don't use unconverted path if pcheck_case==PCHECK_STRICT. * path.h: Add extern declarations for `pathmatch' and `pathnmatch'. (enum case_checking): New enumeration type describing the case checking behaviour of path conversion routines. (class path_conv): Add member `case_clash'. * syscalls.cc (_link): Check for case clash.
Corinna Vinschen
2001-04-12 21:21:37 +0000
b8a8c59d33* libc/include/sys/errno.h: Add ECASECLASH to indicate case clash on case insensitve file systems.
Corinna Vinschen
2001-04-12 21:17:27 +0000
82d4a5d4bb* syscalls.cc (mkfifo): New function stub.
Christopher Faylor
2001-04-12 16:50:13 +0000
aa67fd12e9* configure.in: Remove PTH_ALLOW. * cygwin.din: Remove @PTH_ALLOW@ prefixes to pthread functions. Add new pthread exports. * pthread.cc: New wrapper functions for the above new exports. * sched.cc (valid_sched_parameters): New function. (sched_setparam): Use it. (sched_set_thread_priority): New function. Used by pthread_sched*. * thread.cc (pthread_key_destructor::InsertAfter): New function. (pthread_key_destructor::UnlinkNext): New function. (pthread_key_destructor::Next): New function. (pthread_key_destructor_list::Insert): New function. (pthread_key_destructor_list::Remove): New function. (pthread_key_destructor_list::Pop): New function. (pthread_key_destructor::pthread_key_destructor): New function. (pthread_key_destructor_list::IterateNull): New function. (MTinterface::Init): Initialise new member. (pthread::pthread): Initialise new members. (pthread::create): Copy new attributes. Set the new thread priority. (pthread_attr::pthread_attr): Initialise new members. (pthread_key::pthread_key): Setup destructor function. (pthread_key::~pthread_key): Remove destructor function. (pthread_mutexattr::pthread_mutexattr): New function. (pthread_mutexattr::~pthread_mutexattr): New function. (__pthread_once): New function. (__pthread_cleanup): New function. (__pthread_cancel): New function. (__pthread_setcancelstate): New function. (__pthread_setcanceltype): New function. (__pthread_testcancel): New function. (__pthread_attr_getinheritsched): New function. (__pthread_attr_getschedparam): New function. (__pthread_attr_getschedpolicy): New function. (__pthread_attr_getscope): New function. (__pthread_attr_setinheritsched): New function. (__pthread_attr_setschedparam): New function. (__pthread_attr_setschedpolicy): New function. (__pthread_attr_setscope): New function. (__pthread_exit): Call any key destructors on thread exit. (__pthread_join): Use the embedded attr values. (__pthread_detach): Use the embedded attr values. (__pthread_getconcurrency): New function. (__pthread_getschedparam): New function. (__pthread_key_create): Pass the destructor on object creation. (__pthread_key_delete): Correct incorrect prototype. (__pthread_setconcurrency): New function. (__pthread_setschedparam): New function. (__pthread_cond_timedwait): Support static mutex initialisers. (__pthread_cond_wait): Ditto. (__pthread_mutex_getprioceiling): New function. (__pthread_mutex_lock): Support static mutex initialisers. (__pthread_mutex_trylock): Ditto. (__pthread_mutex_unlock): Ditto. (__pthread_mutex_destroy): Ditto. (__pthread_mutex_setprioceiling): New function. (__pthread_mutexattr_getprotocol): New function. (__pthread_mutexattr_getpshared): New function. (__pthread_mutexattr_gettype): New function. (__pthread_mutexattr_init): New function. (__pthread_mutexattr_destroy): New function. (__pthread_mutexattr_setprotocol): New function. (__pthread_mutexattr_setprioceiling): New function. (__pthread_mutexattr_getprioceiling): New function. (__pthread_mutexattr_setpshared): New function. (__pthread_mutexattr_settype): New function. Remove stubs for non MT_SAFE compilation. * thread.h: Remove duplicate #defines. Add prototypes for new functions in thread.cc. (pthread_key_destructor): New class. (pthread_key_destructor_list): New class. (pthread_attr): Add new members. (pthread): Remove members that are duplicated in the pthread_attr class. (pthread_mutex_attr): Add new members. (pthread_once): New class. * include/pthread.h: Add prototypes for new functions exported from cygwin1.dll. Remove typedefs. * include/sched.h: Add prototypes for new functions in sched.cc. * include/cygwin/types.h: Add typedefs from pthread.h
Christopher Faylor
2001-04-12 15:40:18 +0000
5c83f260b8* configure.in: Remove PTH_ALLOW. * cygwin.din: Remove @PTH_ALLOW@ prefixes to pthread functions. Add new pthread exports. * pthread.cc: New wrapper functions for the above new exports. * sched.cc (valid_sched_parameters): New function. (sched_setparam): Use it. (sched_set_thread_priority): New function. Used by pthread_sched*. * thread.cc (pthread_key_destructor::InsertAfter): New function. (pthread_key_destructor::UnlinkNext): New function. (pthread_key_destructor::Next): New function. (pthread_key_destructor_list::Insert): New function. (pthread_key_destructor_list::Remove): New function. (pthread_key_destructor_list::Pop): New function. (pthread_key_destructor::pthread_key_destructor): New function. (pthread_key_destructor_list::IterateNull): New function. (MTinterface::Init): Initialise new member. (pthread::pthread): Initialise new members. (pthread::create): Copy new attributes. Set the new thread priority. (pthread_attr::pthread_attr): Initialise new members. (pthread_key::pthread_key): Setup destructor function. (pthread_key::~pthread_key): Remove destructor function. (pthread_mutexattr::pthread_mutexattr): New function. (pthread_mutexattr::~pthread_mutexattr): New function. (__pthread_once): New function. (__pthread_cleanup): New function. (__pthread_cancel): New function. (__pthread_setcancelstate): New function. (__pthread_setcanceltype): New function. (__pthread_testcancel): New function. (__pthread_attr_getinheritsched): New function. (__pthread_attr_getschedparam): New function. (__pthread_attr_getschedpolicy): New function. (__pthread_attr_getscope): New function. (__pthread_attr_setinheritsched): New function. (__pthread_attr_setschedparam): New function. (__pthread_attr_setschedpolicy): New function. (__pthread_attr_setscope): New function. (__pthread_exit): Call any key destructors on thread exit. (__pthread_join): Use the embedded attr values. (__pthread_detach): Use the embedded attr values. (__pthread_getconcurrency): New function. (__pthread_getschedparam): New function. (__pthread_key_create): Pass the destructor on object creation. (__pthread_key_delete): Correct incorrect prototype. (__pthread_setconcurrency): New function. (__pthread_setschedparam): New function. (__pthread_cond_timedwait): Support static mutex initialisers. (__pthread_cond_wait): Ditto. (__pthread_mutex_getprioceiling): New function. (__pthread_mutex_lock): Support static mutex initialisers. (__pthread_mutex_trylock): Ditto. (__pthread_mutex_unlock): Ditto. (__pthread_mutex_destroy): Ditto. (__pthread_mutex_setprioceiling): New function. (__pthread_mutexattr_getprotocol): New function. (__pthread_mutexattr_getpshared): New function. (__pthread_mutexattr_gettype): New function. (__pthread_mutexattr_init): New function. (__pthread_mutexattr_destroy): New function. (__pthread_mutexattr_setprotocol): New function. (__pthread_mutexattr_setprioceiling): New function. (__pthread_mutexattr_getprioceiling): New function. (__pthread_mutexattr_setpshared): New function. (__pthread_mutexattr_settype): New function. Remove stubs for non MT_SAFE compilation. * thread.h: Remove duplicate #defines. Add prototypes for new functions in thread.cc. (pthread_key_destructor): New class. (pthread_key_destructor_list): New class. (pthread_attr): Add new members. (pthread): Remove members that are duplicated in the pthread_attr class. (pthread_mutex_attr): Add new members. (pthread_once): New class. * include/pthread.h: Add prototypes for new functions exported from cygwin1.dll. Remove typedefs. * include/sched.h: Add prototypes for new functions in sched.cc. * include/cygwin/types.h: Add typedefs from pthread.h
Robert Collins
2001-04-12 04:04:53 +0000
eae0943a1f* include/windows.h (#include <winsock.h>): Include <winsock2.h> instead if (_WIN32_WINNT >= 0x0400)&&(__W32API_MAJOR_VERSION > 0).
Earnie Boyd
2001-04-12 01:11:41 +0000
e1cc9ad77c2001-04-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
Earnie Boyd
2001-04-12 01:03:29 +0000
74f8cc634a* libc/include/sys/features.h: Add appropriate defines for Cygwin pthread support. * libc/include/sys/signal.h: Remove unneeded __CYGWIN__ protection. * libc/include/sys/types.h: Protect __CYGWIN__ from the rtems pthreads types. Include <cygwin/types.h> for the cygwin specific typedefs.
Christopher Faylor
2001-04-12 00:05:57 +0000
fc672fb26c* path.cc (struct symlink_info): Add extn and ext_tacked_on fields. (path_conv::check): Only tack on extension if a known one didn't already exist. (suffix_scan::has): Return pointer to known extension. (symlink_info::check): Record location of extension, if any.
Christopher Faylor
2001-04-11 19:09:53 +0000
dd9752e88e* mkgroup.c (uni2ansi): Use native method to convert from Unicode to multi-byte strings. * mkpasswd.c (uni2ansi): Ditto. (enum_users): Pass buffer size when converting string. (enum_local_groups): Ditto. * mkgroup.c (enum_groups): Ditto. (enum_local_groups): Ditto.
Egor Duda
2001-04-11 09:38:55 +0000
619f7fa032* fhandler.h (class fhandler_socket): Add members and methods to support secure connections on AF_UNIX sockets. * fhandler_socket.cc (fhandler_socket::set_connect_secret): New method. (fhandler_socket::get_connect_secret): Ditto. (fhandler_socket::create_secret_event): Ditto. (fhandler_socket::close_secret_event): Ditto. (fhandler_socket::check_peer_secret_event): Ditto. (fhandler_socket::fixup_after_fork): Duplicate secret event to child. (fhandler_socket::dup): Copy address family. (fhandler_socket::close): Close secret event. * net.cc (get_inet_addr): Read secret cookie. (cygwin_connect): Check if peer knows secret cookie value. (cygwin_accept): Ditto. Copy address family to newly created socket. (cygwin_bind): Generate and write secret cookie. (wsock_init): Initialize random number generator.
Egor Duda
2001-04-09 07:21:32 +0000
c08e6c4430Work around new g++ problem.
Christopher Faylor
2001-04-09 01:23:27 +0000
4c1ce6d3a2* include/winnt.h (GetCurrentFiber): Make "external __inline" or asm code will be included in every module which includes this header. (GetFiberData): Ditto.
Christopher Faylor
2001-04-09 00:52:35 +0000
e3eef4d042remove extra whitespace.
Christopher Faylor
2001-04-09 00:52:33 +0000
aa970c616c* Makefile.in: Put -lgcc last in list of libraries, since stdc++ library needs it. * cygwin.din: Remove obsolete "__empty" export. * exceptions.cc (call_signal_handler_now): Force inclusion of function even when -finline-functions is specified. * sigproc.h: Remove obsolete call_signal_handler declaration. * fhandler_console.cc (cp_get_internal): New function. (cp_convert): New function. (con_to_str): New function. (str_to_con): New function. (fhandler_console::read): Replace OemToCharBuff with con_to_str. (fhandler_console::write_normal): Replace CharToOemBuff with str_to_con.
Christopher Faylor
2001-04-09 00:44:25 +0000