summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * libm/libm.texinfo: Rename node Index to Document Index.Corinna Vinschen2013-11-083-6/+14
| | | | * libc/libc.texinfo: Rename node Library Index to Document Index.
* * Makefile.in: Properly cd to directory sans install_ prefix. Report on errorsChristopher Faylor2013-11-072-3/+8
| | | | on doc install. Only 'all' is special.
* winsup/ChangeLog:Christopher Faylor2013-11-0718-449/+504
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2013-11-06 Christopher Faylor <me.cygwin2013@cgf.cx> * configure.ac: Detect windows headers/libs after we've figured out the C compiler. * configure: Regenerate. * aclocal.m4: Regenerate. * configure.cygwin: Default to '.' if can't find a winsup directory. winsup/cygserver/ChangeLog: 2013-11-06 Christopher Faylor <me.cygwin2013@cgf.cx> * configure.ac: Detect windows headers/libs after we've figured out the C compiler. * configure: Regenerate. * aclocal.m4: Regenerate. winsup/cygwin/ChangeLog: 2013-11-06 Christopher Faylor <me.cygwin2013@cgf.cx> * configure.ac: Detect windows headers/libs after we've figured out the C compiler. * configure: Regenerate. * aclocal.m4: Regenerate. winsup/utils/ChangeLog: 2013-11-06 Christopher Faylor <me.cygwin2013@cgf.cx> * configure.ac: Detect windows headers/libs after we've figured out the C compiler. * configure: Regenerate. * aclocal.m4: Regenerate.
* * Makefile.in: Reinstate ignoring of errors for doc target.Christopher Faylor2013-11-062-6/+6
|
* * libc/stdio/fvwrite.c: Allow writing in larger chunks for fullyCorinna Vinschen2013-11-042-15/+17
| | | | buffered and unbuffered files, to improve write performance.
* * devices.in (dev_cygdrive_storage): Revert mapping to \Device\Null.Corinna Vinschen2013-10-3112-79/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (dev_storage): Ditto for /dev. * devices.cc: Regenerate. * fhandler.cc (fhandler_base::open_null): New method to open a fake \Device\Null handler. (fhandler_base::open): Fix formatting. Change O_ACCMODE test to a switch statement. Simplify a test which still tested for a now unused create_disposition. * fhandler.h (fhandler_base::open_null): Declare. (fhandler_netdrive::close): Declare. * fhandler_dev.cc (fhandler_dev::open): Open fake \Device\Null handle by just calling new open_null method. * fhandler_disk_file.cc (fhandler_cygdrive::open): Ditto. * fhandler_netdrive.cc (fhandler_netdrive::open): Call open_null rather than setting nohandle. (fhandler_netdrive::close): New method. * fhandler_registry.cc (fetch_hkey): Fix token in RegOpenUserClassesRoot call. Create valid key for HKEY_CURRENT_CONFIG by mapping to real key HKEY_LOCAL_MACHINE\System\CurrentControlSet\Hardware Profiles\Current. (fhandler_registry::open): Set nohandle only when using pseudo registry handle. * fhandler_virtual.cc (fhandler_virtual::opendir): Call open rather than just setting nohandle here. * fhandler_virtual::fstatvfs): Set ST_RDONLY fs flag. * globals.cc (ro_u_null): New readonly UNICODE_STRING for \Device\Null. * path.h (path_conv::set_path): Revert previous change caring for wide_path.
* * libc/stdio/fvwrite.h: change type of uio_resid from int to size_t toCorinna Vinschen2013-10-312-1/+6
| | | | fix fwrite() of > 2GByte buffers.
* Implement malloc_stats for nano.Corinna Vinschen2013-10-302-35/+94
| | | | | | | | | | | | * libc/stdlib/nano-mallocr.c (RONECALL): New parameter macro. (sbrk_start): New variable. (current_mallinfo, free_list): Forward declaration of data. (chunk): Define size as long type. (mallinfo): Synchronize with latest malloc.h. (nano_*): Forward declaration of functions. (get_chunk_from_ptr): Defined to static inline. (nano_mallinfo): Implement this function. (nano_malloc_stats): Implement this function.
* * libc/include/machine/_default_types.h: Revert change from 2013-10-10.Corinna Vinschen2013-10-302-18/+100
|
* *** empty log message ***Corinna Vinschen2013-10-301-0/+11
|
* * devices.in (dev_cygdrive_storage): Map to \Device\Null.Corinna Vinschen2013-10-3010-102/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (dev_storage): Map /dev and /dev/windows to \Device\Null. * devices.cc: Regenerate. * dir.cc (opendir): Create unique id. Explain why. * fhandler.h (fhandler_dev::get_dev): Implement inline. (fhandler_cygdrive::close): Drop declaration. (fhandler_cygdrive::get_dev): Implement inline. (fhandler_windows::get_hwnd): Ditto. (fhandler_windows::set_close_on_exec): Drop declaration. (fhandler_windows::fixup_after_fork): Ditto. * fhandler_dev.cc (fhandler_dev::open): Call fhandler_disk_file::open without O_CREAT flag. Explain why. Create \Device\Null handle if /dev/ doesn't actually exist. (fhandler_dev::close): Drop nohandle case. (fhandler_dev::fstatvfs): Drop nohandle check. Test for fs_got_fs instead. Set ST_RDONLY fs flag for simulated /dev. (fhandler_dev::opendir): If /dev doesn't exist, call open() to create fake \Device\Null handle. Don't set nohandle. Set dir_exists correctly. (fhandler_dev::rewinddir): Call fhandler_disk_file::rewinddir only if /dev is a real directory. * fhandler_disk_file.cc (fhandler_disk_file::opendir): If called for the cygdrive dir, call open() to create fake \Device\Null handle. Only attach __DIR_mounts buffer to dir if not called for cygdrive dir. Don't set nohandle. (fhandler_cygdrive::open): Create \Device\Null handle. (fhandler_cygdrive::close): Remove. (fhandler_cygdrive::fstatvfs): Set ST_RDONLY fs flag. * fhandler_windows.cc (fhandler_windows::open): Create \Device\Null handle. (fhandler_windows::read): Don't add io_handle to WFMO handle array. Change subsequent test for return value accordingly. Fix test for "message arrived". (fhandler_windows::set_close_on_exec): Remove. (fhandler_windows::fixup_after_fork): Remove. * path.h (path_conv::set_path): Make sure wide_path is NULL when setting a new path. * select.cc (peek_windows): Use correct hWnd value, not io_handle. (fhandler_windows::select_read): Don't use io_handle as wait object. (fhandler_windows::select_write): Ditto. (fhandler_windows::select_except): Ditto.
* merge from gccDJ Delorie2013-10-293-17/+36
|
* *** empty log message ***Corinna Vinschen2013-10-281-3/+4
|
* * exception.h: Fold in content of include/exceptions.h.Corinna Vinschen2013-10-274-126/+107
| | | | * include/exceptions.h: Remove.
* * devices.in (dev_storage): Map /dev/dsp to \Device\Null.Corinna Vinschen2013-10-266-18/+32
| | | | | | | | | | | * devices.cc: Regenerate. * fhandler_dsp.cc (fhandler_dev_dsp::open): Call fhandler_base::open. (fhandler_dev_dsp::close): Call fhandler_base::close. (fhandler_dev_dsp::fixup_after_fork): Call fhandler_base::fixup_after_fork. * fhandler_raw.cc (fhandler_dev_raw::fixup_after_fork): Call fhandler_base::fixup_after_fork.
* * exception.h (_exception_list): Drop redefinition for x86_64.Corinna Vinschen2013-10-263-5/+11
| | | | | * include/exceptions.h: Disable content for x86_64 since it's not using frame based exception handling anymore.
* * flock.cc (fhandler_base::lock): Only refuse to lock nohandle andCorinna Vinschen2013-10-254-12/+26
| | | | | | | | old-style console devices when called to perform BSD flock locking. Add a FIXME to comment and align description. * ntdll.h (THREADINFOCLASS): Following MSDN, rename throughout from THREAD_INFORMATION_CLASS.
* * devices.in (dev_storage): Map /dev/clipboard to \Device\Null.Corinna Vinschen2013-10-256-28/+23
| | | | | | | | | | | * devices.cc: Regenerate. * fhandler.h (fhandler_dev_clipboard::open): Drop declaration. * fhandler_clipboard.cc (fhandler_dev_clipboard::dup): Drop call to open. Set private members to 0 and call fhandler_base::dup. (fhandler_dev_clipboard::open): Remove so that default fhandler_base::open is used to open \Device\Null. (set_clipboard): Drop gratuitios call to RegisterClipboardFormatW. (fhandler_dev_clipboard::close): Call fhandler_base::close from here.
* * fhandler_disk_file.cc (fhandler_base::fstat_fs): Fix comment.Corinna Vinschen2013-10-252-1/+5
|
* * fhandler_clipboard.cc (fhandler_dev_clipboard::open): Drop gratuitiosCorinna Vinschen2013-10-253-4/+13
| | | | | | handling of membuffer. It's NULL anyway. (fhandler_dev_clipboard::lseek): Set membuffer to NULL after freeing it to avoid subsequent crashes when accessing invalid pointer.
* * devices.in (dev_storage): Map /dev/random and /dev/urandom toCorinna Vinschen2013-10-257-46/+27
| | | | | | | | | | | | | | \Device\Null. * devices.cc: Regenerate. * fhandler.h (fhandler_dev_random::open): Drop declaration. (fhandler_dev_random::close): Ditto. (fhandler_dev_random::crypt_gen_random): Convert to static method. * fhandler_random.cc (fhandler_dev_random::open): Remove so that default fhandler_base::open is used to open \Device\Null. (fhandler_dev_random::close): Ditto. * fhandler_socket.cc (entropy_source): Delete. (fhandler_socket::af_local_set_secret): Remove entropy_source code and call fhandler_dev_random::crypt_gen_random directly instead.
* * fhandler.h (fhandler_dev_zero::lseek): Convert to inline method.Corinna Vinschen2013-10-246-46/+24
| | | | | | | | | | | | | (class fhandler_dev_random): Drop dummy_offset. (fhandler_dev_random::lseek): Convert to inline method. (fhandler_dev_dsp::lseek): Ditto. * fhandler_dsp.cc (fhandler_dev_dsp::lseek): Drop here. * fhandler_random.cc (fhandler_dev_random::open): Drop setting dummy_offset. (fhandler_dev_random::lseek): Drop here. * fhandler_tape.cc (fhandler_dev_tape::lseek): Make no-op, but keep old code for reference. * fhandler_zero.cc (fhandler_dev_zero::lseek): Drop here.
* * external.cc (fillout_pinfo): If start_time is 0, wait a while beforeChristopher Faylor2013-10-246-1/+28
| | | | | | | | | | returning the pinfo structure. * fhandler.cc (fhandler_base::open_setup): Convert from inline. * fhandler.h (fhandler_base::open_setup): Declare. * fhandler_console.cc (fhandler_console::open_setup): Always call fhandler_base::open_setup. * fhandler_tty.cc (fhandler_pty_slave::open_setup): Ditto. (fhandler_pty_master::open_setup): Ditto.
* Fix typo.Corinna Vinschen2013-10-241-1/+1
|
* * devices.in (dev_storage): Map /dev/zero and /dev/full to \Device\Null.Corinna Vinschen2013-10-2411-64/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * devices.cc: Regenerate. * dtable.h (struct dtable): Make fhandler_base friend, rather than fhandler_disk_file. * fhandler.cc (fhandler_base::open_with_arch): Create unique id. (fhandler_base::cleanup): Call del_my_locks. (fhandler_base::fcntl): Handle F_GETLK, F_SETLK and F_SETLKW. * fhandler.h (fhandler_base::get_dev): Return real device number. (fhandler_base::set_unique_id): New inline method. (fhandler_disk_file::lock): Drop declaration. (fhandler_disk_file::get_dev): New method, return pc.fs_serial_number. (fhandler_dev_zero::open): Drop declaration. * fhandler_disk_file.cc (fhandler_disk_file::close): Move del_my_locks call to fhandler_base::open_with_arch. (fhandler_disk_file::fcntl): Move handling of locking commands to fhandler_base::fcntl. (fhandler_base::open_fs): Drop call to NtAllocateLocallyUniqueId. * fhandler_zero.cc (fhandler_dev_zero::open): Remove so that default fhandler_base::open is used to open \Device\Null. * flock.cc (fixup_lockf_after_exec): Finding a single fhandler is enough here. (fhandler_base::lock): Replace fhandler_disk_file::lock. Refuse to lock nohandle devices. Handle read/write test using POSIX flags. Explain why. Never fail on SEEK_CUR or SEEK_END, rather assume position 0, just as Linux. * net.cc (fdsock): Create unique id.
* * libc/include/stdio.h [!__LARGE64_FILES] (funopen): Fix typoHans-Peter Nilsson2013-10-242-1/+6
| | | | in last change.
* merge from gccDJ Delorie2013-10-232-2/+6
|
* * include /cygwin/config.h (_READ_WRITE_BUFSIZE_TYPE): Define.Corinna Vinschen2013-10-232-0/+5
|
* * libc/include/stdio.h (funopen): Change prototype ofCorinna Vinschen2013-10-2313-37/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | __readfn and __writefn parameter to match new definition of FILE's _read and _write methods. (_funopen_r): Ditto. (funopen): Ditto. (_funopen_r): Ditto. * libc/include/sys/config.h (_READ_WRITE_BUFSIZE_TYPE) Define as type int if not already defined. Add comment to explain. * libc/include/sys/reent.h: Include stddef.h. (struct __sFILE): Change type of last parameter in declaration of _read and _write methods to _READ_WRITE_BUFSIZE_TYPE. (struct __sFILE64): Ditto. * libc/stdio/local.h (__sread): Declare with last parameter set to _READ_WRITE_BUFSIZE_TYPE. (__seofread): Ditto. (__swrite): Ditto. (__swrite64): Ditto. * libc/stdio/fvwrite.c (__sfvwrite_r): Change type of local variables w and s to _READ_WRITE_RETURN_TYPE. * libc/stdio/fflush.c (__sflush_r): Change type of local variables n and t to _READ_WRITE_BUFSIZE_TYPE and _READ_WRITE_RETURN_TYPE. Add local variables flags to keep _flags value. * libc/stdio/fmemopen.c (fmemreader): Align to above change. (fmemwriter): Ditto. * libc/stdio/fopencookie.c (fcreader): Ditto. (fcwriter): Ditto. * libc/stdio/funopen.c (funread): Ditto. (funwrite): Ditto. (funreader): Ditto. (funwriter): Ditto. * libc/stdio/open_memstream.c (memwriter): Ditto. * libc/stdio/stdio.c (__sread): Ditto. (__seofread): Ditto. (__swrite): Ditto. * libc/stdio64/stdio64.c (__swrite64): Ditto.
* * fhandler.cc (fhandler_base::fstat): Drop FH_FULL case to alignCorinna Vinschen2013-10-232-3/+5
| | | | /dev/full permissions to Linux.
* * fhandler.h (fhandler_base::cleanup): Mark as extern rather than inline.Christopher Faylor2013-10-224-1/+16
| | | | | | * fhandler_base.cc (fhandler_base::cleanup): Define. * fhandler_tty.cc (fhandler_pty_slave::cleanup): Call fhandler_base::cleanup. (fhandler_pty_master::cleanup): Ditto.
* .Christopher Faylor2013-10-191-0/+3
|
* * fhandler_termios.cc (tty_min::kill_pgrp): Don't send a signal to myself ifChristopher Faylor2013-10-182-1/+6
| | | | this process is exiting.
* * tty.cc (tty_list::allocate): Set sid to 0 rather than -1 since -1 is an errorChristopher Faylor2013-10-182-1/+6
| | | | condition.
* Fix formattingCorinna Vinschen2013-10-181-23/+23
|
* * configure.in (enable-newlib-global-atexit): New option.Corinna Vinschen2013-10-185-0/+56
| | | | | | | * configure: Regenerated. * newlib.hin (_REENT_GLOBAL_ATEXIT): Place-holder. * README (enable-newlib-global-atexit): Description for new option.
* * libc/include/sys/unistd.h (MAXPATHLEN): Delete.Corinna Vinschen2013-10-185-6/+11
| | | | | | * libc/include/sys/param.h (MAXPATHLEN): Define. * libc/sys/rtems/sys/param.h (MAXPATHLEN): Likewise. * libc/unix/getcwd.c: Include <sys/param.h> for MAXPATHLEN.
* 2013-10-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>Jan-Benedict Glaw2013-10-163-3/+31
| | | | | | * ChangeLog: Sync from GCC. * mh-darwin: Ditto. * bootstrap-ubsan.mk: Ditto.
* 2013-10-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>Jan-Benedict Glaw2013-10-163-0/+25
| | | | | * configure.ac: Update from GCC. * configure: Regenerate.
* * fhandler_process.cc (format_process_ctty): Fix random content ofCorinna Vinschen2013-10-163-1/+15
| | | | | /proc/$PID/ctty if the process has no controlling tty. Set to just "\n" instead.
* Fix ChangeLog entriesCorinna Vinschen2013-10-161-4/+2
|
* * src-release (do-proto-toplevel): Support subdir-path-prefixedHans-Peter Nilsson2013-10-152-1/+24
| | | | | | files in SUPPORT_FILES. (SIM_SUPPORT_DIRS): New variable. (sim.tar.bz2): New rule.
* 2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2013-10-152-23/+38
| | | | | * libc/libc/sys/rtems/sys/param.h: Update some parameters to the latest FreeBSD values.
* 2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2013-10-152-0/+7
| | | | * libc/sys/rtems/machine/_types.h (_HAVE_SYSTYPES): Define.
* 2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2013-10-154-5/+11
| | | | | | | * libc/sys/rtems/machine/_types.h (__dev_t): Define. (__dev_t_defined) Likewise. * libc/include/sys/_types.h (__dev_t): Delete RTEMS specific definition.
* 2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2013-10-151-0/+7
| | | | | | | * libc/sys/rtems/machine/_types.h (__dev_t): Define. (__dev_t_defined) Likewise. * libc/include/sys/_types.h (__dev_t): Delete RTEMS specific definition.
* 2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2013-10-152-26/+5
| | | | | * libc/sys/rtems/machine/_types.h (_ssize_t): Delete. (__ssize_t_defined) Likewise.
* 2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2013-10-152-92/+36
| | | | | | | | | | | | | | | | | | * libc/include/machine/_default_types.h (__int8_t): Define via <stdint.h> provided type. (__uint8_t): Likewise. (__int8_least_t): Likewise. (__uint8_least_t): Likewise. (__int16_t): Likewise. (__uint16_t): Likewise. (__int16_least_t): Likewise. (__uint16_least_t): Likewise. (__int32_t): Likewise. (__uint32_t): Likewise. (__int32_least_t): Likewise. (__uint32_least_t): Likewise. (__int64_t): Likewise. (__uint64_t): Likewise.
* 2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2013-10-152-0/+7
| | | | | * libc/include/paths.h (_PATH_DEVNULL): Define. (_PATH_DEVZERO): Likewise.
* Formatting.Joel Sherrill2013-10-151-2/+2
|