Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2003-07-25* include/cygwin/socket.h: Conditionalize [AP]F_INET6 define.Christopher Faylor
2003-07-25* Makefile.in (OBSOLETE_FUNCTION): Add fdopen.Christopher Faylor
2003-07-25* cygwin.din: Export _fdopen64Christopher Faylor
* Makefile.in (NEW_FUNCTIONS): Add _fdopen64 -> fdopen translation. * include/cygwin/version.h: Bump api minor number. * ntdll.h: Remove (now) duplicate FILE_SYNCHRONOUS_IO_NONALERT definition.
2003-07-24* environ.cc (check_case_init): Use strncasematch.Christopher Faylor
* cygwin.din: Export __mempcpy. * cygwin/version.h: Bump api minor number.
2003-07-21 * mmap.cc: Use proper format specifiers for _off64_t and size_t inCorinna Vinschen
format strings passed to syscall_printf () and debug_printf () throughout.
2003-07-182003-07-18 Pierre Humblet <pierre.humblet@ieee.org>Pierre Humblet
* security.cc (verify_token): Fix white space and style. Use type bool instead of BOOL and char. Use alloca instead of malloc and free for my_grps.
2003-07-17 * sysconf.cc (sysconf): Fix OPEN_MAX patch. Return page size onCorinna Vinschen
_SC_PAGESIZE again.
2003-07-17update copyrightChristopher Faylor
2003-07-14 * cygheap.h (class cygheap_user): Use INVALID_HANDLE_VALUE as invalidCorinna Vinschen
value for tokens. * syscalls.cc (seteuid32): Ditto. Set new_token to process token if process token is suitable. * uinfo.cc (uinfo_init): Initialize tokens in cygheap user info to INVALID_HANDLE_VALUE. * cygheap.h (enum impersonation): Delete. (cygheap_user::impersonation_state): Delete. (cygheap_user::current_token): New. (cygheap_user::issetuid): Modify to use current_token. (cygheap_user::token): Ditto. (cygheap_user::deimpersonate): Ditto. (cygheap_user::reimpersonate): Ditto. (cygheap_user::has_impersonation_tokens): Ditto. (cygheap_user::close_impersonation_tokens): Ditto. * security.cc (cygwin_set_impersonation_token): Always set the token. (verify_token): Change type of gsid to cygpsid. (get_file_attribute): Use the effective ids. * syscalls.cc (seteuid32): Modify to use cygheap_user::current_token. * uinfo.cc (uinfo_init) Do not set cygheap->user.impersonation_state.
2003-07-13* pinfo.cc (_pinfo::commune_send): Fix bounds test so that poll ofChristopher Faylor
communicating pid actually stops eventually.
2003-07-11* path.cc (get_device_number): Remove special com? consideration.Christopher Faylor
(special_chars): Make static. (special_introducers): New. (special_char): Allow specified valid_chars args. (fnunmunge): Handle aux-like filenames correctly. (special_name): Add con, conin$, conout$. (mount_item::fnmunge): Use __small_sprintf return value to calculate increments.
2003-07-10* include/cygwin/version.h: Bump DLL minor number to 1.Christopher Faylor
2003-07-10* fhandler_proc.cc (format_proc_stat): Use correctly sized constants forChristopher Faylor
filling in zeros on 98.
2003-07-10* include/cygwin/version.h: Bump DLL minor number to 1.Christopher Faylor
2003-07-10* fhandler_proc.cc (fhandler_proc::fill_filebuf): Allocate more space for statChristopher Faylor
buffer. (format_proc_stat): Reorganize to accumulate and report on all cpus.
2003-07-10* sysconf.cc (sysconf): Return processors online rather than bitmask forChristopher Faylor
_SC_NPROCESSORS_ONLN.
2003-07-09* cygheap.cc (creturn): Set appropriate errno when out of memory.Christopher Faylor
(ccalloc): Only issue system_printf when debugging. * dtable.cc (dtable::extend): Only allocate 100 * the incremental growth size max. Set errno appropriately. (dtable::build_fhandler): Check for error from set_name. * fhandler.cc (fhandler_base::set_name): Set errno and return error on OOM. * fhandler.h (fhandler_base::set_name): Change to bool. * fhandler_process.cc (format_process_stat): Fix formatting. * resource.cc (getrlimit): Return greater of OPEN_MAX or fd table size. * sysconf.cc (sysconf): Ditto.
2003-07-07* rmsym: Don't use ranlib.Christopher Faylor
2003-07-07* newsym: Reenable removal of tmp directory. Just use ar to generate archiveChristopher Faylor
index. * Makefile.in: Don't send ranlib to newsym.
2003-07-07* newsym: Create objects that are closer to those created by dlltool so as notChristopher Faylor
to confuse --export-all-symbols. * rmsym: Be a little more accepting of object filenames now that dlltool can create different format files.
2003-07-07* newsym: Oops. Revert below change.Christopher Faylor
2003-07-07* newsym: Use correct prefix for generating imports.Christopher Faylor
* pinfo.cc (_pinfo::commune_send): Don't wait forever for a response from another process.
2003-07-07white spaceChristopher Faylor
2003-07-07* syscalls.cc (gethostid): Set thread affinity so that results are predictable.Christopher Faylor
2003-07-05 * mmap.cc (list::match): Add parameters to return valid address andCorinna Vinschen
length back to munmap(). Evaluate intersection between given area and mapped area and return it, if any. (mmap64): On regular files, don't allow mappings beginning beyond EOF. Return with errno set to ENXIO instead. (munmap): Rewrite SUSv3 conformant. Check if given memory area is valid. Unmap all maps inside given memory area. Don't return error if no mapping has been unmapped.
2003-07-05 * fhandler.h (fhandler_socket::get_connect_state): New method toCorinna Vinschen
return socket connection state. * fhandler_socket.cc (dup): Copy socket connect state to new file handle. * net.cc (cygwin_rcmd): Mark file handles of sockets returned by rcmd() as CONNECTED state. (cygwin_rexec): Similarly for rexec(). (socketpair): Mark both ends of a new socket pair as CONNECTED.
2003-07-04fix typoChristopher Faylor
2003-07-04 * mmap.cc (fhandler_disk_file::mmap): Fix address test.Corinna Vinschen
2003-07-04* path.cc (fillout_mntent): Change "posix" to "managed".Christopher Faylor
2003-07-04* fhandler.h (FH_ENC): New enum.Christopher Faylor
(fhandler_base::get_encoded): New function. (fhandler_base::set_encoded): Ditto. * fhandler_disk_file.cc (fhandler_disk_file::opendir): Set encoded flag in fhandler, as appropriate. (fhandler_disk_file::readdir): Unmunge filename as appropriate based on new encoding flag. * path.cc (normalize_posix_path): Don't punt on files with colons. (special_char): New function. (mount_item::fnmunge): Ditto. (fnunmunge): Ditto. (special_name): Ditto. (mount_item::build_win32): Avoid drive considerations when file is encoded. (mount_info::conv_to_win32_path): Handle encoded filenames. (mount_info::conv_to_posix_path): Ditto. (fillout_mntent): Add posix string when directory is encoded. * path.h (fnunmunge): Declare. (path_conv::is_encoded): Declare.
2003-07-04* fhandler_tty.cc (fhandler_tty_slave::open): Conditionalize a little more ofChristopher Faylor
the cygserver stuff so that ttys actually work.
2003-07-04 * mmap.cc (mmap64): Allow MAP_FIXED with pagesize granularity (4K).Corinna Vinschen
If a non-zero addr is given, align it to the next lower 64K boundary. (fhandler_disk_file::mmap): If a non-zero address is given, try mapping using the given address first. If it fails and flags is not MAP_FIXED, try again with NULL address.
2003-07-02* thread.cc: Remove _MT_SAFE conditional.Christopher Faylor
2003-07-02fix typoChristopher Faylor
2003-07-02* configure.in: Fix --enable-server option.Christopher Faylor
2003-07-02* Makefile.in: Remove cygserver stuff.Christopher Faylor
* acconfig.h: Add USE_CYGSERVER define. * config.h.in: Regenerate. * configure.in: Add --enable-server setting. * configure: Regenerate. * fhandler_tty.cc (fhandler_tty_slave::open): Conditionalize compilation of cygserver stuff. * fork.cc (fork_child): Ditto. * shm.cc: Ditto. * tty.cc (tty::common_init): Ditto. * dcrt0.cc: Use bool rather than BOOL for CYGWIN environment variable definitions. * environ.cc: Ditto. * ntea.cc: Ditto. * security.cc: Ditto. * security.h: Ditto. * syscalls.cc (check_posix_perm): Remove externs that were already declared in a header. * winsup.h: Ditto. Declare _MT_SAFE here. Delete it someday since cygwin should always be _MT_SAFE.
2003-06-30 * cygheap.h (enum impersonation): New enum.Corinna Vinschen
(cygheap_user::token): Delete. (cygheap_user::impersonated): Delete. (cygheap_user::external_token): New member. (cygheap_user::internal_token): New member. (cygheap_user::impersonation_state): New member. (cygheap_user::issetuid): Modify. (cygheap_user::token): New method. (cygheap_user::deimpersonate): New method. (cygheap_user::reimpersonate): New method. (cygheap_user::has_impersonation_tokens): New method. (cygheap_user::close_impersonation_tokens): New method. * dtable.cc (dtable::vfork_child_dup): Use new cygheap_user methods. * fhandler_socket.cc (fhandler_socket::dup): Ditto. * fork.cc (fork_child): Ditto. (fork_parent): Ditto. * grp.cc (internal_getgroups): Ditto. * security.cc (verify_token): Ditto. (check_file_access): Ditto. (cygwin_set_impersonation_token): Detect conflicts. Set user.external_token. * spawn.cc (spawn_guts): Use new cygheap_user methods. * syscalls.cc (seteuid32): Rearrange to use the two tokens in cygheap_user. (setegid32): Use new cygheap_user methods. * uinfo.cc: (internal_getlogin): Ditto.
2003-06-25* Makefile.in: Use INSTALL_PROGRAM to install the cygwin DLL.Christopher Faylor
2003-06-25* thread.cc (MTinterface::fixup_after_fork): Fix thread list after fork.Thomas Pfaff
(pthread::threads): Instantiate. (pthread::pthread): Initialize running and suspendend. Initialize next with NULL. Add thread to thread list if it is not the null_pthread. (pthread::~pthread): Remove thread from thread list if it is not the null_pthread. (pthread::postcreate): Set running flag. (pthread::exit): Reset running flag. (pthread::cancel): Try to cancel thread only if still running. (pthread::_fixup_after_fork): Implement. (pthread::detach): Check if thread is still running before detach. * thread.h (pthread::running): New member. (pthread::next): Ditto. (pthread::fixup_after_fork): New static method. (pthread::threads): New static method. (pthread::_fixup_after_fork): New method.
2003-06-21* pinfo.cc (_pinfo::commune_send): Don't attempt to communicate with a pureChristopher Faylor
windows process.
2003-06-192003-06-18 Pierre Humblet <pierre.humblet@ieee.org>Pierre Humblet
* autoload.cc (GetNetworkParams): Add. * net.cc (getdomainname): Call GetNetworkParams and read the DhcpDomain registry value if warranted.
2003-06-17* path.cc (mount): Do more strict checking on posix path arguments.Christopher Faylor
2003-06-16Throughout, remove "include <errno.h>" from files which already includeChristopher Faylor
cygerrno.h. * include/cygwin/config.h (__DYNAMIC_REENT__): Define. * include/cygwin/version.h: Bump API minor version. * cygwin.din: Export __getreent * cygerrno.h: Include errno.h. Fix places where _impure_ptr is used directly to store the errno value. * debug.cc (__set_errno): Ditto. * errno.cc: Remove _RRENT_ONLY define to get errno.cc compiled. * signal.cc: Rename _reent_clib to _REENT throughout. * thread.h (reent_clib): Remove prototype. * thread.cc (reent_clib): Rename reent_clib to __getreent. Return _impure_ptr until MTinterface is initialized. (reent_winsup): Fix a possible SEGV when _r == NULL. Return NULL instead. * MTinterface::fixup_after_fork: Switch reent back to _impure_ptr to keep signal handling running when fork is called from a thread other than the mainthread.
2003-06-12* thread.cc (pthread_attr_init): Revert change from 2003-06-11Thomas Pfaff
to return 0 if attribute is already initialized back to EBUSY. (pthread_condattr_init): Ditto. (pthread_rwlockattr_init): Ditto. (pthread_mutexattr_init): Ditto.
2003-06-12 * exceptions.cc (ctrl_c_handler): Don't send a signal onCorinna Vinschen
CTRL_SHUTDOWN_EVENT. Add a comment to rationalize the patch.
2003-06-11* thread.cc (pthread_attr_init): Return 0 if attribute is already initialized.Thomas Pfaff
Fix return code if out of memory. (pthread_condattr_init): Ditto. (pthread_rwlockattr_init): Ditto. (pthread_mutexattr_init): Return 0 if attribute is already initialized.
2003-06-09 * spawn.cc (spawn_guts): Call CreateProcess while impersonated,Corinna Vinschen
when the real {u,g}ids and the groups are original. Move RevertToSelf and ImpersonateLoggedOnUser to the main line. * uinfo.cc (uinfo_init): Reorganize. If CreateProcess was called while impersonated, preserve the uids and gids and call ImpersonateLoggedOnUser. Preserve the uids and gids on Win9X. * exceptions.cc (error_start_init): Quote the pgm in the command.
2003-06-07fix typoChristopher Faylor
2003-06-07* poll.cc: Define FD_SETSIZE to ridiculously large number so that there will beChristopher Faylor
no artificially large limits.
2003-06-07* fhandler_tty.cc (fhandler_tty_slave::close): Free the console when last ttyChristopher Faylor
closes.