summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/include
Commit message (Collapse)AuthorAgeFilesLines
* * Merge in cygwin-64bit-branch.Corinna Vinschen2013-04-2330-370/+509
|
* * include/sys/queue.h: Delete in favor of more complete newlib file.Corinna Vinschen2013-04-221-512/+0
|
* Adapt to changes in newlib's sys/cdefs.h:Corinna Vinschen2013-04-221-2/+2
| | | | | | * include/sys/sysinfo.h (struct sysinfo): Rename __unused member to __f. * libc/fts.c (__FBSDID): Drop definition. * regex/regexec.c (__unused): Drop definition.
* * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 19.Corinna Vinschen2013-04-221-2/+2
|
* * include/sys/un.h (UNIX_PATH_MAX): Rename from UNIX_PATH_LEN toCorinna Vinschen2013-03-071-3/+3
| | | | | | | | follow Linux. * fhandler_socket.cc: Change UNIX_PATH_LEN to UNIX_PATH_MAX throughout. (fhandler_socket::recv_internal): Don't return prematurely in case of successful return. For AF_LOCAL sockets, overwrite returned AF_INET name with AF_LOCAL name.
* * include/pthread.h (pthread_atfork): Add missing declaration.Corinna Vinschen2013-02-261-0/+2
|
* * include/error.h (error_message_count): Declare as dllimport.Yaakov Selkowitz2013-02-211-0/+6
| | | | | (error_one_per_line): Ditto. (error_print_progname): Ditto.
* * DevNotes: Add entry cgf-000022.Christopher Faylor2013-01-311-20/+32
| | | | | | | | | | | | | | | | | | | | | | * cygtls.h (_cygtls::func): Define as a sa_sigaction style function. * exceptions.cc (sig_handle_tty_stop): Ditto. (_cygtls::interrupt_setup): Fix coercion to accommodate 'func' change. (ctrl_c_handler): Use tty kill_pgrp to send a signal. (sigpacket::process): Don't process sigflush here. (_cygtls::call_signal_handler): Reorganize to avoid a race. Always call sa_sigaction style function. * fhandler_termios.cc (is_flush_sig): Define new function. (tty_min::kill_pgrp): Handle tty flush when signal detected. (fhandler_termios::bg_check): Be slightly more paranoid about checking for valid tty. (fhandler_termios::sigflush): Don't flush unless tty owner. * fhandler_tty.cc (fhandler_pty_slave::ioctl): Use tty kill_pgrp to send signal. (fhandler_pty_master::ioctl): Ditto. * signal.cc (killsys): Delete definition. * sigproc.h (killsys): Delete declaration. * include/cygwin/signal.h (siginfo_t): Simplify union/struct nesting slightly. Implement mechanism to allow cygwin data passing.
* Throughout, update copyrights to reflect dates which correspond to main-branchChristopher Faylor2013-01-2158-65/+70
| | | | checkins. Regularize copyright format.
* * include/pthread.h (pthread_exit): Mark as "noreturn".Christopher Faylor2013-01-141-1/+1
|
* * cygtls.h (_cygtls::signal_exit): Delete from class.Christopher Faylor2013-01-021-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * exception.h (cygwin_exception): New class. (cygwin_exception::dumpstack): Declare new function. (cygwin_exception::context): Ditto. (cygwin_exception::dump_exception): Ditto. * exceptions.cc (cygwin_exception::dump_exception): Move into cygwin_exception class. Accommodate new variable names. (cygwin_exception::dumpstack): Ditto stackdump -> dumpstack. (exception::handle): Move andreas processing earlier. Defer signal processing decisions to the signal thread where they belong. Pass exception information to sig_send via new siginfo_t si_cyg field. (ctrl_c_handler): Wait for SIGHUP signal to be processed since it could cause a process exit and we don't want races with thread exit lock. (signal_exit): Move back here from sigproc.cc. Modify arguments and remove from sigpacket class. Decide when to dump core based on signal type. (sigpacket::process): Handle exiting signals in context of threads rather than in the signal thread. Signal debugger on non-Windows signals. Remove setup_signal_exit call. * sigproc.cc (no_signals_available): Remove argument. (signal_exit_code): Delete. (close_my_readsig): Ditto. (_cygtls::signal_exit): Move to exceptions.cc. (sigproc_terminate): Don't attempt to terminate signal thread. (setup_signal_exit): Delete. (exit_thread): Use new si_cyg entry in siginfo_t. (sig_send): Just use empty initializer for si. Accommodate change in no_signals_available argument. (wait_sig): Remove attempt to "go asynchronous" on process exit. Delete __SIGEXIT handling. Don't ever exit. * sigproc.h: Remove __SIGEXIT from signal enum. Renumber. * include/cygwin/signal.h (siginfo_t): Add si_cyg entry.
* * fhandler.cc (fhandler_base::write): Don't attempt to sparsifyCorinna Vinschen2012-12-141-2/+2
| | | | | | | | | | | | | | | | | an already sparse file. Drop check for FILE_SUPPORTS_SPARSE_FILES flag. Explicitely set FILE_ATTRIBUTE_SPARSE_FILE attribute in cached attributes. (fhandler_base::lseek): Only set did_lseek if sparseness is supported. * fhandler_disk_file.cc (fhandler_disk_file::ftruncate): Don't attempt to sparsify an already sparse file. Explicitely set FILE_ATTRIBUTE_SPARSE_FILE attribute in cached attributes. * mount.cc (oopt): Add "sparse" flag. (fillout_mntent): Ditto. * path.h (enum path_types): Add PATH_SPARSE. (path_conv::support_sparse): New method. (path_conv::fs_flags): Constify. (path_conv::fs_name_len): Ditto. include/sys/mount.h: Replace unused MOUNT_MIXED flag with MOUNT_SPARSE.
* * include/cygwin/wait.h (WAIT_ANY): Define.Yaakov Selkowitz2012-12-061-0/+3
| | | | (WAIT_MYPGRP): Define.
* * termios.cc (cfsetspeed): New function.Yaakov Selkowitz2012-11-212-1/+3
| | | | | | | * cygwin.din (cfsetspeed): Export. * posix.sgml (std-bsd): Add cfsetspeed. * include/sys/termios.h (cfsetspeed): Declare. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* * include/mntent.h: Only include paths.h when building for Cygwin.Corinna Vinschen2012-11-161-3/+9
| | | | Add comment to explain why.
* * include/sys/termios.h (CBRK): Define as alias of CEOL.Yaakov Selkowitz2012-11-051-0/+9
| | | | | | (CREPRINT): Define as alias of CRPRNT. (CDISCARD): Define as alias of CFLUSH. (TTYDEF_*): Define.
* Fix copyrightCorinna Vinschen2012-10-311-1/+1
|
* * include/sys/param.h: Include stddef.h to define NULL.Corinna Vinschen2012-10-311-4/+3
|
* * include/sys/cygwin.h: Add missing defines for CW_ALLOC_DRIVE_MAP,Corinna Vinschen2012-10-301-0/+3
| | | | CW_MAP_DRIVE_MAP and CW_FREE_DRIVE_MAP.
* * include/cygwin/signal.h (sigset_t): Define here.Corinna Vinschen2012-10-261-0/+2
|
* * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 18.Corinna Vinschen2012-10-211-1/+1
|
* * fhandler.h (class fhandler_dev_raw): Add members devbufalloc andCorinna Vinschen2012-10-131-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | devbufalign. (class fhandler_dev_floppy): Remove member bytes_per_sector; * fhandler_floppy.cc (bytes_per_sector): Define as devbufalign. (fhandler_dev_floppy::open): Set devbufalign to a multiple of the sector size and handle devbuf allocation and alignment in !O_DIRECT case here. Change comment accordingly. Call FSCTL_ALLOW_EXTENDED_DASD_IO for partitions as well. (fhandler_dev_floppy::raw_write): Fix comment. Rewrite and fix writing behaviour when application uses read and lseek. (fhandler_dev_floppy::lseek): Use rounddown macro. Call SetFilePointerEx rather than the old SetFilePointer. (fhandler_dev_floppy::ioctl): Reformat switch. Call IOCTL_DISK_UPDATE_PROPERTIES rather than IOCTL_DISK_UPDATE_DRIVE_SIZE in BLKRRPART case. Support BLKIOMIN, BLKIOOPT, BLKPBSZGET and BLKALIGNOFF. * fhandler_raw.cc (fhandler_dev_raw::fhandler_dev_raw): Initialize all devbuf-related members. (fhandler_dev_raw::~fhandler_dev_raw): Delete devbufalloc rather than devbuf. (fhandler_dev_raw::open): Drop allocating devbuf. (fhandler_dev_raw::dup): Allocate devbufalloc and set devbuf to support new sector-aligned devbuf handling. (fhandler_dev_raw::fixup_after_exec): Ditto. * fhandler_tape.cc (fhandler_dev_tape::open): Ditto, set devbufalign to 1. * include/cygwin/fs.h (BLKIOMIN): Define. (BLKIOOPT): Define. (BLKALIGNOFF): Define. (BLKPBSZGET): Define.
* * include/cygwin/in.h (struct in_addr): Guard with s_addr to avoidCorinna Vinschen2012-10-101-0/+4
| | | | potential collision with Win32 headers.
* * fhandler_clipboard.cc (fhandler_dev_clipboard::read): UseCorinna Vinschen2012-08-171-2/+1
| | | | | | read-ahead buffer for reading Windows clipboard if caller's buffer is too small for complete characters. * include/limits.h: Remove outdated TODO comment.
* * include/sys/wait.h (_wait): Define when building newlib.Corinna Vinschen2012-08-081-1/+5
|
* * include/cygwin/socket.h (MSG_BCAST): Define.Corinna Vinschen2012-08-011-0/+3
| | | | (MSG_MCAST): Define.
* * include/inttypes.h: Add x86_64 target considerations throughout.Corinna Vinschen2012-07-282-91/+224
| | | | | Define macros in C++ according to C99 requirements. * include/stdint.h: Ditto.
* * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 17.Christopher Faylor2012-07-211-1/+1
|
* * cygwin.din (getmntent_r): Export.Corinna Vinschen2012-07-182-1/+3
| | | | | | | * mount.cc (getmntent_r): New function. * posix.sgml (std-gnu): Add getmntent_r. * include/mntent.h (getmntent_r): Declare. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* In terms of network related functionality, rely on Winsock definitionsCorinna Vinschen2012-07-064-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | as much as possible: * dtable.cc: Drop including sys/socket.h. * fhandler_procnet.cc: Change includes accordingly. * fhandler_socket.cc: Ditto. (fhandler_socket::listen): Avoid gcc error message initializing sin6. (LPFN_WSARECVMSG): Only define when building against w32api headers. * net.cc: Change includes accordingly. Define USE_SYS_TYPES_FD_SET and __WSA_ERR_MACROS_DEFINED. Define _INC_NETIOAPI temporarily and explain why. (struct _IP_ADAPTER_UNICAST_ADDRESS_LH): Only define when building against w32api headers. (struct _IP_ADAPTER_ADDRESSES_LH): Ditto. (SIO_GET_INTERFACE_LIST): Ditto. (ws_freeaddrinfo): Rename from freeaddrinfo so as not to collide with Winsock declaration. Change througout. (ws_getaddrinfo): Ditto. (ws_getnameinfo): Ditto. * select.cc: Include netdb.h after defining USE_SYS_TYPES_FD_SET. * syslog.cc: Drop including netinet/in.h. Define USE_SYS_TYPES_FD_SET and include ws2tcpip.h. * include/netdb.h (struct addrinfo): Don't define when building Cygwin. * include/cygwin/if.h: Don't declare if_xxx functions when building Cygwin. * include/cygwin/in.h: Disable most definitions when building Cygwin. * include/cygwin/socket.h: Disable sockaddr and sockaddr_storage definitions when building Cygwin. Same for MCAST_INCLUDE/MCAST_EXCLUDE. * libc/inet_addr.c: Don't define __INSIDE_CYGWIN__ nor __INSIDE_CYGWIN_NET__. * libc/inet_network.c: Ditto. * libc/minires.h: Drop redundant inclusion of netdb.h. Define __INSIDE_CYGWIN_NET__ only before including netdb.h and resolver headers.
* * include/sys/elf_common.h (R_386_16): Define.Yaakov Selkowitz2012-06-101-0/+4
| | | | | | (R_386_PC16): Define. (R_386_8): Define. (R_386_PC8): Define.
* * include/elf.h: Update from FreeBSD.Yaakov Selkowitz2012-06-067-245/+1388
| | | | | | | | | | | | * include/machine/elf.h: New header, from FreeBSD. * include/sys/elf.h: Ditto. * include/sys/elf32.h: Update from FreeBSD. * include/sys/elf64.h: Ditto. * include/sys/elf_common.h: Ditto. (R_IA64_*): Define Linux-style names as aliases to R_IA_64_*. (R_SH_*): Define, based on sh-4 psABI. (R_390_*): Define, based on s390x psABI. * include/sys/elf_generic.h: Ditto.
* * cygwin.din (memrchr): Export.Corinna Vinschen2012-05-101-1/+2
| | | | | * posix.sgml (std-gnu): Add memrchr. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 16.Corinna Vinschen2012-05-101-1/+1
|
* * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 15.Corinna Vinschen2012-04-241-1/+1
|
* * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 14.Corinna Vinschen2012-04-051-1/+1
|
* * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 13.Corinna Vinschen2012-04-031-1/+1
|
* * ntdll.h (SharedUserData): Add volatile qualifier. This fixes aCorinna Vinschen2012-03-201-3/+3
| | | | possible infinite loop in hires_ms::timeGetTime_ns.
* * include/netdb.h (h_errno): Add self-referencing macro and comment.Corinna Vinschen2012-03-131-0/+3
|
* tcgetsid: fix return typeEric Blake2012-02-281-2/+4
| | | | | | | | * include/sys/termios.h (tcgetsid): Fix return type. * termios.cc (tcgetsid): Likewise. * fhandler_termios.cc (fhandler_termios::tcgetsid): Likewise. * fhandler.h (fhandler_base): Likewise. * fhandler.cc (fhandler_base::tcgetsid): Likewise.
* * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 12.Christopher Faylor2012-02-251-1/+1
|
* * cygwin.din (scandirat): Export.Yaakov Selkowitz2012-02-222-2/+7
| | | | | | | * posix.sgml (std-gnu): Add scandirat. * syscalls.cc (scandirat): New function. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump. * include/sys/dirent.h (scandirat): Declare.
* * include/pthread.h: Include time.h as required by POSIX.Yaakov Selkowitz2012-02-131-1/+2
|
* * include/sys/wait.h: Remove C++ inline functions for `union wait'. For C++Christopher Faylor2012-02-081-16/+10
| | | | | use `void *' as __wait_status_ptr_t instead. This is less type safe but fixes compile error on `wait(NULL)'. Remove extra `;'.
* * include/sys/sysmacros.h: Include sys/types.h.Corinna Vinschen2012-02-081-1/+3
|
* * include/process.h: Move here from include/cygwin subdir.Corinna Vinschen2012-02-071-0/+0
| | | | | | | * exec.cc: Change include of process.h to reflect the fact that it's now back in include. * spawn.cc: Ditto. * syscalls.cc: Ditto.
* * include/cygwin/version.h: Bump CYGWIN_VERSION_DLL_MINOR to 11.Christopher Faylor2012-02-071-1/+1
|
* * include/cygwin/config.h (_GLIBC_EXTENSION): Define.Yaakov Selkowitz2012-01-131-0/+1
|
* Update copyright on all files checked in so far this year.Christopher Faylor2012-01-111-1/+1
| | | | | | | | | | | | | | | | | * fhandler.h: Use #pragma once rather than ifdef guards. (fhandler_console::tc_getpgid): Return our pgid if we have never opened a console. * fork.cc: Rearrange includes to accommodate fhandler.h use of pinfo.h. * sigproc.cc: Ditto. * spawn.cc: Ditto. (child_info_spawn::worker): Query myself->pgid rather than calling expensive function. * thread.h: Use #pragma once rather than ifdef guards. * pinfo.h: Use #pragma once rather than ifdef guards. (pinfo::remember): Don't define if sigproc.h has not been included. (pinfo::reattach): Ditto. * sigproc.h: Use #pragma once rather than ifdef guards. Use different test to see if pinfo.h has been included.
* * include/cygwin/process.h: Move here from newlib.Corinna Vinschen2012-01-091-0/+43
| | | | | | | * exec.cc: Change include of process.h to reflect the fact that it's now in the include/cygwin subfolder. * spawn.cc: Ditto. * syscalls.cc: Ditto.