aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/include
AgeCommit message (Collapse)AuthorFilesLines
2005-11-18* include/cygwin/sys_time.h: Move futimes and lutimes declaration here fromChristopher Faylor1-1/+3
newlib.
2005-11-18* times.cc (timezone): Put back (void).Christopher Faylor1-0/+14
* include/cygwin/time.h: Add more cygwin stuff from newlib.
2005-11-18* include/cygwin/sys_time.h: Rename from include/cygwin/time.h.Christopher Faylor2-4/+29
* include/cygwin/time.h: New file.
2005-11-14* include/sys/elf64.h: Fix types to reflect linux usage.Christopher Faylor1-38/+41
2005-11-11* cygheap.h (init_cygheap::_gtod): Remove.Christopher Faylor2-1/+27
* cygwin.din: Export clock_getres and clock_setres. * hires.h (hires_ms::minperiod): Delete declaration. (hires_ms::began_period): Ditto. (hires_ms::prime): Make void. (hires_ms::resolution): Just define here. (hires_ms::usecs): Remove unneeded argument. (gtod): Redeclare as a variable. * timer.cc (timer_thread): Eliminate argument to gtod.usecs(). (timer_tracker::gettime): Ditto. (timer_tracker::settime): Ditto. * times.cc (gettimeofday): Ditto. (hires_ms::began_period): Delete declaration. (hires_us::prime): Remove debugging. (hires_ms::prime): Make void. Eliminate period stuff. (hires_ms::usecs): Eliminate argument to gtod.usecs(). (hires_ms::resolution): New function. (clock_getres): Ditto. (clock_setres): Ditto. * version.h: Bump API version to 143. * include/cygwin/time.h: New file.
2005-11-11* times.cc (hires_ms::prime): Comment out call to timeBeginPeriod for now.Christopher Faylor1-0/+2
(hires_ms::usecs): Call prime if haven't called began_period(). * param.h: Don't define stuff that is already defined in endian.h.
2005-11-10* include/endian.h: Remove USE_BSD ifdef since it is never defined on Cygwin.Christopher Faylor1-2/+2
2005-11-10 * include/cygwin/signal.h: Add missing sigrelse prototype.Corinna Vinschen1-0/+1
2005-11-08* memmem.cc: New file.Christopher Faylor1-1/+2
* include/cygwin/version.h: Bump API version number to 142. * cygwin.din: Export memmem.
2005-11-01* include/sys/cygwin.h: Define CYGWIN_SIGNAL_STRING.Christopher Faylor1-0/+2
* exceptins.cc (sigpacket::process): Send a _CYGWIN_SIGNAL_STRING to gdb if the process is being debugged. A WIP.
2005-10-22 * include/cygwin/version.h: Fix typo.Corinna Vinschen1-1/+1
2005-10-20 * cygwin.din (futimes): Export.Corinna Vinschen1-1/+2
(lutimes): Export. * times.cc (utimes_worker): Created from utimes, add nofollow flag to implement utimes and lutimes. (utimes): Just call utimes_worker. (lutimes): New function. (futimes): Ditto. * include/cygwin/version.h: Bump API minor version.
2005-10-18 * autoload.cc (NtLockVirtualMemory): Import.Corinna Vinschen2-1/+4
(NtUnlockVirtualMemory): Import. (GetProcessWorkingSetSize): Import. (SetProcessWorkingSetSize): Import. * cygwin.din (mlock): Export. (munlock): Export. * mmap.cc (mlock): New function. (munlock): Ditto. * ntdll.h (STATUS_WORKING_SET_QUOTA): Define. (LOCK_VM_IN_WSL): Define. (LOCK_VM_IN_RAM): Define. (NtLockVirtualMemory): Declare. (NtUnlockVirtualMemory): Declare. * sysconf.cc (sysconf): Implement _SC_MEMLOCK_RANGE. * wincap.h: Implement has_working_virtual_lock throughout. * wincap.cc: Ditto. * include/cygwin/version.h: Bump API minor version. * include/sys/mman.h (mlock): Declare, (munlock): Declare.
2005-10-17 * autoload.cc: Never load wsock32.dll. Load all wsock32 functionCorinna Vinschen2-26/+107
from ws2_32. Rearrange symbol order accordingly. None of the ws2_32 functions is optional right now. (wsadata): Move from net.cc here. Define NO_COPY. (wsock_init): Drop unused symbols ws2_32_handle and wsock32_handle. (load_wsock32): Remove. (WSACleanup): Remove. * fhandler_socket.cc: Drop Winsock 1 accommodations throughout. (fhandler_socket::readv): Accomodate new POSIX style struct msghdr. (fhandler_socket::writev): Ditto. (fhandler_socket::recvmsg): Ditto. Handle "old" applications using former struct msghdr correctly. * net.cc: Drop Winsock 1 accommodations throughout. (wsadata): Move definition to autoload.cc. (set_socket_inheritance): Remove. (convert_ws1_ip_optname): New static function to convert Winsock1 IPPROTO_IP option values into Winsock2 IPPROTO_IP option values. (cygwin_setsockopt): Remove wrong and incomplete cleartext printing of optname. For "old" applications, convert optname from Winsock1 to Winsock2 values before using them. Add comment to describe the IP_TOS weirdness on W2K and above. (cygwin_getsockopt): Remove wrong and incomplete cleartext printing of optname. For "old" applications, convert optname from Winsock1 to Winsock2 values before using them. * select.cc (start_thread_socket): Forget about winsock2_active. * winsup.h (wsock32_handle): Remove declaration. (ws2_32_handle): Ditto. (netapi32_handle): Ditto. (wsadata): Ditto. (winsock2_active): Remove definition. * include/cygwin/socket.h: Change formatting slightly. (socklen_t): Move definition up in file. (struct msghdr): Convert to POSIX style. (struct cmsghdr): New type. (CMSG_ALIGN): New macro. (CMSG_LEN): Ditto. (CMSG_SPACE): Ditto. (CMSG_FIRSTHDR): Ditto. (CMSG_NXTHDR): Ditto. (CMSG_DATA): Ditto. (SCM_RIGHTS): Ditto. (struct OLD_msghdr): Define old msghdr structure for Cygwin internal purposes. (MSG_TRUNC): New macro. (MSG_CTRUNC): Ditto. (IP_OPTIONS): Redefine IPPROTO_IP option values to Winsock2 values. Keep Winsock1 values for Cygwin internal purposes. * include/cygwin/version.h: Bump API minor version. (CYGWIN_VERSION_CHECK_FOR_USING_ANCIENT_MSGHDR): Define to check for applications using old struct msghdr. (CYGWIN_VERSION_CHECK_FOR_USING_WINSOCK1_VALUES): Define to check for applications using old Winsock1 IPPROTO_IP values.
2005-09-28Change name from commune_recv to commune_process throughout. Change name fromChristopher Faylor1-0/+15
commune_send to commune_request throughout. * pinfo.h (PICOM_EXTRASTR): New flag. (PICOM_FIFO): Define with new flag. (_pinfo::hello_pid): Delete. (_pinfo::tothem): Delete. (_pinfo::fromthem): Delete. (_pinfo::commune_process): Rename from commune_recv. Add a siginfo_t argument to declaration. (_pinfo::commune_request): Rename from commune_send. Change DWORD to __uint32_t in declaration. * pinfo.cc (_pinfo::commune_process): Rename from commune_recv. Add siginfo_t argument. Use information from argument rather than reading from another pipe. Synchronize with other process's commune event. (_pinfo::commune_request): Rename from commune_send. Change DWORD to __uint32 in argument. Fill out information in new siginfo_t element and rely on extended operation of sig_send rather than trying to deal with synchronization issues here. Use process handle and read pipe information filled out by sig_send to gather information from the other process. * sigproc.cc (sig_send): Take special action if "communing" to ensure synchronization with the other process and to return information about the other process to the caller. (talktome): Accept a siginfo_t and handle arguments. Read additional information from the signal pipe when _si_commune._si_code has the PICOM_EXTRASTR flag set. (wait_sig): Pass the transmitted siginfo_t struct and the pipe handle to talktome. Close pipe read handle as soon as possible after we detect that we're exiting.
2005-09-28 Revert erroneous checkin.Corinna Vinschen2-60/+3
2005-09-28 * fhandler.h (class fhandler_dev_raw): Delete current_position andCorinna Vinschen2-3/+60
eof_detected status flag. Delete is_eom and is_eof methods. Move drive_size, bytes_per_sector, eom_detected status flag, as well as the methods read_file, write_file, raw_read and raw_write to ... (class fhandler_dev_floppy): ... here. Remove is_eom and is_eof methods. Add dup method. * fhandler_floppy.cc (IS_EOM): New macro. (fhandler_dev_floppy::is_eom): Remove. (fhandler_dev_floppy::is_eof): Remove. (fhandler_dev_floppy::fhandler_dev_floppy): Initialize status flags. (fhandler_dev_floppy::get_drive_info): Only call EX functions on systems supporting them and stop suffering strange delays. (fhandler_dev_floppy::read_file): Move here, drop setting current_position. (fhandler_dev_floppy::write_file): Move here, drop setting current_position. (fhandler_dev_floppy::open): Rearrange comment. (fhandler_dev_floppy::dup): New method. (fhandler_dev_floppy::get_current_position): New inline method. Use instead of former current_position were appropriate. (fhandler_dev_floppy::raw_read): Move here. Drop EOF handling. (fhandler_dev_floppy::raw_write): Move here. Drop EOF handling. (fhandler_dev_floppy::lseek): Remove useless conditions. Convert sector_aligned_offset to LARGE_INTEGER to improve SetFilePointer call. (fhandler_dev_floppy::ioctl): Move blocksize check in RDSETBLK case to here. * fhandler_raw.cc (fhandler_dev_raw::is_eom): Remove. (fhandler_dev_raw::is_eof): Remove. (fhandler_dev_raw::write_file): Remove. (fhandler_dev_raw::read_file): Remove. (fhandler_dev_raw::raw_read): Remove. (fhandler_dev_raw::raw_write): Remove. (fhandler_dev_raw::dup): Drop copying removed members. (fhandler_dev_raw::ioctl): Drop blocksize testing. * wincap.h: Implement has_disk_ex_ioctls throughout. * wincap.cc: Ditto. (wincap_vista): Preliminary wincaps for Windows Vista/Longhorn. (wincapc::init): Add Vista/Longhorn handling.
2005-09-22* include/sys/strace.h (_STRACE_ON): Remove semicolon from definition.Christopher Faylor1-2/+2
(_STRACE_OFF): Remove semicolon from definition.
2005-09-17 * net.cc (cygwin_inet_ntop): Change len argument to socklen_t toCorinna Vinschen2-1/+2
follow SUSv3. * include/arpa/inet.h (inet_ntop): Ditto. * include/cygwin/in.h: Include cygwin/socket.h to get socklen_t.
2005-08-28Add missing ChangeLog for previous checkin.Christopher Faylor1-2/+1
Revert erroneous include/cygwin/version.h checkin.
2005-08-28* cygwin.din: Correct readdir_r typo.Christopher Faylor1-1/+2
2005-08-20* cygerrno.h (geterrno_from_win_error): Change declaration to default to usingChristopher Faylor2-1/+3
GetLastError and EACCESS. * cygwin.din: Export readdir_r. * include/cygwin/version.h: Bump API version number to 138. * syscalls.cc (readdir_worker): New function, renamed from old readdir() function. (readdir): Use readdir_worker. (readdir_r): New function. * fhandler.h (fhandler_base::readdir): Accommodate second argument indicating dirent buffer. (fhandler_disk_file::readdir): Ditto. (fhandler_cygdrive::readdir): Ditto. (fhandler_proc::readdir): Ditto. (fhandler_netdrive::readdir): Ditto. (fhandler_registry::readdir): Ditto. (fhandler_process::readdir): Ditto. * fhandler.cc (fhandler_base::readdir): Ditto. * fhandler_disk_file.cc (fhandler_disk_file::readdir): Ditto. * fhandler_cygdrive.cc (fhandler_cygdrive::readdir): Ditto. * fhandler_proc.cc (fhandler_proc::readdir): Ditto. * fhandler_netdrive.cc (fhandler_netdrive::readdir): Ditto. * fhandler_registry.cc (fhandler_registry::readdir): Ditto. * fhandler_process.cc (fhandler_process::readdir): Ditto.
2005-08-12white spaceChristopher Faylor3-21/+20
2005-08-08* include/sys/cdefs.h: Remove extra line.Christopher Faylor1-1/+0
2005-08-08* include/sys/cdefs.h (__CONCAT): Define.Christopher Faylor6-0/+742
* include/elf.h: New file. * include/sys/elf32.h: Ditto. * include/sys/elf64.h: Ditto. * include/sys/elf_common.h: Ditto. * include/sys/elf_generic.h: Ditto.
2005-08-08 * ftw.c: Include winsup.h.Corinna Vinschen1-0/+8
* nftw.c: Ditto. * include/ftw.h: Guard declarations appropriately.
2005-08-08 * Makefile.in (DLL_OFILES): Add fts.o, ftw.o, nftw.o.Corinna Vinschen3-1/+218
* cygwin.din: Export fts_children, fts_close, fts_get_clientptr, fts_get_stream, fts_open, fts_read, fts_set, fts_set_clientptr, ftw, nftw. * fts.c: New file, imported from FreeBSD. * ftw.c: Ditto. * nftw.c: Ditto. * include/fts.h: Ditto. * include/ftw.h: Ditto. * include/cygwin/version.h: Bump API minor number.
2005-08-06* include/endian.h: Move everything into this file and define things more likeChristopher Faylor3-1/+51
linux. * include/cygwin/types.h: Include endian.h. * include/sys/dirent.h: Define DT_* types and conversion macros. * pinfo.cc (pinfo::init): Remove special handling for PID_ALLPIDS and execed code, even though it probably still isn't quite right.
2005-08-02 * include/sys/termios.h: Define TIOCMBIS and TIOCMBIC.Corinna Vinschen2-2/+5
* fhandler.h (class fhandler_serial): Declare switch_modem_lines. * fhandler_serial.cc (fhandler_serial::switch_modem_lines): New static function to set or clear DTR and/or RTS. (fhandler_serial::ioctl): Use switch_modem_lines for TIOCMSET and new TIOCMBIS and TIOCMBIC. * include/cygwin/version.h: Bump API minor number.
2005-07-29white spaceChristopher Faylor1-4/+4
2005-07-29* fhandler.h (fhandler_base::pread): Declare new function.Christopher Faylor2-25/+32
(fhandler_base::pwrite): Ditto. (fhandler_disk_file::pread): Ditto. (fhandler_disk_file::pwrite): Ditto. * fhandler.cc (fhandler_base::pread): Define new function. (fhandler_base::pwrite): Ditto. * fhandler_disk_file.cc (fhandler_base::pread): Ditto. (fhandler_base::pwrite): Ditto. * syscalls.cc (pread): Define new function. (pwrite): Ditto. * cygwin.din: Export pread, pwrite. * include/sys/ioctl.h: Guard some _IO* declarations to avoid conflict with socket.h.
2005-07-29* include/sys/ioctl.h: Add some linux defines.Christopher Faylor1-4/+36
2005-07-27* include/cygwin/in.h (INET_ADDRSTRLEN): Add new definition.Christopher Faylor1-0/+2
2005-07-26* include/byteswap.h: New file.Christopher Faylor1-0/+39
2005-07-25* include/cygwin/types.h: Define loff_t.Christopher Faylor1-0/+2
2005-07-09 * cygwin.din (getline): Export.Corinna Vinschen2-3/+9
(getdelim): Export. * include/sys/stdio.h (getline): Replace macro with function prototype. (getdelim): Likewise. * include/cygwin/version.h: Bump API minor number.
2005-07-08 * cygwin.din (__getline): Export.Corinna Vinschen2-2/+6
(__getdelim): Export. * include/sys/stdio.h (getline): Define as __getline. (getdelim): Define as __getdelim. * include/cygwin/version.h: Bump API minor number.
2005-07-03* include/cygwin/version.h: Bump DLL minor number to 19.Christopher Faylor1-1/+1
2005-06-18 * glob.c: (glob0): New local variable `limit`. Use in calls to glob1Corinna Vinschen2-1/+3
and globextend. (glob1): Add `limit' parameter. (glob2): Ditto. (glob3): Ditto. (globextend): Ditto. Implement GLOB_LIMIT handling. * include/glob.h (GLOB_LIMIT): New define. * include/cygwin/version.h: Bump API minor number.
2005-06-17 * cygwin.din (inet_pton): Export.Corinna Vinschen2-1/+4
(inet_ntop): Export. * net.cc (cygwin_inet_pton): Implement inet_pton for AF_INET for now. (cygwin_inet_ntop): Implement inet_ntop for AF_INET for now. * include/arpa/inet.h (inet_pton): Declare. (inet_ntop): Declare. * include/cygwin/version.h: Bump API minor number.
2005-06-11* include/pthread.h: Change PTHREAD_MUTEX_DEFAULT to PTHREAD_MUTEX_NORMAL.Christopher Faylor1-2/+2
Revert PTHREAD_MUTEX_INITIALIZER to PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP since that is actually closer to what linux does. * thread.h (cw_cancel_action): New enum. (cancelable_wait): Use cw_cancel_action as third argument. * thread.cc (cancelable_wait): Ditto. Don't wait for cancel if cancel_action == cw_no_cancel. (pthread::create): Don't wait for cancel event since that is racy. (pthread_mutex::pthread_mutex): Set default to PTHREAD_MUTEX_ERRORCHECK. (pthread_mutexattr::pthread_mutexattr): Ditto. (pthread_mutex::_lock): Tell cancelable_wait not to wait for cancellation event. (semaphore::_timedwait): Accommodate change in cancelable_wait args. (pthread::join): Ditto.
2005-06-10 * cygwin.din (imaxabs): Export.Corinna Vinschen2-2/+4
(imaxdiv): Export. (llabs): Export. (lldiv): Export. (strtoimax): Export. (strtoumax): Export. * include/inttypes.h (imaxabs): Activate declaration. (imaxdiv): Ditto. (strtoimax): Ditto. (strtoumax): Ditto. * include/cygwin/version.h: Bump API minor.
2005-06-09* include/pthread.h (PTHREAD_MUEXT_INITIALIZER): Change toChristopher Faylor1-1/+1
PTHREAD_NORMAL_MUTEX_INITIALIZER_NP to be closer to linux default.
2005-06-01* include/machine/stdlib.h: New file.Christopher Faylor1-0/+22
2005-05-29 * include/limits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Always define.Corinna Vinschen1-2/+0
2005-05-26* include/cygwin/version.h: Bump DLL minor number to 18.Christopher Faylor1-1/+1
2005-05-25* include/cygwin/version.h: Bump API minor number to 129.Christopher Faylor1-1/+2
2005-05-23 * include/stdint.h (INTMAX_C, UINTMAX_C): Fix definition.Corinna Vinschen1-2/+2
2005-05-19 * include/cygwin/in.h: Add comment.Corinna Vinschen1-1/+3
2005-05-19 * include/cygwin/in.h: Define IPPROTO_xxx values as macros toCorinna Vinschen1-1/+11
accomodate SUSv3.