Christopher Faylor
9508ebc53d
* cygthread.cc (cygthread::detach): Prioritize waiting for I/O completion over
...
waiting for signal delivery.
2003-05-09 17:56:58 +00:00
Joshua Daniel Franklin
af9315f8a3
* cygwin-ug-net.in.sgml: Remove outdated revision information and authors names
2003-05-09 00:05:02 +00:00
Earnie Boyd
85051ee6c1
* include/_mingw.h: Change version to 3.0
...
* Makefile.in: Ditto.
2003-05-07 03:12:17 +00:00
Thomas Pfaff
0bb7254f38
* signal.cc (nanosleep): Do not wait twice for signal arrival.
2003-05-06 19:39:10 +00:00
Earnie Boyd
4c6bc0ed42
Uh hum, just not my day
2003-05-06 16:04:25 +00:00
Earnie Boyd
60e9842b39
* configure: Regenerate
2003-05-06 14:48:34 +00:00
Earnie Boyd
3a1f652308
* configure.in (W32API_INCLUDE): Need the -I switch in the value.
...
* mingwex/configure.in (W32API_INCLUDE): Ditto.
* profile/configure.in (W32API_INCLUDE): Ditto.
2003-05-06 14:46:06 +00:00
Earnie Boyd
98a430bcbe
Oops. Add ending quotes to CFLAGS value.
2003-05-06 13:35:20 +00:00
Earnie Boyd
42fbaad1e8
* configure.in (CFLAGS): Remove -D__USE_CRTIMP=1 due to possibilites
...
of multiply defined symbols if the symbols is defined locally. E.G.:
A local definition of malloc causes this problem.
* configure: Regenerate.
* profile/Makefile.in (W32API_INCLUDE): New variable.
(ALL_CFLAGS): Use W32API_INCLUDE value.
(ALL_CXXFLAGS): Ditto.
(gcrt0.o gcrt1.o gcrt2.o): Use ALL_CFLAGS instead of CFLAGS.
Thanks to Jeff Bonggren <jbon@users.sf.net>.
* profile/configure.in (W32API_INCLUDE): Set default value.
* profile/configure: Regenerate.
* mingwex/Makefile.in (W32API_INCLUDE): New variable.
(ALL_CFLAGS): Use W32API-INCLUDE value.
(ALL_CXXFLAGS): Ditto.
* mingwex/configure.in (W32API_INCLUDE): Set default value.
* mingwex/configure: Regenerate.
2003-05-06 13:26:44 +00:00
Earnie Boyd
fe2f86961e
* Makefile.in (W32API_INCLUDE): New variable.
...
(ALL_CFLAGS): Include W32API_INCLUDE value.
(ALL_CXXFLAGS): Ditto.
* configure.in (CFLAGS): Add -D__USE_CRTIMP=1 to default values.
(W32API_INCLUDE): Set default value.
* configure: Regenerate.
2003-05-05 16:04:11 +00:00
Danny Smith
2937200d0e
* include/commctrl.h (STATUSCLASSNAME, TOOLBARCLASSNAME,
...
TOOLTIPS_CLASS, TRACKBAR_CLASS, UPDOWN_CLASS, PROGRESS_CLASS,
HOTKEY_CLASS): Remove dupicate defines for UNICODE case.
2003-05-05 09:16:35 +00:00
Corinna Vinschen
a6d745f53c
* include/cygwin/types.h: Fix erroneous definition of ino_t from
...
2003-04-28.
2003-05-03 18:14:29 +00:00
Corinna Vinschen
40d3c80413
* syscalls.cc (chown_worker): Allow chown'ing of socket files.
2003-05-03 16:03:19 +00:00
Danny Smith
1a2060aa43
2003-05-02 Steven Edwards <Steven_Ed4153@yahoo.com>
...
* include/richedit.h (EM_FINDTEXTEXW, EM_FINDTEXTW,
EM_GETAUTOURLDETECT, EM_GETBIDIOPTIONS, EM_GETEDITSTYLE,
EM_GETIMECOLOR, EM_GETIMEOPTIONS, EM_GETPUNCTUATION,
EM_GETWORDWRAPMODE, EM_RECONVERSION, EM_SETBIDIOPTIONS,
EM_SETEDITSTYLE, EM_SETIMECOLOR, EM_SETIMEOPTIONS,
EM_SETPALETTE, EM_SETPUNCTUATION, EM_SETTEXTEX,
EM_SETWORDWRAPMODE, RICHEDIT_CLASS10A): Add defines.
2003-05-02 00:46:57 +00:00
Danny Smith
b349465ef3
2003-05-02 Francois Ferrand <typz@sourceforge.users.net>
...
* include/commctrl.h (TBM_*): Add missing trackbar defines.
2003-05-02 00:16:03 +00:00
Danny Smith
41e7de4863
* include/cplext.h (CPLPAGE_MOUSE_WHEEL,
...
CPLPAGE_DISPLAY_BACKGROUND): Add defines.
2003-05-02 00:11:49 +00:00
Thomas Pfaff
2238537c36
* Makefile.in: Revert patch from 2003-04-17.
2003-04-30 22:18:24 +00:00
Danny Smith
14dbd34e9e
* include/wingdi.h (DC_PEN, DC_BRUSH): Add defines.
...
(SetDCPenColor, SetDCBrushColor): Add prototypes.
* lib/gdi32.def (SetDCPenColor, SetDCBrushColor): Add stubs.
2003-04-30 09:28:15 +00:00
Christopher Faylor
6ef342e460
* profil.h (PROFADDR): Prevent overflow when text segments are larger than
...
256k.
* profil.c (profthr_func): Raise thread priority for more accurate sampling.
* path.cc (hash_path_name): Use ino_t as type.
2003-04-28 20:10:54 +00:00
Christopher Faylor
878251d460
really check in correct fix.
2003-04-27 03:14:02 +00:00
Christopher Faylor
7d6d38aaec
* errno.cc (_sys_nerr): Fix compile error erroneously checked in on 2003-04-23.
2003-04-27 03:09:17 +00:00
Joshua Daniel Franklin
45bfd8ed74
* mkpasswd.c (usage) Remove extra newline from description output.
2003-04-26 22:33:00 +00:00
Danny Smith
98dc5aa07f
2003-04-26 Bang Jun-Young <junyoung@netbsd.org>
...
* include/winioctl.h (DEVICE_TYPE_FROM_CTL_CODE): Add macro.
2003-04-26 22:00:16 +00:00
Joshua Daniel Franklin
aa275fe010
* cygcheck.cc (usage) Add description output.
2003-04-26 21:52:03 +00:00
Joshua Daniel Franklin
3c7197b104
* gcc.sgml: Remove outdated "WinMainCRTStartup" references. Add a hellogui.c example
2003-04-26 14:10:59 +00:00
Danny Smith
a5035abfac
* include/oaidl.h (ITypeMarshal): Add interface.
2003-04-26 08:48:03 +00:00
Danny Smith
d9d35a454b
2003-04-26 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/winioctl.h: Clean up formatting.
(RETRIEVAL_POINTERS_BUFFER): Add fields to Extents[1] struct.
(CREATE_DISK): Add _ANONYMOUS_UNION macro.
(DISK_CACHE_INFORMATION): Likewise.
(DISK_DETECTION_INFO): Likewise.
(DISK_PARTITION_INFO): Likewise.
(PARTITION_INFORMATION_EX): Likewise.
(DRIVE_LAYOUT_INFORMATION_EX): Likewise.
2003-04-26 Casper S. Hornstrup <chorns@users.sourceforge.net>
* include/winbase.h (DeleteVolumeMountPoint[AW],
FindFirstVolumeMountPoint[AW], FindNextVolumeMountPoint[AW],
FindVolumeMountPointClose, GetVolumeNameForVolumeMountPoint[AW],
GetVolumePathName[AW], GetVolumePathNamesForVolumeName[AW],
SetVolumeMountPoint[AW]): Add prototypes.
* include/winioctl.h (IOCTL_DISK_GET_PARTITION_INFO_EX,
IOCTL_DISK_SET_PARTITION_INFO_EX,
IOCTL_DISK_GET_DRIVE_LAYOUT_EX,
IOCTL_DISK_SET_DRIVE_LAYOUT_EX, IOCTL_DISK_CREATE_DISK,
IOCTL_DISK_GET_LENGTH_INFO, IOCTL_DISK_PERFORMANCE_OFF,
IOCTL_DISK_GET_DRIVE_GEOMETRY_EX, IOCTL_DISK_GROW_PARTITION,
IOCTL_DISK_GET_CACHE_INFORMATION,
IOCTL_DISK_SET_CACHE_INFORMATION,
IOCTL_DISK_DELETE_DRIVE_LAYOUT, IOCTL_DISK_UPDATE_PROPERTIES,
FSCTL_GET_VOLUME_BITMAP, FSCTL_GET_RETRIEVAL_POINTERS,
FSCTL_MOVE_FILE): Define.
(CREATE_DISK_GPT, CREATE_DISK_MBR, CREATE_DISK,
DISK_CACHE_INFORMATION,
DETECTION_TYPE, DISK_INT13_INFO, DISK_EX_INT13_INFO,
DISK_DETECTION_INFO, DISK_GEOMETRY_EX, DISK_GROW_PARTITION,
DISK_PARTITION_INFO, DISKQUOTA_USER_INFORMATION,
GET_LENGTH_INFORMATION, DISK_EXTENT, VOLUME_DISK_EXTENTS,
DRIVE_LAYOUT_INFORMATION_GPT, DRIVE_LAYOUT_INFORMATION_MBR,
PARTITION_INFORMATION_MBR, PARTITION_INFORMATION_GPT,
PARTITION_INFORMATION_EX, DRIVE_LAYOUT_INFORMATION_EX,
MOVE_FILE_DATA,
RETRIEVAL_POINTERS_BUFFER, STARTING_LCN_INPUT_BUFFER,
STARTING_VCN_INPUT_BUFFER, VOLUME_BITMAP_BUFFER): Add structs
(PARTITION_STYLE, DISK_CACHE_RETENTION_PRIORITY): Add enums.
(MEDIA_TYPE): Add F3_120M_512, F3_640_512, F5_640_512,
F5_720_512,
F3_1Pt2_512, F3_1Pt23_1024, F5_1Pt23_1024, F3_128Mb_512,
F3_230Mb_512,
F8_256_128, F3_200Mb_512, F3_240M_512, and F3_32M_512.
* lib/kernel32.def (GetVolumePathNamesForVolumeName[AW]): Add
stubs.
2003-04-26 08:31:29 +00:00
Corinna Vinschen
f615d74b72
* include/netinet/ip.h: Include netinet/in_systm.h and netinet/in.h
...
to allow standalone usage (autoconf).
2003-04-25 08:32:30 +00:00
Christopher Faylor
5d9a7c875a
* fork.cc: Change SLOW_PID_REUSE to NO_SLOW_PID_REUSE and invert ifdef sense
...
throughout.
2003-04-24 01:57:07 +00:00
Christopher Faylor
5f92bef8a8
fix typo
2003-04-23 01:54:17 +00:00
Christopher Faylor
0eaf24fead
* select.cc (fhandler_pipe::ready_for_read): Assure that get_guard is called
...
for successful non-blocking pipe reads.
2003-04-23 01:27:51 +00:00
Corinna Vinschen
e8a57b4fc7
* include/inttypes.h: New file.
...
* include/stdint.h: New file.
* include/cygwin/in.h: Include stdint.h instead of sys/types.h.
* include/cygwin/types.h: Include stdint.h. Remove typedefs for
intN_t and uintN_t since these are defined in stdint.h now.
2003-04-22 14:55:01 +00:00
Christopher Faylor
650dc784e5
Clarify number bump
2003-04-21 04:33:00 +00:00
Christopher Faylor
99b1a40dc1
* include/cygwin/version.h: Bump DLL major number to 5. Change DLL minor
...
number to 0. Bump API minor number.
2003-04-21 04:31:06 +00:00
Corinna Vinschen
beb5408583
* autoload.cc (CreateWindowStationA): Add.
...
(SetProcessWindowStation): Add.
2003-04-20 08:56:42 +00:00
Christopher Faylor
6b3bdf38e0
* wincap.h (wincaps:pty_needs_alloc_console): New element.
...
(wincapc:pty_needs_alloc_console): New function.
* wincap.cc: Add pty_needs_alloc_console throughout.
* fhandler_tty.cc (fhandler_tty_slave::open): Open an "invisible" console on
first pty allocation.
2003-04-20 01:36:15 +00:00
Christopher Faylor
afa18d8a69
* fhandler_tty.cc (fhandler_tty_slave::open): Allocate a console whenever a pty
...
is allocated.
2003-04-19 02:04:55 +00:00
Christopher Faylor
4e0d877875
* Makefile.in: Use ${nostdlib} variable.
...
* fhandler_proc.cc (format_proc_cpuinfo): Change /proc/cpuinfo "vendor id"
string to "vendor_id" to conform with Linux systems.
2003-04-19 01:03:16 +00:00
Christopher Faylor
b128dd21af
* Makefile.in: Reorganize to try to allow lack of mingw/w32api to work.
2003-04-19 01:02:51 +00:00
Christopher Faylor
4e837e7368
* syscalls.cc (setsid): Don't call FreeConsole if ctty is already < 0.
2003-04-18 00:25:41 +00:00
Thomas Pfaff
f3c1c54051
* Makefile.in: Add finline-functions optimization to CXXFLAGS.
...
* autoload.cc (LoadDLLprime): Rename std_dll_init to
_std_dll_init.
(std_dll_init): Remove name mangling prototype. Add attributes
used and noinline.
(wsock_init): Ditto.
Change wsock_init to _wsock_init in wsock32 and ws2_32
LoadDLLprime.
* exceptions.cc (unused_sig_wrapper): Remove prototype. Add
attributes used and noinline.
* pwdgrp.h ((pwdgrp (passwd *&)): Remove inline code.
(pwdgrp (__group32 *&)): Ditto.
* grp.cc (pwdgrp (passwd *&)): Outline constructor.
(pwdgrp (__group32 *&)): Ditto.
2003-04-17 20:05:15 +00:00
Thomas Pfaff
a4cea44072
* thread.h (pthread::equal): New static method.
...
* thread.cc: Rename pthread_equal to pthread::equal throughout.
(pthread_equal): Use pthread::equal to compare threads ids.
2003-04-17 19:57:01 +00:00
Earnie Boyd
8425a8ce49
* include/wingdi.h (DM_SPECVERSION): Define.
...
Thanks to Sinitsyn Valentime <valentine.sinitsyn@usu.ru>
* include/rpcdce.h (UuidCreateSequential): Properly guard with
appropriate _WIN32_WINNT values.
2003-04-16 12:19:57 +00:00
Christopher Faylor
c448f78fd5
* termios.cc (setspeed): New function.
...
(cfsetospeed): Use setspeed to set speed.
(cfsetispeed): Use setspeed to set speed.
* autoload.cc: Add load statement for UuidCreate, and UuidCreateSequential.
* cpuid.h: New file.
* cygwin.din: Export gethostid.
* fhandler_proc.cc (cpuid): Move to cpuid.h.
(can_set_flag): Move to cpuid.h.
* syscalls.cc (gethostid): New function.
* version.h: Bump DLL minor version number to 83.
2003-04-16 03:03:45 +00:00
Christopher Faylor
9eed5df639
* rpcdce.h: Add declaration for UuidCreateSequential.
...
* rpcrt4.def: Add entry for UuidCreateSequential.
2003-04-16 02:57:33 +00:00
Thomas Pfaff
ffb576fbf2
Fix a race in pthread_rwlock caused by simultanoues unlock and cancelation.
...
* thread.h (pthread_rwlock::release): New method.
* thread.cc (pthread_rwlock::unlock): Use release to signal
waiting threads.
(pthread_rwlock::rdlock_cleanup): Signal waiting threads after a
cancelation.
(pthread_rwlock::wrlock_cleanup): Ditto.
2003-04-15 20:14:12 +00:00
Danny Smith
b88a1e6f13
2003-04-14 Phil Krylov <likewolf@users.sourceforge.net>
...
* include/winuser.h (VK_*): Add missing defines.
2003-04-14 Vincent B�ron <papineau@users.sourceforge.net>
* include/commctrl.h (NMUPDOWN, LPNMUPDOWN): Use currently
documented typedefs for struct _NM_UPDOWN.
Add defines for backward comapatibility.
* include/commdlg.h (OFN_ENABLESIZING): Add define.
* include/wininet.h (IRF_*): Add issing defines.
2003-04-14 Bang Jun-Young <junyoung@netbsd.org>
* lib/ntdll.def (Csr*, Dbg*, Ki*, Ldr*, Rtl*): Add W2K exports.
2003-04-14 05:26:34 +00:00
Christopher Faylor
b3acb772c0
* mkvers.sh: Prefix day with 0 in date only when day < 10.
2003-04-14 02:09:57 +00:00
Christopher Faylor
770ff5bcb4
* Makefile.common (w32api_lib): Fix w32api detection.
2003-04-11 21:48:39 +00:00
Earnie Boyd
000cfc2eb2
* configure.in (LIBM_A): Define for cygwin target.
...
* configure (LIBM_A): Ditto.
2003-04-11 12:35:51 +00:00
Earnie Boyd
fd959d2b39
* include/sspi.h: Add comment for FreeCredentialsHandle.
2003-04-11 12:27:39 +00:00
Corinna Vinschen
2e23862a8a
* security.cc (get_info_from_sd): New function.
...
(get_nt_attribute): Only call read_sd and get_info_from_sd.
Return void.
(get_file_attribute): Move sd error handling to get_info_from_sd.
and symlink handling to fhandler_disk_file::fstat_helper.
(get_nt_object_attribute): Only call read_sd and get_info_from_sd.
Return void.
(get_object_attribute): Remove symlink handling and simply return -1
when ntsec is off.
* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): For
symlinks set the attribute, call get_file_attribute to get the ids
and return. In the normal case call get_file_attribute with the
addresses of the buffer ids and do not recheck if the file is a socket.
2003-04-11 09:38:07 +00:00
Christopher Faylor
73afb2abb0
* cygthread.cc (cygthread::stub): Initialize stack pointer earlier.
...
(cygthread::simplestub): Initialize stack pointer.
(cygthread::terminate_thread): Account for possibility that stack pointer has
not been set. Issue warnings for unusual conditions.
2003-04-11 02:16:17 +00:00
Joshua Daniel Franklin
518a04c40b
Pierre's update for mkgroup/mkpasswd
2003-04-10 23:27:13 +00:00
David Starks-Browning
ca78fd5f10
Setup updates. More about installing everything, not using setup to mirror.
2003-04-10 20:09:35 +00:00
Corinna Vinschen
2a1e8e117e
* regex/regex.h: Define regoff_t as _off_t.
...
* regex/regex2.h: Ditto.
2003-04-10 19:49:30 +00:00
Corinna Vinschen
ac5ec96137
* cygwin.din: Export wcscoll, wcswidth and wcwidth.
...
* include/cygwin/version.h: Bump API minor number.
2003-04-10 08:22:42 +00:00
Christopher Faylor
e5d6d53590
* cygthread.h: Change 'avail' cygthread element to 'inuse' throughout.
...
* cygthread.cc: Ditto.
(cygthread::stub): Don't initialize already initialized events.
(cygthread::freerange): Don't create thread here.
(cygthread::cygthread): Create thread here. Die if thread not created.
(cygthread::operator new): Simplify. Just grab a thread structure from the
pool. Don't try to start the thread.
(cygthread::terminate_thread): Don't close event handles. Just reuse them.
Call MEM_RELEASE rather than MEM_DECOMMIT (from Joe Buehler).
2003-04-10 05:27:34 +00:00
Pierre Humblet
57efd527df
2003-04-10 Pierre Humblet <pierre.humblet@ieee.org>
...
* mkpasswd.c (current_user): print uid and gid as unsigned.
(enum_users): Ditto. Do not free servername.
(usage): Update to allow several domains and improve -p.
(main): On Win9x limit uids to 1000. Only print specials
when -l is specified. Add a loop to allow several domains
and free servername in the loop.
* mkgroup.c (enum_groups): Do not free servername.
(usage): Update to allow several domains. Change uid to gid.
(main): Only print specials when -l is specified. Add a
loop to allow several domains and free servername in the loop.
2003-04-10 01:14:18 +00:00
David Starks-Browning
c6e74c4c82
add lack of '~' to ash missing features
2003-04-08 22:24:27 +00:00
Christopher Faylor
ca81cd60ce
* fhandler_console.cc (fhandler_console::read) Handle certain key up events, to
...
allow pasting accented characters and typing them using the "alt + numerics"
sequences.
* include/limits.h (IOV_MAX): Set to a number which is small enough to use in
an array.
2003-04-08 21:19:33 +00:00
Thomas Pfaff
e3501c78ca
* winsup.api/pthread/condvar9.c: Fix test.
2003-04-08 18:29:37 +00:00
Danny Smith
29d0fe3f74
* include/time.h (strftime): Remove duplicate declaration.
2003-04-07 01:31:37 +00:00
Danny Smith
3f26a1aeb7
2003-04-07 Marcel Telka <telka@users.sourceforge.net>
...
* include/ddk/winddk.h (KIRQL): Typedef as UCHAR. not ULONG.
2003-04-07 01:06:23 +00:00
Christopher Faylor
9dbe3289ee
* cygthread.h (cygthread::avail): Make LONG for easier use with Interlocked*
...
functions.
* cygthread.cc (cygthread::init): Eliminate unneeded muto.
(cygthread::operator new): Don't lock. Instead change use of avail variable
into tri-state: available (1), not available (-1), uninitialized (0).
(cygthread::terminate_thread): Set avail to uninitialized.
(cygthread::detach): Eliminate local 'avail'. Always set avail to 1 unless
signalled.
* cygthread.cc (cygthread::operator new): Be more defensive when messing with
2003-04-04 18:52:11 +00:00
Christopher Faylor
8aed2a11a8
add comments
2003-04-04 06:03:52 +00:00
Christopher Faylor
b410f1680f
* cygthread.cc (operator new): Be more defensive when messing with threads that
...
are marked "unavailable".
2003-04-04 05:58:06 +00:00
Christopher Faylor
a61bf8c369
* fhandler_console.cc (CONVERT_LIMIT): Use a size for the 21st century.
2003-04-03 14:05:30 +00:00
Corinna Vinschen
d5292d66a4
* external.cc (check_ntsec): Return general ntsec state on NULL
...
filename. Check wincap.is_security() additionally.
2003-04-03 08:18:43 +00:00
Corinna Vinschen
5a4a19b3f3
ChangeLog already commited yesterday:
...
* external.cc (check_ntsec): New function.
(cygwin_internal): Add CW_CHECK_NTSEC handling to call check_ntsec()
from applications.
* include/cygwin/version.h: Bump API minor number.
* include/sys/cygwin.h (cygwin_getinfo_types): Add CW_CHECK_NTSEC.
2003-04-03 08:04:41 +00:00
Christopher Faylor
1ce82d241f
fix usage
2003-04-03 04:07:57 +00:00
Christopher Faylor
5a87c6163b
* Makefile.in (EXTRA_OFILES): Remove debugging object.
2003-04-03 01:23:37 +00:00
Christopher Faylor
d99c61760e
* external.cc (check_ntsec): New function.
...
(cygwin_internal): Add CW_CHECK_NTSEC handling to call check_ntsec() from
applications.
* include/cygwin/version.h: Bump API minor number.
* include/sys/cygwin.h (cygwin_getinfo_types): Add CW_CHECK_NTSEC.
* cygthread.cc (cygthread::new): Add more defensive debugging.
2003-04-02 23:01:11 +00:00
Corinna Vinschen
2d388e433f
* fhandler.cc (fhandler_base::fstat): Set the uid and gid fields
...
from the current effective ids.
* fhandler_socket.cc (fhandler_socket::fstat): Keep the uid and gid set
by fhandler_base::fstat.
* security.cc (get_nt_attribute): Do not test wincap.has_security ().
(get_nt_object_attribute): Ditto.
(get_file_attribute): Add test for wincap.has_security ().
(get_object_attribute): Ditto.
2003-04-01 17:17:46 +00:00
Corinna Vinschen
1727fba007
* dir.cc: Change __off32_t to _off_t and __off64_t to _off64_t
...
throughout.
* fhandler.cc: Ditto.
* fhandler.h: Ditto.
* fhandler_clipboard.cc: Ditto.
* fhandler_disk_file.cc: Ditto.
* fhandler_dsp.cc: Ditto.
* fhandler_floppy.cc: Ditto.
* fhandler_mem.cc: Ditto.
* fhandler_proc.cc: Ditto.
* fhandler_process.cc: Ditto.
* fhandler_random.cc: Ditto.
* fhandler_registry.cc: Ditto.
* fhandler_tape.cc: Ditto.
* fhandler_termios.cc: Ditto.
* fhandler_virtual.cc: Ditto.
* fhandler_zero.cc: Ditto.
* mmap.cc: Ditto.
* pipe.cc: Ditto.
* syscalls.cc: Ditto.
* winsup.h: Ditto.
* include/cygwin/stat.h: Ditto.
* include/cygwin/types.h: Ditto. Remove definition of __off32_t
and __off64_t.
2003-04-01 16:11:41 +00:00
Christopher Faylor
333879e77b
* exceptions.cc (setup_handler): Make sure winapi lock is released when exiting
...
loop.
2003-03-31 21:27:06 +00:00
Danny Smith
ce5435df0b
* include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP.
2003-03-31 21:11:13 +00:00
Danny Smith
ebb73170e8
2003-03-30 Hans E. Molin <kvasi@users.sourceforge.net>
...
* include/olectl.h (OleLoadPicturePath): Correct prototype.
2003-03-30 21:19:04 +00:00
Christopher Faylor
a2105d9387
* include/cygwin/fs.h: Remove unneeded include.
...
* include/cygwin/in.h: Include sys/types.h rather than cygwin/types.h.
2003-03-30 17:28:52 +00:00
Danny Smith
c453f40410
2003-03-30 Danny Smith <dannysmith@users.sourceforge.net>
...
* lib/uuid.c (IID_IHTML*): Move definitions to...
* lib/mshtml-uuid.c: New file.
* lib/Makefile.in: Add mshtml-uuid.o to libuuid.a
2003-03-30 Michael Sazonov <traip@comset.net>
* lib/uuid.c (IID_IHTML*): Add new GUID definitions.
* include/mshtml.h (IHTMLElementCollection, IHTMLLinkElement,
IHTMLImgElement): Add intetface definitions.
2003-03-29 21:31:15 +00:00
Corinna Vinschen
856a9750ba
* syscalls.cc (login): Fix comment.
...
(logout): Ditto.
2003-03-29 13:15:55 +00:00
Corinna Vinschen
8304de2e34
* syscalls.cc: Slightly cleanup all utmp functions.
...
(login): Use mutex to secure against concurrent access to wtmp file.
(logout): Rewrite using POSIX calls.
(utmp_fd): Initialized to -1 now. Any value < 0 is treated as closed
in subsequent functions.
(utmp_readonly): New variable, indicating utmp file open for reading
only.
(internal_setutent): New function implementing setutent().
(setutent): Call internal_setutent now.
(endutent): Reset utmp_readonly.
(getutent): Return immediately if utmp file can't be opened.
(getutid): Ditto.
(getutline): Ditto.
(pututline): Ditto. Use mutex to secure against concurrent access to
utmp file.
2003-03-29 12:44:01 +00:00
Danny Smith
d9c55a44d6
* include/commctrl.h (ANIMATE_CLASS,HOTKEY_CLASS,PROGRESS_CLASS,
...
STATUSCLASSNAME,TOOLBARCLASSNAME,TOOLTIPS_CLASS,TRACKBAR_CLASS,
UPDOWN_CLASS,WC_COMBOBOXEX,WC_HEADER,WC_IPADDRESS,WC_LISTVIEW,
WC_TABCONTROL,WC_TREEVIEW): Move UNICODE mappings out of
RC_INVOKED guard.
(WC_PAGESCROLLER,WC_NATIVEFONTCTL,WC_BUTTON,WC_STATIC,WC_EDIT,
WC_LISTBOX,WC_COMBOBOX,WC_SCROLLBAR): Add defines.
2003-03-29 05:06:53 +00:00
Christopher Faylor
46c8214c77
* Makefile.in: Remove EXE_LDFLAGS. Fix fhandler_CFLAGS typo. Recognize .s
...
suffix.
* configure.in: Remove EXE_LDFLAGS.
* configure: Regenerate.
2003-03-29 04:20:45 +00:00
Christopher Faylor
b7f68d3e9d
* Makefile.common (ALL_CXXFLAGS): Make normal '=' type variable so that
...
CXXFLAGS is properly interpreted.
2003-03-29 04:15:52 +00:00
Danny Smith
247808c13b
2003-03-28 Bang Jun-Young <junyoung@netbsd.org>
...
* include/winnt.h (WAITORTIMERCALLBACKFUNC): Add typedef.
2003-03-29 01:33:41 +00:00
Christopher Faylor
a7ab35c1bb
* include/sys/cygwin.h: Declare cygwin_internal as unsigned long.
...
* external.cc (cygwin_internal): Define as unsigned long.
* include/sys/cygwin.h: Move cygwin_internal outside of WINVER conditional.
2003-03-28 14:21:40 +00:00
Thomas Pfaff
eff6c00e19
* thread.cc: Change 1==foo equations to foo==1 throughout.
2003-03-27 19:57:06 +00:00
Thomas Pfaff
15648790f4
* thread.h: Change class names, methods, members and local vars
...
according to the GNU coding style.
* thread.cc: Ditto.
* dcrt0.cc (dll_crt0_1): Rename pthread::initMainThread call to
pthread::init_mainthread.
* pthread.cc (pthead_getsequence_np): Rename pthread::isGoodObject
call to pthread::is_good_object.
2003-03-27 19:52:20 +00:00
Thomas Pfaff
c65b504859
* winsup.api/pthread/rwlock1.c: Remove pthreads-win32 header.
...
* winsup.api/pthread/rwlock2.c: Ditto.
* winsup.api/pthread/rwlock3.c: Ditto.
* winsup.api/pthread/rwlock4.c: Ditto.
* winsup.api/pthread/rwlock5.c: Ditto.
* winsup.api/pthread/rwlock6.c: Ditto.
2003-03-27 19:46:35 +00:00
Thomas Pfaff
9b15aa7559
* winsup.api/pthread/condvar7.c (mythread): Cast
...
pthread_mutex_unlock argument of pthread_cleanup_push
to void *, preventing a compiler warning / testsuite failure.
* winsup.api/pthread/condvar9.c (mythread): Likewise.
* winsup.api/pthread/rwlock7.c (main): Use ftime instead of
_ftime.
2003-03-27 19:44:41 +00:00
Christopher Faylor
921587de50
note mount binary default.
2003-03-27 18:46:16 +00:00
Corinna Vinschen
98b36ec8ed
* autoload.cc: added RegGetKeySecurity()
...
* security.cc (get_nt_object_attribute): use RegGetKeySecurity() for
performance.
2003-03-27 09:40:25 +00:00
Danny Smith
2f4be7367e
* include/secext.h (GetComputerObjectName[AW],GetUserNameEx[AW],
...
TranslateName[AW]): Add prototypes.
* lib/sec32.def (GetComputerObjectName[AW],GetUserNameEx[AW],
TranslateName[AW]): Add stubs.
2003-03-27 08:10:46 +00:00
Joshua Daniel Franklin
6c7303cd5f
* setup-net.sgml: Make suggested additions to setup.exe documentation
2003-03-27 04:56:52 +00:00
Danny Smith
498268ef01
2003-03-27 Vladimir Michl <michlv@users.sourceforge.net>
...
* include/ddk/ndis.h (NdisAllocateSpinLock,NdisFreeSpinLock,
NdisAcquireSpinLock,NdisReleaseSpinLock,NdisDprAcquireSpinLock,
NdisDprReleaseSpinLock): Change macro argument from SpinLock to
_SpinLock.
2003-03-27 02:14:14 +00:00
Earnie Boyd
fc7c546387
* include/w32api.h: Increment version to 2.4.
...
* Makefile.in: Ditto.
2003-03-26 23:50:25 +00:00
Danny Smith
200738932f
Move some ddk defines to winnt.h as per MSDN documentation
...
* include/ddk/batclass.h (BATTERY_REPORTING_SCALE)
Move structure from here...
* include/winnt.h (BATTERY_REPORTING_SCALE): To here.
* include/ddk/ntapi.h (JOBOBJECT_*):
Remove structures and enums definitions.
(JOB_OBJECT*): Move defines from here...
* include/winnt.h (JOB_OBJECT* ): To here.
* include/ddk/ntpoapi.h (LATENCY_TIME, POWER_ACTION_POLICY,
SYSTEM_POWER_LEVEL, SYSTEM_POWER_POLICY,
PROCESSOR_POWER_POLICY_INFO, PROCESSOR_POWER_POLICY,
ADMINISTRATOR_POWER_POLICY, SYSTEM_POWER_INFORMATION,
PROCESSOR_POWER_INFORMATION, SYSTEM_BATTERY_STATE,
SYSTEM_POWER_CAPABILITIES): Move enums, structures
and associated defines from here ...
* include/winnt.h: (LATENCY_TIME, POWER_ACTION_POLICY,
SYSTEM_POWER_LEVEL, SYSTEM_POWER_POLICY,
PROCESSOR_POWER_POLICY_INFO, PROCESSOR_POWER_POLICY,
ADMINISTRATOR_POWER_POLICY, SYSTEM_POWER_INFORMATION,
PROCESSOR_POWER_INFORMATION, SYSTEM_BATTERY_STATE,
SYSTEM_POWER_CAPABILITIES):To here.
* include/ddk/winddk.h (DEVICE_POWER_STATE,
SYSTEM_POWER_STATE, POWER_ACTION): Move enums
from here...
* include/winnt.h (DEVICE_POWER_STATE,
SYSTEM_POWER_STATE, POWER_ACTION): To here.
2003-03-26 22:28:01 +00:00
Christopher Faylor
85738bf7e3
Joe Buehler <jhpb@draco.hekimian.com>
...
* fork.cc (fork_parent): Don't copy signals from parent to child here.
* sigproc.cc (proc_subproc): Copy signals from parent to child pinfo here.
2003-03-26 04:18:01 +00:00
Christopher Faylor
ce7a361072
* cygcheck.cc (dump_sysinfo): Ensure that CYGWIN environment variable is
...
correctly set.
2003-03-25 01:20:04 +00:00
Joshua Daniel Franklin
8fdbcd1279
* setup-net.sgml: Improve setup.exe documentation
2003-03-23 19:43:33 +00:00
Joshua Daniel Franklin
0fd535061d
* setup-net.sgml: Improve setup.exe documentation
2003-03-23 19:35:52 +00:00
Joshua Daniel Franklin
489d990b9d
* setup-net.sgml: Improve setup.exe documentation
2003-03-23 16:23:52 +00:00
Thomas Pfaff
b2ee9a5565
*** empty log message ***
2003-03-23 10:56:19 +00:00
Thomas Pfaff
9306ba2ee4
* thread.h (class List): Move inline code inside class
...
declaration.
(List::forEach): Change callback parameter to template class
member functionpointer.
(pthread_keys::fixup_before_fork): Change to inline. Use
List::forEach to fixup keys.
(pthread_keys::fixup_after_fork): Ditto.
(pthread_keys::runAllDestructors): Ditto.
(pthread_key::saveAKey): Remove.
(pthread_key::restoreAKey): Ditto.
(pthread_key::destroyAKey): Ditto.
(pthread_key::run_destructor): Rename to runDestructor.
(pthread_mutex::fixup_after_fork): Change to inline. Use
List::forEach to fixup mutexes after a fork.
(pthread_mutex::FixupAfterFork): New method.
(pthread_mutex::mutexes): New member.
(pthread_cond::fixup_after_fork): Change to inline. Use
List::forEach to fixup conds after a fork.
(pthread_cond::FixupAfterFork): New method.
(pthread_cond::conds): New member.
(pthread_rwlock::fixup_after_fork): Change to inline. Use
List::forEach to fixup rwlocks after a fork.
(pthread_rwlock::FixupAfterFork): New method.
(pthread_rwlock::rwlocks): New member.
(semaphore::fixup_after_fork): Change to inline. Use
List::forEach to fixup mutexes after a fork.
(semaphore::FixupAfterFork): New method.
(semaphore::semaphores): New member.
(MTinterface::mutexs): Remove.
(MTinterface::conds): Ditto.
(MTinterface::rwlocks): Ditto.
(MTinterface::semaphores): Ditto.
(pthread_equal): Add extern "C".
(pthread_mutex_lock): Ditto.
* thread.cc (MTinterface::fixup_after_fork): Change
fixup_after_fork calls for pthread objects.
(semaphore::conds): Instantiate.
(pthread_cond::pthread_cond): Use List::Insert rather than
custom list code.
(pthread_cond::~pthread_cond): Use List::Remove rather than
custom list code.
(pthread_cond::fixup_after_fork): Rename to FixupAfterFork.
(pthread_rwlock::rwlocks): Instantiate.
(pthread_rwlock::pthread_crwlock): Use List::Insert rather than
custom list code.
(pthread_rwlock::~pthread_rwlock): Use List::Remove rather than
custom list code.
(pthread_rwlock::fixup_after_fork): Rename to FixupAfterFork.
(pthread_key::saveAKey): Remove.
(pthread_key::fixup_before_fork): Ditto.
(pthread_key::restoreAKey): Ditto.
(pthread_key::fixup_after_fork): Ditto.
(pthread_key::destroyAKey): Ditto.
(pthread_key::runAllDestructors): Ditto.
(pthread_key::run_destructor): Rename to runDestructor.
(pthread_mutex::mutexes): Instantiate.
(pthread_mutex::pthread_mutex): Use List::Insert rather than
custom list code.
(pthread_mutex::~pthread_mutex): Use List::Remove rather than
custom list code.
(pthread_mutex::fixup_after_fork): Rename to FixupAfterFork.
(semaphore::conds): Instantiate.
(semaphore::semaphore): Use List::Insert rather than custom list
code.
(semaphores::~semaphore): Use List::Remove rather than custom
list code.
(semaphore::fixup_after_fork): Rename to FixupAfterFork.
2003-03-23 10:52:02 +00:00
Joshua Daniel Franklin
522fcf1615
* setup-net.sgml: Document setup.exe
2003-03-22 21:16:25 +00:00
Joshua Daniel Franklin
7d37d0459e
* setup-net.sgml: Document setup.exe
2003-03-22 20:03:41 +00:00
Christopher Faylor
ff3ef36d88
* pipe.cc (fhandler_pipe::dup): Don't dup input_handle if it doesn't exist.
2003-03-22 18:30:58 +00:00
Christopher Faylor
ca04f61fc7
* syscalls.cc (unlink): Be more defensive when SetFileAttributes is called.
...
Fix typo in debugging output.
2003-03-22 17:48:40 +00:00
Christopher Faylor
89e7a1ced9
* fork.cc: Conditionalize use of slow_pid_reuse throughout. It's not necessary
...
for newer versions of bash.
2003-03-22 01:45:18 +00:00
Corinna Vinschen
fa85038b5f
* fhandler_socket.cc (fhandler_socket::sendto): Restrict EPIPE and
...
SIGPIPE handling to connection oriented sockets. Add comment.
2003-03-20 08:53:28 +00:00
Christopher Faylor
4da34970de
* sigproc.h (signal_fixup_after_exec): Eliminate argument in declaration.
...
* exceptions.cc (signal_fixup_after_exec): Eliminate argument in definition.
Don't reset signal handlers after spawm. Just treat like fork/exec.
* dcrt0.cc (dll_crt0_1): Don't pass PROC_SPAWN argument to
signal_fixup_after_exec.
* syscalls.cc (unlink): Don't change attributes of file if not readonly/system.
Ditto for resetting of arguments.
2003-03-20 01:34:53 +00:00
Danny Smith
8e3121c535
*lib/ndis.def (NdisAllocateMemory): Correct stdcall suffix.
...
Thanks to: Vladimir Michl <michlv@users.sourceforge.net>
(NdisUpdateSharedMemory): Likewise.
(NdisMFreeSharedMemory: Likewise.
(NdisMMapIoSpace: Likewise.
2003-03-20 00:44:06 +00:00
Corinna Vinschen
036ac6b3a2
* glob.c: Eliminate __INSIDE_CYGWIN__ preprocessor conditionals
...
throughout.
2003-03-19 21:38:25 +00:00
Corinna Vinschen
b1897d27a8
* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Fix
...
wrong usage of S_IFDIR.
* security.cc (get_attribute_from_acl): Ditto.
(get_file_attribute): Fix wrong usage of S_IFLNK.
(get_object_attribute): Ditto.
(alloc_sd): Fix wrong usage of S_IFDIR.
* syscalls.cc (chmod): Allow chmod'ing of socket files.
2003-03-19 21:34:38 +00:00
Corinna Vinschen
c16d09466b
* include/cygwin/version.h (CYGWIN_VERSION_CHECK_FOR_USING_BIG_TYPES):
...
Define.
* glob.c (g_lstat): Use CYGWIN_VERSION_CHECK_FOR_USING_BIG_TYPES
instead of numerical constants.
(g_stat): Ditto.
2003-03-19 20:13:57 +00:00
Thomas Pfaff
6a80a133be
* pthread.cc (pthread_attr_init): Remove
...
(pthread_attr_destroy): Ditto.
(pthread_attr_setdetachstate): Ditto.
(pthread_attr_getdetachstate): Ditto.
(pthread_attr_setstacksize): Ditto.
(pthread_attr_getstacksize): Ditto.
(pthread_attr_setinheritsched): Ditto.
(pthread_attr_getinheritsched): Ditto.
(pthread_attr_setschedparam): Ditto.
(pthread_attr_getschedparam): Ditto.
(pthread_attr_setschedpolicy): Ditto.
(pthread_attr_getschedpolicy): Ditto.
(pthread_attr_setscope): Ditto.
(pthread_attr_getscope): Ditto.
(pthread_attr_setstackaddr): Ditto.
(pthread_attr_getstackaddr): Ditto.
(pthread_key_create): Ditto.
(pthread_key_delete): Ditto.
(pthread_setspecific): Ditto.
(pthread_getspecific): Ditto.
(pthread_kill): Ditto.
(pthread_sigmask): Ditto.
(pthread_equal): Ditto.
(pthread_mutex_lock): Ditto.
(pthread_mutex_trylock): Ditto.
(pthread_mutex_unlock): Ditto.
(pthread_mutex_destroy): Ditto.
(pthread_mutex_setprioceiling): Ditto.
(pthread_mutex_getprioceiling): Ditto.
(pthread_mutexattr_destroy): Ditto.
(pthread_mutexattr_getprioceiling): Ditto.
(pthread_mutexattr_getprotocol): Ditto.
(pthread_mutexattr_getpshared): Ditto.
(pthread_mutexattr_gettype): Ditto.
(pthread_mutexattr_init): Ditto.
(pthread_mutexattr_setprioceiling): Ditto.
(pthread_mutexattr_setprotocol): Ditto.
(pthread_mutexattr_setpshared): Ditto.
(pthread_mutexattr_settype): Ditto.
(pthread_cond_destroy): Ditto.
(pthread_cond_signal): Ditto.
(pthread_cond_broadcast): Ditto.
(pthread_condattr_init): Ditto.
(pthread_condattr_destroy): Ditto.
(pthread_condattr_getpshared): Ditto.
(pthread_condattr_setpshared): Ditto.
(pthread_rwlock_destroy): Ditto.
(pthread_rwlock_rdlock): Ditto.
(pthread_rwlock_tryrdlock): Ditto.
(pthread_rwlock_wrlock): Ditto.
(pthread_rwlock_trywrlock): Ditto.
(pthread_rwlock_unlock): Ditto.
(pthread_rwlockattr_init): Ditto.
(pthread_rwlockattr_getpshared): Ditto.
(pthread_rwlockattr_setpshared): Ditto.
(pthread_rwlockattr_destroy): Ditto.
(pthread_getconcurrency): Ditto.
(pthread_setconcurrency): Ditto.
(pthread_getschedparam): Ditto.
(pthread_setschedparam): Ditto.
* thread.h (__pthread_attr_init): Remove prototype.
(__pthread_attr_destroy): Ditto.
(__pthread_attr_setdetachstate): Ditto.
(__pthread_attr_getdetachstate): Ditto.
(__pthread_attr_setstacksize): Ditto.
(__pthread_attr_getstacksize): Ditto.
(__pthread_attr_setinheritsched): Ditto.
(__pthread_attr_getinheritsched): Ditto.
(__pthread_attr_setschedparam): Ditto.
(__pthread_attr_getschedparam): Ditto.
(__pthread_attr_setschedpolicy): Ditto.
(__pthread_attr_getschedpolicy): Ditto.
(__pthread_attr_setscope): Ditto.
(__pthread_attr_getscope): Ditto.
(__pthread_attr_setstackaddr): Ditto.
(__pthread_attr_getstackaddr): Ditto.
(__pthread_key_create): Ditto.
(__pthread_key_delete): Ditto.
(__pthread_setspecific): Ditto.
(__pthread_getspecific): Ditto.
(__pthread_kill): Ditto.
(__pthread_sigmask): Ditto.
(__pthread_equal): Ditto.
(__pthread_mutex_lock): Ditto.
(__pthread_mutex_trylock): Ditto.
(__pthread_mutex_unlock): Ditto.
(__pthread_mutex_destroy): Ditto.
(__pthread_mutex_setprioceiling): Ditto.
(__pthread_mutex_getprioceiling): Ditto.
(__pthread_mutexattr_destroy): Ditto.
(__pthread_mutexattr_getprioceiling): Ditto.
(__pthread_mutexattr_getprotocol): Ditto.
(__pthread_mutexattr_getpshared): Ditto.
(__pthread_mutexattr_gettype): Ditto.
(__pthread_mutexattr_init): Ditto.
(__pthread_mutexattr_setprioceiling): Ditto.
(__pthread_mutexattr_setprotocol): Ditto.
(__pthread_mutexattr_setpshared): Ditto.
(__pthread_mutexattr_settype): Ditto.
(__pthread_cond_destroy): Ditto.
(__pthread_cond_signal): Ditto.
(__pthread_cond_broadcast): Ditto.
(__pthread_condattr_init): Ditto.
(__pthread_condattr_destroy): Ditto.
(__pthread_condattr_getpshared): Ditto.
(__pthread_condattr_setpshared): Ditto.
(__pthread_rwlock_destroy): Ditto.
(__pthread_rwlock_rdlock): Ditto.
(__pthread_rwlock_tryrdlock): Ditto.
(__pthread_rwlock_wrlock): Ditto.
(__pthread_rwlock_trywrlock): Ditto.
(__pthread_rwlock_unlock): Ditto.
(__pthread_rwlockattr_init): Ditto.
(__pthread_rwlockattr_getpshared): Ditto.
(__pthread_rwlockattr_setpshared): Ditto.
(__pthread_rwlockattr_destroy): Ditto.
(__pthread_getconcurrency): Ditto.
(__pthread_setconcurrency): Ditto.
(__pthread_getschedparam): Ditto.
(__pthread_setschedparam): Ditto.
* thread.cc: Rename __pthread_equal to pthread_equal throughout.
Change pthread_self parameter appropriate.
(__pthread_attr_init): Remove __ prefix. Change to extern "C".
(__pthread_attr_destroy): Ditto.
(__pthread_attr_setdetachstate): Ditto.
(__pthread_attr_getdetachstate): Ditto.
(__pthread_attr_setstacksize): Ditto.
(__pthread_attr_getstacksize): Ditto.
(__pthread_attr_setinheritsched): Ditto.
(__pthread_attr_getinheritsched): Ditto.
(__pthread_attr_setschedparam): Ditto.
(__pthread_attr_getschedparam): Ditto.
(__pthread_attr_setschedpolicy): Ditto.
(__pthread_attr_getschedpolicy): Ditto.
(__pthread_attr_setscope): Ditto.
(__pthread_attr_getscope): Ditto.
(__pthread_attr_setstackaddr): Ditto.
(__pthread_attr_getstackaddr): Ditto.
(__pthread_key_create): Ditto.
(__pthread_key_delete): Ditto.
(__pthread_setspecific): Ditto.
(__pthread_getspecific): Ditto.
(__pthread_kill): Ditto.
(__pthread_sigmask): Ditto.
(__pthread_equal): Ditto.
(__pthread_mutex_lock): Ditto.
(__pthread_mutex_trylock): Ditto.
(__pthread_mutex_unlock): Ditto.
(__pthread_mutex_destroy): Ditto.
(__pthread_mutex_setprioceiling): Ditto.
(__pthread_mutex_getprioceiling): Ditto.
(__pthread_mutexattr_destroy): Ditto.
(__pthread_mutexattr_getprioceiling): Ditto.
(__pthread_mutexattr_getprotocol): Ditto.
(__pthread_mutexattr_getpshared): Ditto.
(__pthread_mutexattr_gettype): Ditto.
(__pthread_mutexattr_init): Ditto.
(__pthread_mutexattr_setprioceiling): Ditto.
(__pthread_mutexattr_setprotocol): Ditto.
(__pthread_mutexattr_setpshared): Ditto.
(__pthread_mutexattr_settype): Ditto.
(__pthread_cond_destroy): Ditto.
(__pthread_cond_signal): Ditto.
(__pthread_cond_broadcast): Ditto.
(__pthread_condattr_init): Ditto.
(__pthread_condattr_destroy): Ditto.
(__pthread_condattr_getpshared): Ditto.
(__pthread_condattr_setpshared): Ditto.
(__pthread_rwlock_destroy): Ditto.
(__pthread_rwlock_rdlock): Ditto.
(__pthread_rwlock_tryrdlock): Ditto.
(__pthread_rwlock_wrlock): Ditto.
(__pthread_rwlock_trywrlock): Ditto.
(__pthread_rwlock_unlock): Ditto.
(__pthread_rwlockattr_init): Ditto.
(__pthread_rwlockattr_getpshared): Ditto.
(__pthread_rwlockattr_setpshared): Ditto.
(__pthread_rwlockattr_destroy): Ditto.
(__pthread_getconcurrency): Ditto.
(__pthread_setconcurrency): Ditto.
(__pthread_getschedparam): Ditto.
(__pthread_setschedparam): Ditto.
2003-03-18 20:12:05 +00:00
Thomas Pfaff
4fd9bca85e
* winsup.api/pthread/rwlock1.c: New test.
...
* winsup.api/pthread/rwlock2.c: Ditto.
* winsup.api/pthread/rwlock3.c: Ditto.
* winsup.api/pthread/rwlock4.c: Ditto.
* winsup.api/pthread/rwlock5.c: Ditto.
* winsup.api/pthread/rwlock6.c: Ditto.
* winsup.api/pthread/rwlock7.c: Ditto.
2003-03-18 20:04:24 +00:00
Thomas Pfaff
00d296a3f9
* cygwin.din: Add pthread_rwlock_destroy, pthread_rwlock_init,
...
pthread_rwlock_rdlock, pthread_rwlock_tryrdlock,
pthread_rwlock_wrlock, pthread_rwlock_trywrlock,
pthread_rwlock_unlock, pthread_rwlockattr_init,
pthread_rwlockattr_getpshared, pthread_rwlockattr_setpshared,
and pthread_rwlockattr_destroy.
* include/cygwin/version.h: Bump API minor number.
* include/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Define a
reasonable value.
Add prototypes for pthread_rwlock_destroy, pthread_rwlock_init,
pthread_rwlock_rdlock, pthread_rwlock_tryrdlock,
pthread_rwlock_wrlock, pthread_rwlock_trywrlock,
pthread_rwlock_unlock, pthread_rwlockattr_init,
pthread_rwlockattr_getpshared, pthread_rwlockattr_setpshared,
and pthread_rwlockattr_destroy.
* thread.h (PTHREAD_ONCE_MAGIC): Remove superflous semicolon.
(PTHREAD_RWLOCK_MAGIC): New define.
(PTHREAD_RWLOCKATTR_MAGIC): Ditto.
(pthread_rwlockattr): New class.
(pthread_rwlock): Ditto.
(MTinterface::rwlocks): New member.
(MTinterface::MTinterface): Initialize rwlocks.
Add prototypes for __pthread_rwlock_destroy,
__pthread_rwlock_wrlock, __pthread_rwlock_trywrlock,
__pthread_rwlock_unlock, __pthread_rwlockattr_init,
__pthread_rwlockattr_getpshared, __pthread_rwlockattr_setpshared,
and __pthread_rwlockattr_destroy.
* thread.cc (MTinterface::Init): Initialize rwlock internal mutex.
(MTinterface::fixup_after_fork): Fixup rwlocks after fork.
(pthread_rwlockattr::isGoodObject): Implement.
(pthread_rwlockattr::pthread_rwlockattr): Ditto.
(pthread_rwlockattr::~pthread_rwlockattr): Ditto.
(pthread_rwlock::initMutex): Ditto.
(pthread_rwlock::pthread_rwlock): Ditto.
(pthread_rwlock::~pthread_rwlock): Ditto.
(pthread_rwlock::RdLock): Ditto.
(pthread_rwlock::TryRdLock): Ditto.
(pthread_rwlock::WrLock): Ditto.
(pthread_rwlock::TryWrLock): Ditto.
(pthread_rwlock::UnLock): Ditto.
(pthread_rwlock::addReader): Ditto.
(pthread_rwlock::removeReader): Ditto.
(pthread_rwlock::lookupReader): Ditto.
(pthread_rwlock::RdLockCleanup): Ditto.
(pthread_rwlock::WrLockCleanup): Ditto.
(pthread_rwlock::fixup_after_fork): Ditto.
(pthread_rwlock::isGoodObject): Ditto.
(pthread_rwlock::isGoodInitializer): Ditto.
(pthread_rwlock::isGoodInitializerOrObject): Ditto.
(pthread_rwlock::isGoodInitializerOrBadObject): Ditto.
(__pthread_rwlock_destroy): Ditto.
(pthread_rwlock::init): Ditto.
(__pthread_rwlock_rdlock): Ditto.
(__pthread_rwlock_tryrdlock): Ditto.
(__pthread_rwlock_wrlock): Ditto.
(__pthread_rwlock_trywrlock): Ditto.
2003-03-18 20:01:07 +00:00
Thomas Pfaff
5df1410028
* winsup.api/pthread/condvar7.c: New test.
...
* winsup.api/pthread/condvar9.c: Ditto.
2003-03-18 19:51:58 +00:00
Thomas Pfaff
f592b05df1
* thread.h (pthread_cond::ExitingWait): Remove.
...
(pthread_cond::mutex): Ditto.
(pthread_cond::cond_access): Ditto.
(pthread_cond::win32_obj_id): Ditto.
(pthread_cond::TimedWait): Ditto.
(pthread_cond::BroadCast): Ditto.
(pthread_cond::Signal): Ditto.
(pthread_cond::waiting): Change type to unsigned long.
(pthread_cond::pending): New member.
(pthread_cond::semWait): Ditto.
(pthread_cond::mtxIn): Ditto.
(pthread_cond::mtxOut): Ditto.
(pthread_cond::mtxCond): Ditto.
(pthread_cond::UnBlock): New method.
(pthread_cond::Wait): Ditto.
* thread.cc: Update list of cancellation points.
(pthread_cond::pthread_cond): Rewrite.
(pthread_cond::~pthread_cond): Ditto.
(pthread_cond::TimedWait): Remove.
(pthread_cond::BroadCast): Ditto.
(pthread_cond::Signal): Ditto.
(pthread_cond::UnBlock): Implement.
(pthread_cond::Wait): Ditto.
(pthread_cond::fixup_after_fork): Rewrite.
(pthread_mutex::fixup_after_fork): Remove DETECT_BAD_APP
conditional.
(__pthread_cond_broadcast): Just return 0 if the condition is
not initialized. Call pthread_cond::UnBlock to release blocked
threads.
(__pthread_cond_signal): Ditto.
(__pthread_cond__dowait): Rewrite.
(pthread_cond_timedwait): Add pthread_testcancel call. Fix
waitlength calculation.
(pthread_cond_wait): Add pthread_testcancel call.
2003-03-18 19:49:38 +00:00
Thomas Pfaff
0bad7c2e26
* winsup.api/pthread/mutex1n.c: New test.
...
* winsup.api/pthread/mutex6n.c: Ditto.
* winsup.api/pthread/mutex7n.c: Ditto.
2003-03-18 19:42:43 +00:00
Thomas Pfaff
2ff03dc2e0
* include/pthread.h (PTHREAD_MUTEX_NORMAL): New define.
...
* thread.cc: Remove errno.h include.
(pthread::precreate): Change internal mutex type to normal.
(pthread_mutex::canBeUnlocked): Implement.
(pthread_mutex::pthread_mutex): Initialize lock_counter with 0.
(pthread_mutex::Lock): Rename to _Lock. Add self parameter.
Change lock_counter logic. Update SetOwner call.
(pthread_mutex::TryLock): Rename to _TryLock. Add self parameter.
Change lock_counter logic. Update SetOwner call.
(pthread_mutex::UnLock): Rename to _UnLock. Add self parameter.
Change lock_counter logic.
(pthread_mutex::Destroy): Rename to _Destroy. Update TryLock call.
(pthread_mutex::SetOwner): Move to thread.h as inline.
(pthread_mutex::LockRecursive): Ditto.
(pthread_mutex::fixup_after_fork): Change lock_counter logic.
(__pthread_mutexattr_settype): Add PTHREAD_MUTEX_NORMAL to valid
types check.
* thread.h: Include errno.h and limits.h.
(MUTEX_LOCK_COUNTER_INITIAL): Remove.
(MUTEX_OWNER_ANONYMOUS): New define.
(pthread_mutex::canBeUnlocked): New static method.
(pthread_mutex::lock_counter): Change type to unsigned long.
(pthread_mutex::GetPthreadSelf): New method.
(pthread_mutex::Lock): Call _Lock with pthread_self pointer.
(pthread_mutex::TryLock): Call _TryLock with pthread_self pointer.
(pthread_mutex::UnLock): Call _UnLock with pthread_self pointer.
(pthread_mutex::Destroy): Call _Destroy with pthread_self pointer.
(pthread_mutex::SetOwner): Moved from thread.cc as inline.
(pthread_mutex::LockRecursive): Ditto.
(pthread_mutex::_Lock): New method.
(pthread_mutex::_TryLock): New method.
(pthread_mutex::_UnLock): New method.
(pthread_mutex::_Destroy): New method.
2003-03-18 19:39:21 +00:00
Corinna Vinschen
dcd350f0ec
* fhandler_proc.cc (format_proc_cpuinfo): Use IsProcessorFeaturePresent
...
only on Windows NT. Read CPU Mhz value only on NT. Revert previous
change so cpuid instruction is called even on non-NT systems.
2003-03-18 09:30:03 +00:00
Danny Smith
bc1658ad66
* include/lmaccess.h (UF_LOCKOUT): Correct name from UF_LOCK.
...
Thanks to: Fabricio D. Rossi <gurusoda@users.sourceforge.net>
(UF_SETTABLE_BITS): Correct UF_LOCKOUT here too.
2003-03-18 09:19:21 +00:00
Christopher Faylor
eeb65b9513
* Makefile.common (w32api_lib): Default to system w32api directory if w32api is
...
missing from source.
2003-03-17 23:13:26 +00:00
Christopher Faylor
298b2249e6
* Makefile.common: Fix typo from previous checkin.
2003-03-17 22:35:53 +00:00
Christopher Faylor
237ab58c28
* configure.in: w32api directory was already optional. Semi-revert 2003-02-06
...
change.
* configure: Regenerate.
* Makefile.common: Don't specific -nostdinc if there is no w32api directory.
2003-03-17 22:27:07 +00:00
Corinna Vinschen
c51dc9c245
* glob.c (g_lstat): Change API minor test to match API minor number
...
change in previous patch.
(g_stat): Ditto.
2003-03-17 20:44:10 +00:00
Christopher Faylor
f194ba1ff3
* include/cygwin/version.h: Reorganize last two api versions so that btowc and
...
trunc exports show up before previous bump since there has been no exported
version of the DLL with the 64 bit changes yet but 1.3.22 will have the btowc
and trunc.
2003-03-17 19:16:15 +00:00
Christopher Faylor
3543669fd3
* cygwin.din: Export btowc, trunc.
...
* include/cygwin/version.h: Reflect new exports.
* syscalls.cc (_stat): Rename to stat to avoid newlib wrapper.
* syscalls.cc (_fstat): Ditto.
* fhandler_console.cc (fhandler_console::close): Correct check for current tty.
Add debugging output when console is freed.
(set_console_state_for_spawn): Add debugging output.
* fhandler_tty.cc (fhandler_tty_slave::open): Don't decrement console open flag
when vforking.
* sigproc.cc (sigproc_terminate): Fix debugging output.
* spawn.cc (handle): Eliminate second argument.
(spawn_guts): Reflect elimination of argument change to handle.
* syscalls.cc (setsid): Add debugging output when console is freed.
* syscalls.cc (rename): Revert assumption that DELETE_ON_CLOSE works on Win9x.
2003-03-17 19:08:11 +00:00
Danny Smith
4b170a4bf4
2003-03-17 Bang Jun-Young <junyoung@netbsd.org>
...
* include/winbase.h (EnumResourceLanguages[AW]): Correct prototypes.
(EnumResourceNames[AW]): Ditto.
(EnumResourceTypes[AW]): Ditto.
* include/wincon.h (CONSOLE_FONT_INFO): Add struct.
2003-03-17 10:01:07 +00:00
Danny Smith
48051a71ce
Get rid of some warnings
...
* mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning.
* mingwex/strtoimax.c (strtoimax): Likewise.
* mingwex/wcstoimax.c (wcstoimax): Likewise.
* mingwex/wtoll.c (wtoll): Remove unnecessary ';'
* mingwex/fesentenv.c: Include float.h.
* mingwex/math/powl.c: Eliminate type punning/strict aliasing
warning.
* mingwex/math/tanhl.c: Eliminate signed/unsigned warning in
constants.
* mingwex/math/tgammal.c: Likewise.
2003-03-17 01:03:43 +00:00
Danny Smith
9bd09d45f0
2003-03-16 Toby Malone <malone@users.sourceforge.net>
...
* include/winuser.h (SendInput): Add prototype.
* lib/user32.def (SendInput): Add stub.
2003-03-17 00:14:39 +00:00
Danny Smith
f99ee1608c
* include/utime.h: New file, forwarding to sys/utime.h.
2003-03-16 22:23:58 +00:00
Danny Smith
5652f74ed2
* include/sys/param.h (MAXPATHLEN): Define.
2003-03-16 22:18:05 +00:00
Danny Smith
e685ccffdf
* include/tchar.h: Ansi-fy a comment.
2003-03-16 22:15:19 +00:00
Danny Smith
dcbe33d83a
* profile/profile.h (mcount): Use __builtin_return_address
...
rather than __asm statements.
* profile/Makefile.in: Remove special rule for mcount.o
Specify dependencies for mcount.o profil.o gmon.o.
2003-03-16 22:12:01 +00:00
Danny Smith
7729cf524f
2003-03-16 Vadim Yegorov <zg@bmg.lv>
...
* winioctl.h (FSCTL_SET_REPARSE_POINT: Correct macro.
(FSCTL_DELETE_REPARSE_POINT): Likewise.
2003-03-16 01:41:58 +00:00
Danny Smith
5b537130a3
2003-03-15 Bang Jun-Young <junyoung@netbsd.org>
...
* winnt.h (JOBOBJECTINFOCLASS): Define enum.
(JOBOBJECT_*): Define corresponding structures.
2003-03-15 03:50:48 +00:00
Danny Smith
2359084b5b
2003-03-13 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/ddk/winddk.h (PCUNICODE_STRING): Remove incorrect
typedef.
2003-03-13 Bang Jun-Young <junyoung@netbsd.org>
* lib/kernel32.def (Module32{First,Next}{,W}): Add missing exports.
(Process32{First,Next}{,W}): Ditto.
(Thread32{First,Next}): Ditto.
* include/ntdef.h (PCUNICODE_STRING): Add typedef.
2003-03-14 03:06:52 +00:00
Christopher Faylor
41ffdfa51e
* include/cygwin/version.h: Bump DLL minor number to 23.
2003-03-13 23:11:38 +00:00
Corinna Vinschen
5b186cd999
* autoload.cc (IsProcessorFeaturePresent): Add.
...
* fhandler_proc.cc (format_proc_cpuinfo): Add case for 9x systems.
2003-03-13 22:53:16 +00:00
Corinna Vinschen
c58555c70f
* fhandler_proc.cc (format_proc_cpuinfo): Fix vendor id in cpuid case.
2003-03-13 22:32:40 +00:00
Corinna Vinschen
49a0d53c46
* net.cc (cygwin_rcmd): Use correct file descriptor in call to fdsock.
...
(cygwin_rexec): Ditto.
2003-03-13 11:31:24 +00:00
Christopher Faylor
6fcd5661fe
* syscalls.cc (rename): Assume that DELETE_ON_CLOSE works on Win9x.
...
* fhandler_tty.cc (fhandler_tty_slave::close): Fix typo in debug output.
2003-03-13 08:18:15 +00:00
Earnie Boyd
19bf3bcc3e
* include/mswsock.h: Correct invalid filter for _WINSOCK2_H.
...
Thanks to Jim Barton <jmbarton@users.sf.net>.
2003-03-12 23:36:54 +00:00
Christopher Faylor
0e2b01821a
fix typo
2003-03-12 17:21:31 +00:00
Christopher Faylor
df4bf7b98c
Checkin previously referred to in ChangeLog.
2003-03-12 06:28:27 +00:00
Danny Smith
c5e1d3ea74
2003-03-12 Ranjit Mathew <rmathew@hotmail.com>
...
* include/winnt.h (_IMAGE_SEPARATE_DEBUG_HEADER): Expose
member SectionAlignment.
2003-03-11 23:53:08 +00:00
Corinna Vinschen
aa39b7f7bf
* fhandler_socket.cc (fhandler_socket::dup): Don't call
...
fhandler_base::dup() but call DuplicateHandle directly instead to have
control over socket inheritence.
2003-03-11 16:49:58 +00:00
Earnie Boyd
296b2a5f17
* include/winsvc.h (SERVICE_NO_CHANGE): Use hex constant to avoid
...
warnings.
Thanks to Fabricio D. Rossi <gurusoda@users.sf.net>.
* Makefile.in (bindist): Correct process.
* lib/Makefile.in (install): Ditto.
Thanks to Jeff Bonnggren <jbon@users.sf.net>.
2003-03-11 14:44:58 +00:00
Corinna Vinschen
2afa7f5882
2003-03-11 Corinna Vinschen <corinna@vinschen.de>
...
* fhandler_socket.cc (fhandler_socket::dup): On NT systems avoid
using WinSock2 socket duplication methods. Add comment.
2003-03-11 Pierre Humblet <pierre.humblet@ieee.org>
* fhandler_socket.cc (fhandler_socket::fixup_after_fork):
Set io_handle to INVALID_SOCKET in case of failure.
(fhandler_socket::dup): Return 0 if the io_handle is valid.
2003-03-11 13:05:36 +00:00
Danny Smith
970f752c8c
* include/stdlib.h (qsort): Remove const from first parm.
...
Thanks to: Tien-Ren Chen <trchen@sourceforge.users.net>
2003-03-11 03:00:50 +00:00
Danny Smith
316d65dc72
* include/rasdlg.h: New file.
...
* lib/rasdlg.def: New file.
* lib/test.c: Include rasdlg.h.
2003-03-10 22:45:51 +00:00
Corinna Vinschen
556ceaeb58
* sec_acl.cc (setacl): Don't handle DELETE flag specially.
...
* security.cc (alloc_sd): Ditto.
2003-03-10 16:25:48 +00:00
Corinna Vinschen
6bbf711e68
Fix typo.
2003-03-09 22:13:27 +00:00
Corinna Vinschen
a201401c41
* winver.rc: Change Copyright hint to inlcude 2003.
2003-03-09 22:13:06 +00:00
Corinna Vinschen
b1aae492d0
Switch to 32/64 datatypes:
...
* Makefile.in (OBSOLETE_FUNCTIONS): Add open acl aclcheck aclfrommode
aclfrompbits aclfromtext aclsort acltomode acltopbits acltotext chown
facl fchown fgetpos fopen freopen fseeko fsetpos fstat ftello
ftruncate getegid geteuid getgid getgrent getgrgid getgrnam getgroups
getpwuid getpwuid_r getuid initgroups lchown lseek lstat mknod mmap
seekdir setegid seteuid setgid setgroups setregid setreuid setuid stat
telldir truncate.
(NEW_FUNCTIONS): Add _open64 acl32 aclcheck32 aclfrommode32
aclfrompbits32 aclfromtext32 aclsort32 acltomode32 acltopbits32
acltotext32 chown32 facl32 fchown32 fgetpos64 fopen64 freopen64
fseeko64 fsetpos64 fstat64 ftello64 ftruncate64 getegid32 geteuid32
getgid32 getgrent32 getgrgid32 getgrnam32 getgroups32 getpwuid32
getpwuid_r32 getuid32 initgroups32 lchown32 lseek64 lstat64 mknod32
mmap64 seekdir64 setegid32 seteuid32 setgid32 setgroups32 setregid32
setreuid32 setuid32 stat64 telldir64 truncate64 to substitute the
above.
* cygserver_shm.h (class client_request_shm): Change uid_t and gid_t
members to __uid32_t and __gid32_t.
* cygwin.din: Add symbols acl32 aclcheck32 aclfrommode32
aclfrompbits32 aclfromtext32 aclsort32 acltomode32 acltopbits32
acltotext32 facl32 fgetpos64 fopen64 freopen64 fseeko64 fsetpos64
_fstat64 ftello64 _lseek64 mknod32 _open64.
* glob.c: Include perprocess.h.
(globtilde): Call getpwuid32 and getuid32 instead of getpwuid and
getuid.
(g_lstat): Check for applications API version to call the appropriate
typed gl_lstat function.
(g_stat): Ditto for gl_stat.
* shm.cc (client_request_shm::client_request_shm): Call geteuid32
and getegid32 instead of geteuid and getegid throughout.
* syscalls.cc (_open64): New alias for open.
(_lseek64): New alias for lseek64.
(_fstat64): New alias for fseek64.
(mknod32): New function.
(mknod): Calls mknod32 now.
* winsup.h: Make function declarations for getuid32, geteuid32,
and getpwuid32 accessible for plain C sources. Add declarations
for getegid32 and getpwnam.
* include/cygwin/version.h: Bum API minor number to 78.
* include/sys/cygwin.h: Guard C++ specific members of struct
per_process against inclusion in plain C sources.
* include/sys/mman.h (mman): Add guard to avoid type clash when
compiling Cygwin.
2003-03-09 21:51:00 +00:00
Christopher Faylor
d580d86c80
fix typo
2003-03-09 20:54:12 +00:00
Christopher Faylor
659fb3ffd3
* include/cygwin/version.h: Bump DLL minor number to 21.
2003-03-09 20:50:11 +00:00
Christopher Faylor
a113a3c540
whitespace cleanup
2003-03-09 20:31:07 +00:00
Christopher Faylor
c367dfd02c
Do some minor reformatting of 'extern "C"' use throughout.
...
* autoload.cc (GetSystemTimes): Define new autoload function.
* fhandler_proc.cc (proc_listing): Add cpuinfo and partitions entries.
(fhandler_proc::fill_filebuf): Add PROC_CPUINFO and PROC_PARTITIONS cases.
(format_proc_uptime): Use GetSystemTimes if available.
(read_value): New macro.
(print): New macro.
(cpuid): New function.
(can_set_flag): New function.
(format_proc_cpuinfo): New function.
(format_proc_partitions): New function.
2003-03-09 20:10:25 +00:00
Christopher Faylor
90fec0fa7a
* winsup.api/winsup.exp: Use -nostdinc when compiling.
...
* Makefile.in: Specifically search compiler include directory since it is now
stripped via -nostdinc.
2003-03-09 19:46:29 +00:00
Christopher Faylor
bc1c4e1e64
.
2003-03-09 19:29:22 +00:00
Christopher Faylor
cb837d41a7
* Makefile.common: Avoid double slashes in GCC_INCLUDE.
2003-03-09 19:22:15 +00:00
Corinna Vinschen
ef1aafb0f3
* getfacl.c (username): Fix ambiguous printf calls.
...
(groupname): Ditto.
(main): Ditto.
2003-03-09 19:04:23 +00:00
Christopher Faylor
36c4a441f6
* syscalls.cc (unlink): Attempt to be more clever about setting attributes of
...
file. Only open file in query mode to avoid having to mess with security stuff
for reading.
2003-03-09 18:10:42 +00:00
Corinna Vinschen
c379f2ed07
* winsup.api/ltp/fork10.c (main): Remove non-portable declaration
...
of lseek.
2003-03-09 17:53:06 +00:00
Corinna Vinschen
639ebe297b
* rmsym: Fix regular expression.
2003-03-09 17:13:46 +00:00
Christopher Faylor
6e0465c6bc
* Makefile.in: Use "cygwin0" rather than "new-cygwin" to denote in-build-tree
...
version of library or dll.
* config/default.exp: Ditto.
* winsup.api/winsup.exp: Ditto.
2003-03-09 17:03:05 +00:00
Christopher Faylor
3a1d827f5c
* Makefile.in: Change from using new-* to cygwin0 for temporary targets.
2003-03-09 17:01:41 +00:00
Corinna Vinschen
ca0e907143
* include/cygwin/socket.h: Set SOMAXCONN to Winsock2 value.
2003-03-09 16:05:54 +00:00
Christopher Faylor
ed269ceaa2
* syscalls.cc (unlink): Always attempt to use FILE_FLAG_CLOSE_ON_DELETE to
...
delete files since this allows us to preserve the protection of hard linked
files.
(link): Generate full path for potentially recalculated .lnk target.
2003-03-09 00:10:29 +00:00
Christopher Faylor
35c6ce031e
missed in last checkin
2003-03-08 19:22:08 +00:00
Christopher Faylor
1114c3d059
Revert below changes regarding _pinfo::cmdline.
2003-03-08 17:56:13 +00:00
Corinna Vinschen
d66ac2bc52
* external.cc (cygwin_internal): Change n to __off64_t to match change
...
of _pinfo::cmdline.
* fhandler.h (class fhandler_virtual): Change filesize member to
__off64_t.
* fhandler_proc.cc (format_proc_meminfo): Change to return __off64_t.
(format_proc_stat): Ditto.
(format_proc_uptime): Ditto.
* fhandler_process.cc (format_process_stat): Ditto.
(format_process_status): Ditto.
(format_process_statm): Ditto.
* pinfo.cc (_pinfo::cmdline): Expect __off64_t parameter.
* pinfo.h (class _pinfo): Change declaration of cmdline accordingly.
2003-03-08 16:44:25 +00:00
Christopher Faylor
762520f3bc
* path.h (PATH_LNK): New enum val.
...
(path_conv::is_lnk_symlink): New function. True if path represents .lnk style
symlink.
* path.cc (check_shortcut): Set PATH_LNK in pflags when appropriate.
(symlink_info::check): Ditto. Remove PATH_LNK from pflags initially.
* syscalls.cc (unlink): Always remove readonly attribute from a symlink
regardless of type.
(link): (from Corinna Vinschen) Allow links to symlinks. Reset attributes on a
symlink after successful link creation.
(chmod): Use is_lnk_symlink where appropriate.
(rename): Ditto.
* tty.cc (create_tty_master): Call GetComputerName instead of
cygwin_gethostname. Set ut_id.
* syscalls.cc (login): Call endutent.
(setutent): Do not seek after a fresh open.
2003-03-08 03:36:39 +00:00
Corinna Vinschen
6f8102cb71
* syscalls.cc (seteuid32): Fix formatting.
2003-03-07 16:35:56 +00:00
Corinna Vinschen
e463d1ac53
* winsup.api/known_bugs.tcl: Remove fsync01, setregid01 and setreuid01
...
from list of known bugs.
2003-03-07 15:59:58 +00:00
Danny Smith
3332e57f26
2003-03-06 Christopher January <chris@atomice.net>
...
* include/winbase.h (FindFirstVolume): Add declaration.
(FindNextVolume): Add declaration.
(FindVolumeClose): Add declaration.
(GetSystemTimes): Add declaration.
* include/winnt.h: Add define for PF_XMMI64_INSTRUCTIONS_AVAILABLE.
2003-03-06 Danny Smith <dannysmith@users.sourceforge.net>
*lib/kernel32.def (GetSystemTimes): Add stub.
2003-03-07 00:51:19 +00:00
Thomas Pfaff
8824332846
* thread.cc (MTinterface::fixup_after_fork): Initialize mainthread
...
prior to pthread objects.
2003-03-04 20:16:49 +00:00
Corinna Vinschen
12390bc40d
* fhandler_socket.cc (fhandler_socket::dup): Initialize type.
2003-03-04 16:35:00 +00:00
Christopher Faylor
a354f29e07
revert erroneous entry
2003-03-04 05:30:51 +00:00
Christopher Faylor
229f2bb465
* Makefile.in (strace.exe): Include mingw_getopt.o in link line.
...
* cygcheck.cc (print_version): Update copyright.
* strace.cc (print_version): Ditto.
(main): Allow cygwin paths for -o option.
(create_child): Allow cygwin path as argv[0].
* path.cc (path.cc): Allow UNC paths.
2003-03-04 05:30:50 +00:00
Christopher Faylor
c418817ed8
* fhandler.h (fhandler_tty_slave::close): Declare new function.
...
(fhandler_tty_slave::dup): Declare new function.
(fhandler_tty_slave::fixup_after_function): Declare new function.
* fhandler_tty.cc (fhandler_tty_slave_open): Only increment
fhandler_console::open_fhs when associated with a pty.
(fhandler_tty_slave::close): Define new function. Decrement
fhandler_console::open_fhs when associated with a pty.
(fhandler_tty_slave::dup): Define new function. Increment
fhandler_console::open_fhs when associated with a pty.
(fhandler_tty_slave::fixup_after_fork): Define new function. Increment
fhandler_console::open_fhs when associated with a pty.
2003-03-04 04:07:34 +00:00
Danny Smith
b99f1bf031
2003-03-04 Heiko Gerdau <hg@technosis.de>
...
* oleidl.h (IOleObject): Correct GetUserType prototype.
(IViewObject2): Correct GetExtent prototype.
* olectl.h (DISPIP_): Add new defines
* ocidl.h (IOleInPlaceSiteWindowless): Add new interface.
2003-03-04 00:36:06 +00:00
Christopher Faylor
e11fe31b55
* fhandler_tty.cc (fhandler_pty_slave::open): Grudgingly increment
...
fhandler_console::open_fhs here.
(fhandler_pty_slave::close): Ditto for close.
2003-03-03 15:15:49 +00:00
Danny Smith
2b02bd3c3f
2003-03-03 Christopher Faylor <cgf@redhat.com>
...
* mingwex/getopt.c: Refresh from NetBSD sources.
2003-03-03 10:27:57 +00:00
Christopher Faylor
cffdb4b17f
* lib/getopt.c: Refresh from NetBSD sources.
2003-03-03 04:30:09 +00:00
Christopher Faylor
d5d2ffee38
* fhandler_console.cc (fhandler_console::close): Don't decrement in use counter
...
if in vfork fixup stage.
2003-03-03 03:58:10 +00:00
Danny Smith
f5eb407ed1
* mingwex/getopt.c: New file, copied from cygwin srcs.
...
* include/getopt.h: New file, copied from cygwin srcs.
* include/unistd.h: Include getopt.h.
* mingwex/Makefile.in ((DISTFILES): Add getopt.c.
(POSIX_OBJS): Add getopt.o.
2003-03-03 01:19:42 +00:00
Christopher Faylor
c2c6b1701a
* lib/getopt.c: Nuke use of unneeded BSDisms.
2003-03-02 22:52:18 +00:00
Christopher Faylor
8b19b43d00
* dll_init.cc (dll_list::load_after_fork): Don't revert to LoadLibrary if
...
LoadLibraryEx fails.
* dtable.cc (dtable::dec_console_fds): Eliminate.
(dtable::release): Don't treat console specially.
(dtable::build_fhandler): Ditto.
* dtable.h (console_fds): Eliminate.
(dtable::dec_console_fds): Eliminate.
(dtable::inc_console_fds): Eliminate.
* fhandler.h (fhandler_console::open_fhs): New static element.
* fhandler_console.cc (fhandler_console::open): Increment open_fs.
(fhandler_console::close): Call FreeConsole if no more open consoles and ctty
is not associated with the console.
* syscalls.cc (setsid): Simplify check for when to call FreeConsole.
(check_pty_fds): Eliminate definition.
* winsup.h (check_pty_fds): Eliminate declaration.
2003-03-02 18:37:17 +00:00
Christopher Faylor
3efc65f7df
* dll_init.cc (dll_list::load_after_fork): Fix typo where result of LoadLibrary
...
was ignored.
2003-03-02 17:29:47 +00:00
Danny Smith
4aa3feb899
2003-03-02 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/stdio.h (vscanf): Add prototype.
(vfscanf): Ditto.
(vsscanf): Ditto.
(vwscanf): Ditto.
(vfwscanf): Ditto.
(vswscanf): Ditto.
* include/wchar.h (vwscanf): Add prototype.
(vfwscanf): Ditto.
(vswscanf): Ditto.
* mingwex/snprintf.c: Move to mingwex/stdio.
* mingwex/vsnprintf.c: Ditto.
* mingwex/snwprintf.c: Ditto.
* mingwex/vsnwprintf.c: Ditto.
* mingwex/Makefile.in (VPATH): Add $(srcdir)/stdio
(STDIO_DISTFILES): Add.
(DISTFILES): Adjust.
(STDIO_STUB_OBJS): Rename to STDIO_OBJS and add v*scanf objects.
(LIB_OBJS): Adjust.
(dist): Adjust.
2003-03-02 Aaron W LaFramboise <AWLaFramboise@aol.com>
* mingwex/stdio: New directory
* mingwex/stdio/vfscanf.c: New file.
* mingwex/stdio/vfwscanf.c: New file.
* mingwex/stdio/vscanf.c: New file.
* mingwex/stdio/vsscanf.c: New file.
* mingwex/stdio/vswscanf.c: New file.
* mingwex/stdio/vwscanf.c: New file.
2003-03-02 07:00:48 +00:00
Christopher Faylor
408e9b2fd4
fix typo
2003-03-02 06:50:27 +00:00
Joshua Daniel Franklin
34a50bf03f
Document new mkgroup,mkpasswd options
2003-03-01 17:29:51 +00:00
Pierre Humblet
f78765dadd
2003-03-01 Pierre Humblet <pierre.humblet@ieee.org>
...
* mkpasswd.cc (main): On Win95, output both a default line and a
line for the current user (if known) with a pseudorandom uid. If
the -u switch is given, produce a line for the specified user.
* mkgroup.cc (main): On Win95 change the group name from "unknown" to
"all".
2003-03-01 16:38:26 +00:00
Corinna Vinschen
5a082e9eac
* fhandler_socket.cc (fhandler_socket::bind): Open and write socket
...
file using Win32 calls.
2003-03-01 16:17:55 +00:00
Corinna Vinschen
9d913f071f
* fhandler_socket.cc (get_inet_addr): Open and read socket file using
...
Win32 calls.
2003-03-01 15:28:24 +00:00
Danny Smith
82569d7ac6
* include/olectl.h (OleLoadPictureEx) Add prototype.
...
(OleLoadPictureFile): Ditto.
(OleLoadPictureFileEx): Ditto.
(OleLoadPicturePath): Ditto.
(OleSavePictureFile): Ditto.
2003-03-01 09:34:12 +00:00
Danny Smith
c498f2e35a
* include/objbase.h (CoAddRefServerProcess): Add prototype.
...
(CoAddReleaseServerProcess): Ditto.
(CoResumeClassObjects): Ditto.
(CoSuspendClassObjects): Ditto.
* include/oleauto.h (V_I1): Define.
Thanks to: "Timofei" <mmttmm@users.sourceforge.net>
2003-03-01 07:19:36 +00:00
Danny Smith
8c061d6294
2003-03-01 Heiko Gerdau <hg@technosis.de>
...
* include/oleidl.h (USERCLASSTYPE): Add enum.
* include/ocidl.h (IObjectWithSite): Add interface.
2003-03-01 06:51:51 +00:00
Christopher Faylor
dbc49afd52
* Makefile.in (cygcheck.o): Fix so that actual mingw include files are used.
...
* cygcheck.cc (find_on_path): Translate from cygwin path when qualified path
name found.
(pretty_id): New function. Dump output of id command.
(dump_sysinfo): Call pretty_id for CYGWIN=ntsec and CYGWIN=nontsec cases.
2003-03-01 03:38:19 +00:00
Christopher Faylor
005c3065eb
* cygwin.din: Wrap atexit and exit with cygwin, thread-safe functions.
...
* dcrt0.cc (cygwin_atexit): New function.
(cygwin_exit): Ditto.
2003-03-01 02:02:42 +00:00
Pierre Humblet
27b4082ae7
2003-02-28 Pierre Humblet <pierre.humblet@ieee.org>
...
* syscalls.cc (fstat64): Pass get_name () to pc.
(access): Pass fn to stat_worker.
2003-02-28 23:52:48 +00:00
Danny Smith
3d5a4cbe6b
2003-02-28 Roland Schwingel <roland.schwingel@onevision.de>
...
Fixup UNICODE thinko in 2003-02-22 patch.
* include/wingdi.h (AddFontMemResourceEx): Add.
(RemoveFontMemResourceEx): Ditto.
(AddFontMemResourceEx[AW]): Remove.
(RemoveFontMemResourceEx[AW]): Ditto
* lib/gdi32.def: (AddFontResourceEx): Add.
(RemoveFontMemResourceEx): Ditto.
(AddFontMemResourceEx[AW]): Remove.
(RemoveFontResourceEx[AW]): Ditto.
2003-02-28 08:03:13 +00:00
Corinna Vinschen
5777b970bb
2003-03-27 Corinna Vinschen <corinna@vinschen.de>
...
* fhandler_socket.cc (class sock_event): New class managing Winsock
events for interruptible socket calls.
(fhandler_socket::connect): Move support for interruptible call to
class sock_event. Use class object instead.
(fhandler_socket::accept): Ditto. Remove useless casts.
2003-03-27 Thomas Pfaff <tpfaff@gmx.net>
* fhandler_socket.cc (fhandler_socket::connect): Add support for
an interruptable connect.
2003-02-27 21:41:28 +00:00
Corinna Vinschen
7b2ce66370
* uinfo.cc (internal_getlogin): Only update user.groups.pgsid
...
if the call to set the primary group succeeds.
2003-02-27 17:41:15 +00:00
Christopher Faylor
0e7a60fef9
* cygthread::detach: Improve error message.
2003-02-27 15:09:31 +00:00
Corinna Vinschen
61a525994a
* sec_helper.cc (get_sids_info): debug_print owner_sid and group_sid.
2003-02-26 08:34:34 +00:00
Earnie Boyd
5ffa5aaa5c
* Makefile.in (libmsvcrt20.a): Remove target and dependencies.
...
(libmsvcrt40.a): Ditto.
2003-02-25 13:07:46 +00:00
Corinna Vinschen
6b9a9ce6ba
* mmap.cc (mmap64): Fix returned address by taking the granularity
...
into account.
2003-02-25 12:46:39 +00:00
Pierre Humblet
1ffc44aaf7
2003-02-23 Pierre Humblet <pierre.humblet@ieee.org>
...
* syslog.cc (syslog): Do not unlock the file before closing it
and remove debug_printf about stream errors.
2003-02-23 19:12:55 +00:00
Danny Smith
cc379158bb
2003-02-23 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/winbase.h (EVENTLOG_SUCCESS): Add define.
Thanks to: Thomas Weber <thomasweber@sourceforge.net>
2003-02-23 08:31:37 +00:00
Christopher Faylor
b59e1aaceb
whitespace
2003-02-22 23:03:26 +00:00
Christopher Faylor
a066f3645b
* cygmalloc.h: Remove MORECORE_CANNOT_TRIM. It's not true. # cygwin.din:
...
Export mallinfo. # malloc_wrapper.cc (mallinfo): New function.
2003-02-22 23:02:15 +00:00
Christopher Faylor
878e60c561
* syslog.cc (syslog): Do not print the Windows pid. Print the Cygwin pid as an
...
unsigned decimal. On Win95 print a timestamp and attempt to lock the file up
to four times in 3 ms.
2003-02-22 19:35:03 +00:00
Danny Smith
fe96201935
2003-02-22 Roland Schwingel <roland.schwingel@onevision.de>
...
* include/wingdi.h (AddFontMemResourceEx[AW]): Add.
(RemoveFontMemResourceEx[AW]): Ditto
* lib/gdi32.def (AddFontMemResourceEx[AW]): Add.
(RemoveFontMemResourceEx[AW]): Ditto.
2003-02-22 11:32:30 +00:00
Danny Smith
d17d85ec0c
2003-02-22 Bang Jun-Young <junyoung@netbsd.org>
...
* lib/ntdll.def (NT*, RTL*, ZW*): Add missing exports.
(NtCurrentTeb): Remove.
2003-02-22 10:43:46 +00:00
Danny Smith
f06b65e352
* include/wsahelp.h: Remove ';' after closing
...
#ifdef __cplusplus brace.
* include/ws2spi.h: Likewise.
2003-02-22 10:21:39 +00:00
Danny Smith
dffcc5d324
* include/winbase.h (MEMORYSTATUSEX): Add structure.
...
(GlobalMemoryStatusEx): Add prototype.
* lib/kernel32.def (GlobalMemoryStatusEx): Add stub.
2003-02-22 10:16:22 +00:00
Earnie Boyd
ab664f2d53
Thanks to David Frasier <davidf@sjsoft.com> who inspired portions of
...
this patch.
* Makefile.in (libmsvcrtd.a): Add target library.
(libmoldnamed.a): Ditto.
(msvcrt.def, msvcrtd.def, msvcrt20.def, msvcrt40.def): Use msvcrt.def.in
template to create.
($(srcdir)): Remove explicit reference for depencies of object targets.
* moldname.def, moldname-msvcrt.def, moldname-crtdll.def, msvcrt.def,
msvcrt20.def, msvcrt40.def: Remove.
* msvcrt.def.in: New file (Copy of previous msvcrt.def).
2003-02-21 21:12:29 +00:00
David Starks-Browning
a0c8d53b5a
various updates to setup entries. Stronger emphasis to use setup, and only setup.
...
(no more "work in progres ... ")
2003-02-21 20:37:47 +00:00
David Starks-Browning
45fb46b48d
new link to "How To Ask Questions The Smart Way" by Eric S. Raymond, added to Posting Guidelines entry
2003-02-21 20:13:55 +00:00
David Starks-Browning
b0484ae4d9
remove tired subtitle "(Not completely updated for the latest net release, but still useful!)"
2003-02-21 20:00:54 +00:00
Corinna Vinschen
b1d1e50d04
* fhandler_socket.cc (fhandler_socket::fhandler_socket): Fix compiler
...
warning.
(fhandler_socket::fstat): Simplify. Set st_uid/st_gid to effective
uid/gid of current process in case of open sockets.
2003-02-21 14:59:35 +00:00
Corinna Vinschen
cf762b08cf
* dtable.cc (dtable::build_fhandler_from_name): Set some fhandler
...
data on sockets to evaluate AF_LOCAL sockets correctly.
(dtable::build_fhandler): Set unit number on sockets.
* fhandler.h (fhandler_socket): Add unit number.
(fhandler_socket::get_unit): New method.
* fhandler_socket.cc (fhandler_socket::fhandler_socket): Set unit
number.
(fhandler_socket::fstat): Reorganize to return more Linux-like
values.
* net.cc: include ctype.h.
(fdsock): Set unit number when building fhandler.
* path.cc (path_conv::check): Set device type to FH_SOCKET if file
is a AF_UNIX socket.
(get_devn): Evaluate unit for virtual socket devices.
(win32_device_name): Set windows path for sockets to unix_path with
just backslashes to keep the different names.
* syscalls.cc (fstat64): Don't override st_ino, st_dev and st_rdev
for sockets.
(stat_worker): Ditto.
From Pierre Humblet:
* autoload.cc (AccessCheck): Add.
(DuplicateToken): Add.
* security.h (check_file_access): Declare.
* syscalls.cc (access): Convert path to Windows, check existence
and readonly attribute. Call check_file_access instead of acl_access.
* security.cc (check_file_access): Create.
* sec_acl (acl_access): Delete.
2003-02-21 14:29:18 +00:00
Christopher Faylor
5cd8241242
* fhandler.cc (fhandler_base::open): Move some filesystem specific stuff.
...
(fhandler_disk_file::open): Accept some filesystem specific stuff.
* sigproc.cc (wait_for_sigthread): Become slightly more thread safe.
(sig_send): Don't assume that signal thread is ready.
2003-02-21 04:33:53 +00:00
Corinna Vinschen
892d896274
* wincap.h (wincap): Remove unnecessary definition of
...
supports_sparse_files.
* wincap.cc: Ditto.
2003-02-20 15:58:55 +00:00
Corinna Vinschen
518f5d4935
* fhandler_disk_file.cc (fhandler_disk_file::opendir): Check descriptor
...
created by cygheap_fdnew constructor.
* fhandler_virtual.cc (fhandler_virtual::opendir): Ditto.
* fhandler_socket.cc (fhandler_socket::accept): Ditto and move
creation of file descriptor behind blocking OS call.
* net.cc (cygwin_socket): Ditto.
(cygwin_rcmd): Ditto.
(cygwin_rresvport): Ditto.
(cygwin_rexec): Ditto.
(socketpair): Ditto.
2003-02-20 14:14:37 +00:00
Corinna Vinschen
1374b148ba
* winsup.api/crlf.c: Fix C signed/unsigned compare warning.
...
* winsup.api/mmaptest01.c: Ditto.
* winsup.api/ltp/chmod01.c: Ditto.
* winsup.api/ltp/fork04.c: Ditto.
* winsup.api/ltp/lseek03.c: Ditto.
* winsup.api/ltp/lseek06.c: Ditto.
* winsup.api/ltp/lseek07.c: Ditto.
* winsup.api/ltp/lseek08.c: Ditto.
* winsup.api/ltp/mmap001.c: Ditto.
* winsup.api/ltp/mmap02.c: Ditto.
* winsup.api/ltp/mmap03.c: Ditto.
* winsup.api/ltp/mmap04.c: Ditto.
* winsup.api/ltp/mmap05.c: Ditto.
* winsup.api/ltp/mmap06.c: Ditto.
* winsup.api/ltp/mmap07.c: Ditto.
* winsup.api/ltp/mmap08.c: Ditto.
* winsup.api/ltp/pipe11.c: Ditto.
* winsup.api/ltp/poll01.c: Ditto.
* winsup.api/ltp/sync02.c: Ditto.
* winsup.api/ltp/times03.c: Ditto.
* winsup.api/ltp/umask03.c: Ditto.
* winsup.api/ltp/getpgid01.c: Remove unused obsolete include.
* winsup.api/ltp/getpgid02.c: Ditto.
2003-02-20 11:22:17 +00:00
Corinna Vinschen
3a88cf1b10
* autoload.cc (GetCompressedFileSize): Add.
...
* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Compute
st_blocks value from GetCompressedFileSize() if available.
2003-02-20 11:12:44 +00:00
Corinna Vinschen
7920792369
w32api:
...
* include/winioctl.h (FSCTL_SET_SPARSE): Define.
cygwin:
* wincap.h (wincaps::supports_sparse_files): New flag.
(wincapc::supports_sparse_files): New method.
* wincap.cc (wincap_unknown): Define value for the new flag.
(wincap_95): Ditto.
(wincap_95osr2): Ditto.
(wincap_98): Ditto.
(wincap_98se): Ditto.
(wincap_me): Ditto.
(wincap_nt3): Ditto.
(wincap_nt4): Ditto.
(wincap_nt4sp4): Ditto.
(wincap_2000): Ditto.
(wincap_xp): Ditto.
* path.h (path_conv::fs_flags): New method.
* fhandler_disk_file.cc: Include winioctl.h for DeviceIoControl.
(fhandler_disk_file::open): Set newly created and truncated files as
sparse on platforms that support it.
2003-02-20 10:14:53 +00:00
Corinna Vinschen
3f3d479490
* Makefile.in: Make sure libmingwex.a from current build tree is used.
2003-02-20 10:12:15 +00:00
Corinna Vinschen
afe13e8454
* grp.cc (internal_getgroups): Handle properly tokens with
...
no groups. Fix bug introduced on 2003-02-04.
2003-02-18 10:09:37 +00:00
Christopher Faylor
8fc16812e8
* cygwin.din: Export all appropriate newlibc libm functions. Sort.
...
* include/cygwin/version.h: Bump API minor number.
2003-02-16 19:31:07 +00:00
Christopher Faylor
f655eadfb4
* cygwin.din: Export all appropriate newlib functions.
...
* include/cygwin/version.h: Bump API minor number.
2003-02-15 21:45:09 +00:00
Corinna Vinschen
4d9ba012a9
* mmap.cc (mprotect): Add missing break.
2003-02-14 21:15:16 +00:00
Christopher Faylor
8df75c3736
* profile/Makefile.in (mcount.o): Use ALL_CFLAGS for compilation to ensure
...
-mno-cygwin where appropriate. Filter out -O2.
2003-02-14 19:25:12 +00:00
Christopher Faylor
dff01e3aa8
* exceptions.cc (try_to_debug): Don't reset priority when returning from
...
non-waitloop call.
2003-02-14 02:52:29 +00:00
Danny Smith
6a25a6219c
Fix typo in last ChangeLog entry.
2003-02-14 00:45:17 +00:00
Danny Smith
4d658cfcd2
* profile/Makefile.in (mcount,o): Use -O1 optimization
...
switch to compile.
2003-02-14 00:42:35 +00:00
Christopher Faylor
d1d1797eb7
* fhandler_console.cc (fhandler_console::write_normal): Use MessageBeep for
...
bell sound.
* autoload.cc (MessageBeep): Add.
2003-02-13 23:51:41 +00:00
Christopher Faylor
97c61aeba5
* include/cygwin/types.h: Use correct ifdef guard for u_ definitions.
2003-02-13 15:37:07 +00:00
Christopher Faylor
a200c081f5
* environ.cc (environ_init): Use strechr.
2003-02-13 15:17:11 +00:00
Christopher Faylor
9bebf38451
oops.
2003-02-13 15:16:33 +00:00
Christopher Faylor
2858de3a00
* include/cygwin/in.h (sockaddr_in): Fix typo.
2003-02-13 15:15:32 +00:00
Christopher Faylor
46b3d18661
fix typo
2003-02-13 14:20:32 +00:00
Christopher Faylor
9660d164f5
* how.texinfo: Add more w32api words.
2003-02-13 14:18:23 +00:00
Christopher Faylor
75c8a70c95
* path.h (path_conv): Reorganize slightly.
2003-02-13 03:13:37 +00:00
Christopher Faylor
939d19b0da
* fhandler_tty.cc (process_input): Add sanity check to ensure that console
...
typeahead is cleared on signal.
2003-02-13 02:56:36 +00:00
Christopher Faylor
7a44ba059b
* spawn.cc (linebuf::~linebuf): Resurrect commented out (for debugging?) code.
2003-02-13 02:52:41 +00:00
Christopher Faylor
4cf24d1442
* MAINTAINERS: Remove out-of-date file.
2003-02-13 02:41:44 +00:00
Christopher Faylor
7ca68b7ec3
* cygpath.cc (doit): Allocate more space for non-path filename.
2003-02-12 22:48:13 +00:00
Danny Smith
31ad033df2
2003-02-12 Roland Schwingel <roland.schwingel@onevision.de>
...
* include/wingdi.h (AddFontResourceEx[AW]): Add.
(RemoveFontResourceEx[AW]): Ditto
(FR_PRIVATE): Define.
(FR_NOT_ENUM): Define.
* lib/gdi32.def (AddFontResourceEx[AW]): Add.
(RemoveFontResourceEx[AW]): Ditto.
2003-02-12 21:15:13 +00:00
Danny Smith
de8eec5609
* include/math.h: Remove _CRTIMP from pow() prototype,
...
unless __NO_ISOCEXT.
2003-02-10 23:56:04 +00:00
Christopher Faylor
407b8df695
* include/cygwin/in.h (in_attr_t): Define new type.
...
* include/arpa/inet.h (inet_addr): Change return type to in_addr_t.
(inet_lnaof): Ditto.
(inet_netof): Ditto.
(inet_network): Ditto.
* include/cygwin/types.h: Move many *_t typedefs here. Protect them with
ifdefs.
* fhandler_disk_file.cc (fhandler_disk_file::fstat): Change ntsec_atts to
mode_t.
* security.cc (get_attribute_from_acl): Accept mode_t attribute.
(get_nt_attribute): Ditto.
(get_file_attribute): Ditto.
(get_nt_object_attribute): Ditto.
(get_object_attribute): Ditto.
* security.h: Reflect above changes.
* syscalls.cc (chown_worker): Change attrib to mode_t.
2003-02-10 22:43:29 +00:00
Danny Smith
eff24ab9c5
* mingwex/math/cephes_emath.h: Don't redefine INFINITY.
2003-02-10 22:38:36 +00:00
Danny Smith
14e54d7c97
* include/_mingw.h (_CRTIMP): Define for __GNUC__ if
...
__declspec(dllimport) supported.
(__cdecl): Define if not already defined.
(__stdcall): Likewise.
* include/dirent.h: Qualify fuctions with __cdecl.
* include/fenv.h: Likewise.
* include/inttypes.h: Likewise.
* include/assert.h: Qualify fuctions with __cdecl. Qualify
CRT dll imports with _CRTIMP.
* include/conio.h: Likewise.
* include/ctype.h: Likewise.
* include/direct.h: Likewise.
* include/dos.h: Likewise.
* include/errno.h: Likewise.
* include/float.h: Likewise.
* include/io.h: Likewise.
* include/locale.h: Likewise.
* include/malloc.h: Likewise.
* include/math.h: Likewise.
* include/mbctype.h: Likewise.
* include/mbstring.h: Likewise.
* include/process.h: Likewise.
* include/setjmp.h: Likewise.
* include/signal.h: Likewise.
* include/stdio.h: Likewise.
* include/stdlib.h: Likewise.
* include/string.h: Likewise.
* include/time.h: Likewise.
* include/wchar.h: Likewise.
* include/wctype.h: Likewise.
* include/sys/stat.h: Likewise.
* include/sys/timeb.h: Likewise.
* include/sys/utime.h: Likewise.
* include/ctype.h: Guard ctype inlines with __NO_INLINE__.
* include/wctype.h: Guard wctype inlines with __NO_INLINE__.
* include/stdio.h (__VALIST): Guard against prior definition.
2003-02-10 21:13:34 +00:00
Earnie Boyd
16f4e17208
* include/w32api.h: Increment version to 2.3.
...
* Makefile.in: Ditto.
2003-02-10 14:14:01 +00:00
Earnie Boyd
5518d083b4
* include/GL/gl.h: Remove include of glext.h.
...
Thanks to Greg Couch <gregcouch@users.sf.net>
2003-02-09 14:04:56 +00:00
Earnie Boyd
4fa551dbc4
* include/secext.h: New file. Declare EXTENDED_NAME_FORMAT.
...
* include/security.h: Include secext.h.
* include/winbase.h: Declare COMPUTER_NAME_FORMAT.
Thanks to Dimitri Papadopoulos <dimitri_at@users.sf.net>
2003-02-09 14:02:30 +00:00
Earnie Boyd
f3c5821cb7
* lib/ddk/ntoskrnl.def (Ke386IoSetAccessProcess): Activate export.
...
(Ke386QueryToAccessMap): Ditto.
(Ke386SetIoAccessMap): Ditto.
Thanks to Marcel Telka <telka@users.sf.net>
2003-02-09 13:25:36 +00:00
Christopher Faylor
67c64e3b2e
clarify
2003-02-08 17:13:46 +00:00
Christopher Faylor
ad80bc4224
* include/cygwin/version.h: Bump DLL minor number.
...
* malloc.cc (DEFAULT_MMAP_THRESHOLD): Bump down to 16MB thanks to below
changes.
2003-02-08 17:03:34 +00:00
Christopher Faylor
9c88207cf3
* winsup.api/winsup.exp (ws_spawn): Tweak slightly to work with tcl 8.4.1.
2003-02-08 16:46:32 +00:00
Earnie Boyd
994d26a476
* include/_mingw.h: Change version to 3.0
...
* Makefile.in: Ditto.
2003-02-08 14:58:31 +00:00
Earnie Boyd
9d55ae91b8
* include/stdlib.h: Make words after #endif a comment.
2003-02-08 14:30:29 +00:00
Christopher Faylor
9cca06eea1
* libltp/lib/parse_opts.c: Deal with C warnings.
...
* winsup.api/pthread/cancel12.c: Ditto.
* winsup.api/winsup.exp: Don't use -g3.
2003-02-08 02:56:49 +00:00
Christopher Faylor
3202ad2b9e
* dump_setup.cc (compar): Use case insensitive comparisons.
...
(dump_setup): Calculate package_len based on already used "len". Don't bother
with version_len.
2003-02-07 21:34:34 +00:00
Corinna Vinschen
eceb45bdff
* dump_setup.cc (dump_setup): Compute the longest package name
...
and align columns properly.
2003-02-07 21:11:44 +00:00
Corinna Vinschen
4a41db9e74
* ntsec.sgml: Add note on special names for missing user/group.
2003-02-07 20:59:19 +00:00
Corinna Vinschen
4136fdb16b
* mmap.cc (mmap_record::alloc_map): De-inline. Add offset and length
...
parameter. Only protect pages actually unused currently. Do job
of map_map() when initializing a map.
(mmap_record::map_map): Reduce functionality for the reuse case
of private anonymous mapping.
(mmap_record::fixup_map): Format change.
(list::add_record): Add offset and length parameter to call
mmap_record::alloc_map() correctly.
(mmap64): Rename `l' variable to `map_list'. Accomodate above changes.
(munmap): Rename `l' variable to `map_list'.
(msync): Ditto.
(fhandler_disk_file::mmap): Streamline code.
(mprotect): Ditto.
(fixup_mmaps_after_fork): Rename `l' variable to `map_list'.
2003-02-07 20:57:30 +00:00
Christopher Faylor
49b84ce441
Christopher Faylor <cgf@redhat.com>
...
* exceptions.cc (try_to_debug): Set priority of current thread rather than the
main thread. Make busy waiting loop less busy. Restore priority when function
returns.
2003-02-07 15:00:57 +00:00
Christopher Faylor
bc5b63edab
* malloc.cc (DEFAULT_MMAP_THRESHOLD): Set high to avoid mmaps.
...
* pipe.cc (fhandler_pipe::close): Avoid extraneous this->.
2003-02-07 06:15:10 +00:00
Christopher Faylor
44a30b4510
* pipe.cc (fhandler_pipe::close): Avoid extraneous this->.
2003-02-07 05:48:58 +00:00
Christopher Faylor
4a9cbef09d
* cygcheck.cc (common_apps): Add some more apps.
...
* path.cc (get_cygdrive): Correctly set system flag.
2003-02-07 04:51:26 +00:00
Christopher Faylor
1de8d16415
* heap.cc (heap_init): Remove debugging code.
2003-02-07 04:13:41 +00:00
Christopher Faylor
45b314b1ad
* configure.in: Make w32api directory optional.
...
* configure: Regenerate.
2003-02-07 03:45:15 +00:00
Danny Smith
500ed83f45
* include/locale.h: Include stddef.h for definition of NULL.
2003-02-07 02:13:55 +00:00
Corinna Vinschen
565e80155b
* security.h: Introduce names UNKNOWN_UID and UNKNOWN_GID and delete
...
declaration of is_grp_member.
* uinfo.cc (internal_getlogin): Use UNKNOWN_GID.
* passwd.cc (pwdgrp::read_passwd): Use UNKNOWN_UID.
* grp.cc (pwdgrp::read_group): Change group name to provide better
feedback.
(getgrgid): Use gid16togid32.
* sec_helper.cc (is_grp_member): Delete.
2003-02-06 14:01:54 +00:00
Joshua Daniel Franklin
f865f0c479
* setup-net.sgml: Add "setup-maxmem" section
2003-02-06 02:52:14 +00:00
Christopher Faylor
d238c1b453
* path.cc: Change 'to_posix_p' to 'to_posix' throughout.
...
(conv_path_list_buf_size): Accommodate relative paths.
2003-02-05 21:12:58 +00:00
Christopher Faylor
b7f52fe81a
* path.cc (etc::dir_changed): Fix debug printf.
2003-02-05 16:40:51 +00:00
Corinna Vinschen
62cd433e98
* sec_acl.cc (setacl): Move all permission settings to beginning of
...
loop. Set default rights to same values as in alloc_sd(). Set DELETE
for owner and default owner only if S_IWOTH is given.
* sec_acl.cc: Change all __aclent16_t to __aclent32_t except in
wrapper function definitions. Replace call to the aclXYZ functions by
calls aclXYZ32.
(searchace): Change type of third argument to __uid32_t and use
ILLEGAL_UID instead of -1;
(setacl): Remove some initializations. Only give STANDARD_RIGHTS_WRITE
for S_IWOTH. Replace -1 by ILLEGAL_UID.
(getacl): Change type of owner_sid, group_sid and ace_sid to cygpsid.
In last else clause, suppress second call to ace_sid.get_id and use
TRUE in first call. Replace EqualSid by ==.
(acl_access): Call internal_getgroups in USER and GROUP cases.
(acecmp: Define static.
(acl32): Create from 16 bit type.
(facl32): Ditto.
(lacl32): Ditto.
(aclcheck32): Ditto.
(aclsort32): Ditto.
(acltomode32): Ditto.
(aclfrommode32): Ditto.
(acltopbits32): Ditto.
(aclfrompbits32): Ditto.
(acltotext32): Ditto.
(aclfromtext32): Ditto, and use strechr.
(acl16to32): Create.
(acl): Make it a wrapper function.
(facl): Ditto.
(lacl): Ditto.
(aclcheck): Ditto.
(aclsort): Ditto.
(acltomode): Ditto.
(aclfrommode): Ditto.
(acltopbits): Ditto.
(aclfrompbits): Ditto.
(acltotext): Ditto.
(aclfromtext): Ditto.
* security.cc (write_sd): Call set_process_privilege and check
ownership.
(alloc_sd): Remove call to set_process_privilege and the owner check.
2003-02-05 16:15:22 +00:00
Earnie Boyd
33c7867ef1
* include/basetypes.h (_GUID_DEFINED): Add deprecation warning, start
...
using GUID_DEFINED instead.
* include/sqltypes.h: Ditto.
* include/winnt.h: Ditto.
* include/ddk/scsiwmi.h: Ditto.
2003-02-05 15:51:27 +00:00
Christopher Faylor
cadd065b63
* include/sys/cygwin.h: Use C-style comments.
2003-02-05 14:14:26 +00:00
Corinna Vinschen
0c8455c344
* sec_helper.cc (get_sids_info): New function.
...
* security.cc (extract_nt_dom_user): Simplify with strechr.
(get_user_groups): Initialize glen to MAX_SID_LEN.
(get_user_local_groups): Ditto.
(get_attribute_from_acl): Define ace_sid as cygpsid.
(get_nt_attribute): Define owner_sid and group_sid as cygpsid.
Call get_sids_info instead of cygsid.get_{u,g}id and is_grp_member.
(get_nt_object_attribute): Ditto.
(alloc_sd): Define ace_sid as cygpsid.
2003-02-05 13:47:47 +00:00
Danny Smith
b7b6c58a20
Correct typo in last changelog entry.
2003-02-04 22:21:45 +00:00
Danny Smith
ccbb9a6490
* include/shlwapi.h (PathRelativePathTo[AW]): Correct
...
protototypes.
Thanks to: John Dallaway <jld@ecoscentric.com>.
2003-02-04 22:17:38 +00:00
Thomas Pfaff
5ae9331a32
* syscalls.cc (struct system_cleanup_args): New struct.
...
(system_cleanup): New function.
(system): Use pthread_cleanup_push and _pop to save and restore
signal handlers and sigprocmask.
2003-02-04 19:49:39 +00:00
Thomas Pfaff
53c384f206
* winsup.api/pthread/cancel11.c: New test.
...
* winsup.api/pthread/cancel12.c: Ditto.
2003-02-04 19:34:21 +00:00
Corinna Vinschen
3dbafd873e
* path.cc (symlink): Create security attributes so that only the
...
user can modify the symlink.
* security.cc (set_security_attribute): Remove symlink special
handling.
2003-02-04 19:26:01 +00:00
Corinna Vinschen
0daf256192
* grp.cc (internal_getgroups): Do not return without closing
...
the process handle.
2003-02-04 17:53:08 +00:00
Corinna Vinschen
4a21c2d5c8
* security.h (class cygpsid): New class.
...
(class cygsid): Use cygpsid as base. Remove members psid, get_id,
get_uid, get_gid, string, debug_printf and the == and != operators.
(cygsidlist::clear_supp): Only do work if setgroups has been called.
* sec_helper.cc: Define sid_auth NO_COPY.
(cygpsid::operator==): New operator.
(cygpsid::get_id): New function.
(cygpsid::string): New function.
(cygsid::string): Delete.
(cygsid::get_id): Delete.
* pwdgrp.h: Change arguments of internal_getpwsid,
internal_getgrsid and internal_getgroups to cygpsid.
* passwd.cc (internal_getpwsid): Change argument from cygsid to cygpsid.
* grp.cc (internal_getgrsid): Ditto.
(internal_getgroups): Ditto.
2003-02-04 14:58:04 +00:00
Christopher Faylor
335556d58b
Eliminate most unneeded this-> pointers throughout.
2003-02-04 03:01:17 +00:00
Corinna Vinschen
153e83c605
* security.h: Add third argument to set_process_privilege.
...
* autoload.cc: Add OpenThreadToken.
* sec_helper.cc (set_process_privilege): Add and use use_thread
argument.
* security.cc (alloc_sd): Modify call to set_process_privilege.
Remember the result in each process. If failed and file owner is not
the user, fail.
2003-02-03 15:55:20 +00:00
Corinna Vinschen
f0f3ea68f3
* fhandler_socket.cc (fhandler_socket::recvfrom): Return buffer
...
length and don't set errno in case of WSAEMSGSIZE error.
(fhandler_socket::recvmsg): Ditto.
2003-02-03 15:34:52 +00:00
Joshua Daniel Franklin
46c1de5bf7
* cygwinenv.sgml: Add section for 'CYGWIN codepage:[ansi|oem]'
2003-02-03 00:30:45 +00:00
Christopher Faylor
6688a0618e
* grp.cc (getgrent32): Only refresh group entries when at beginning.
...
(internal_getgrsid): Only refresh if uninitialized.
(internal_getgrent): Ditto.
* passwd.cc (getpwent): Only refresh passwd entries when at beginning.
(pwdgrp::read_passwd): linebuf *cannot* be NO_COPY.
(internal_getpwsid): Only refresh if uninitialized.
(getpass): No need to refresh passwd data here.
* pwdgrp.h (refresh): Eliminate default.
2003-02-01 18:41:29 +00:00
Danny Smith
05d2a9a4fb
* include/commctrl.h (TCM_*): Add missing defines.
2003-02-01 11:38:31 +00:00
Danny Smith
93dfea5667
2003-02-01 Jesus Alvarez <jesus_alvarez@users.sourceforge.net>
...
Danny Smith <dannysmith@users.sourceforge.net>
* include/prsht.h (PSP_*, PSH_*): Add missing defines.
(PROPSHEETPAGE[AW]): Add pszHeaderTitle, pszHeaderSubTitle
for (_WIN32_IE >= 0x0400).
(PROPSHEETHEADER[AW]): Add hplWatermark and anonymous union
fields for (_WIN32_IE >= 0x0400).
2003-02-01 08:53:17 +00:00
Christopher Faylor
a5a93a62b2
* dlfcn.cc (dlerror): Only report load errors once per error.
2003-02-01 05:00:15 +00:00
Christopher Faylor
b0a82a859d
* fhandler_serial.cc (fhandler_serial::open): Avoid extraneous setting of res.
...
* termios.cc (tcsetattr): Correctly record errno after tcsetattr call.
* fhandler_serial.cc (fhandler_serial::tcsetattr): Add error-checking so that
if any Win32 SetComm*() calls fail, errno gets set to EINVAL and tcsetattr()
returns -1. Catch invalid bitrates, mostly. If baud rate setting is B0, just
drop DTR and leave Win32 DCB bitrate as-is since 0 is not a valid Win32
setting.
(fhandler_serial::tcgetattr): If DTR is low, populate the bitrate as B0,
otherwise get it from the DCB.
2003-02-01 04:48:03 +00:00
Christopher Faylor
949c3da11a
* passwd.cc (pwdgrp::read_passwd): linebuf *must* be static (from Pierre
...
Humblet).
* pwdgrp.h (pwdgrp::refresh): Avoid calling read function if we already have
lock since that means we are in the process of reading the file.
2003-01-31 17:00:42 +00:00
Christopher Faylor
485d85bfa7
* shared.cc (shared_info::heap_chunk_size): Use correct variable when reading
...
HKLM.
2003-01-31 15:02:40 +00:00
Danny Smith
28c098e3f4
2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/winbase.h (CreateFiber): Change first parameter
to SIZE_T.
(CreateJobObject[AW], CreateHardLink[AW]): Guard with
(_WIN32_WINNT >= 0x0500).
2003-01-31 Bang Jun-Young <junyoung@netbsd.org>
* include/winbase.h (PWIN32_FIND_DATAA, PWIN32_FIND_DATAW):
Add missing typedefs.
(CreateFiberEx, CreateJobObjectA,CreateJobObjectW): Add missing
prototypes.
(CreateHardLinkA, CreateHardLinkW): Return BOOL, not HANDLE.
2003-01-31 08:28:44 +00:00
Christopher Faylor
704ce46198
* fhandler_registry.cc (fhandler_registry::exists): Fix off-by-one error when
...
inspecting path.
2003-01-30 23:15:15 +00:00
Christopher Faylor
ba6e108396
* lib/getopt.c: Allow environment variable control of POSIXLY_INCORRECT behavior.
2003-01-30 01:14:30 +00:00
Corinna Vinschen
01e3c89709
* fhandler_socket.cc (fhandler_socket::accept): On successful execution
...
set connection state of returned socket to CONNECTED.
2003-01-28 15:33:50 +00:00
Danny Smith
500acc57eb
2003-01-27 Krzysztof Nikiel <kni@poczta.onet.pl>
...
* include/mmsystem.h (MIXERCONTROL_CONTROLF_MULTIPLE): Correct
define.
* lib/largeint.c (LargeIntegerAdd): Add, don't multiply.
2003-01-27 23:11:13 +00:00
Christopher Faylor
dfb366da5a
* passwd.cc (pwdgrp::parse_passwd): Be more unforgiving about non-numeric
...
fields.
2003-01-27 17:00:17 +00:00
Christopher Faylor
ca6018a0d3
fix typo
2003-01-27 15:58:15 +00:00
Danny Smith
d2f9f641d9
2003-01-27 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/rpcnterr.h (RPC_X_INVALID_PIPE_OPERATION): Add
define.
* include/winbase.h (WAIT_TIMEOUT): Guard against prior
definition.
(WAIT_FAILED): Cast to DWORD.
* include/winerror.h (WAIT_TIMEOUT): Guard against prior
definition.
2003-01-27 Bang Jun-Young <junyoung@netbsd.org>
* include/winerror.h: Protect against multiple
definition of WSA* error codes.
* include/winsock.h: Likewise.
* include/winsock2.h: Likewise.
2003-01-27 Bang Dong-Heui
Bang Jun-Young <junyoung@netbsd.org>
* include/winerror.h (ERROR_*, SEC_E_*,RPC_S_*, FRS_ERR_*,
DNS_*, WSA*, WAIT_TIMEOUT): Add missing error codes.
(RPC_X_INVALID_PIPE_OPERATION): Remove define.
2003-01-27 07:15:17 +00:00
Christopher Faylor
03dba1defa
* uinfo.cc (pwdgrp::next_num): Remove check for NULL since it is no longer a
...
valid return from next_str.
(pwdgrp::add_line): Duh. Revert to use strchr.
2003-01-27 00:31:30 +00:00
Christopher Faylor
fea48988ea
* strings.h (strechr): New function.
...
* uinfo.cc (pwdgrp::next_str): Search only for input char in string. Return
EOS on failure. Don't check for NULL since it shouldn't be possible.
(pwdgrp::add_line): Revert to replacing '\n' in input line with '\0'.
(pwdgrp::next_num): Pass explicit separator character to next_str.
* grp.cc (pwdgrp::parse_group): Ditto.
* passwd.cc (pwdgrp::parse_passwd): Ditto. Revamp test for garbage input.
* pwdgrp.h (pwdgrp::next_str): Don't use default parameter.
2003-01-27 00:16:01 +00:00
Danny Smith
232cca6b0c
* include/math.h (tgamma): Correct typo in comment.
2003-01-26 07:04:04 +00:00
Christopher Faylor
9a75162166
* uinfo.cc (pwdgrp::load): Regularize strace output. Add warning for
...
CreateFile failure.
2003-01-26 06:42:40 +00:00
Danny Smith
989c97fe14
* mingwex/mingw-fseek.c (INLINE): Remove define.
...
(__mingw_is_win9x): Remove static inline function.
(_mingw_fwrite): Use _osver instead of __mingw_is_win9x.
2003-01-26 06:38:43 +00:00
Christopher Faylor
5da947eaca
Fix typo.
2003-01-26 06:27:26 +00:00
Christopher Faylor
bdbd7fb6b9
* passwd.cc (pwdgrp::parse_passwd): Eliminate use of memset. The structure
...
should always be completely filled out.
* grp.cc (pwdgrp::parse_group): Ditto.
* grp.cc (pwdgrp::parse_group): Fix off-by-one problem in allocating
2003-01-26 06:02:34 +00:00
Christopher Faylor
c913339563
* pwdgrp.cc (pwdgrp::parse_group): Fix off-by-one problem in allocating gr_mem.
2003-01-26 05:55:29 +00:00
Christopher Faylor
6503705696
* include/sys/strace.h (paranoid_printf): Define as not being part of "all"
...
output.
* pwdgrp.h (pwdgrp::next_num): Rename from next_int. Returns true/false if
parse operation succeeded.
(pwdgrp::reparse): Remove.
(pwdgrp::raw_ptr): New function. Returns pointer in line.
(pwdgrp::next_num): New functions for parsing other than unsigned long.
* grp.cc (pwdgrp::parse_group): Reinstate previous parsing behavior. Don't
fill in fields with NULL and assign empty gr_mem to known pointer rather than
doing a pointless calloc. Streamline gr_mem parsing. Don't increment
curr_lines here.
* passwd.cc (pwdgrp::parse_passwd): Use new behavior of next_num. Don't
increment curr_lines here.
* uinfo.cc (pwdgrp::next_str): Keep returning EOL if out of data.
(pwdgrp::reparse): Remove.
(pwdgrp::next_num): Rename from next_int. Return bool indicating success of
parse, argument returns value parsed.
(pwdgrp::add_line): Increment curr_lines here on successful parse.
(pwdgrp::load): (from Pierre Humblet) Don't return status. Just report it
here.
2003-01-26 05:38:38 +00:00
Christopher Faylor
c9b99d0d2a
clarify
2003-01-25 16:38:56 +00:00
Christopher Faylor
a53ddfe6c2
* pwdgrp.cc (pwdgrp::reparse): Declare.
...
* uinfo.cc (pwdgrp::reparse): Define.
* grp.cc (pwdgrp::parse_group): Use.
2003-01-25 16:34:32 +00:00
Corinna Vinschen
4f7e12dd26
* syscalls.cc (seteuid32): On Win95 get the pw entry. If it exists
...
update the euid and call cygheap->user.set_name. Remove special
handling of ILLEGAL_UID.
(setgid32): Add a debug_printf. On Win95, always set the egid.
Remove special handling of ILLEGAL_GID. Do not compare gid and gr_gid.
* child_info.h (class cygheap_exec_info): Remove uid.
* spawn.cc (spawn_guts): Do not set ciresrv.moreinfo->uid.
* dcrto.cc (dll_crt0_1): Always call uinfo_init.
* uinfo.cc (uinfo_init): Reorganize and close handle if needed.
(cygheap_user::ontherange): Do not call internal_getpwnam if pw is NULL.
2003-01-25 10:36:46 +00:00
Christopher Faylor
45dbfc2611
* fhandler_console.cc (fhandler_console::send_winch_maybe): Reset scroll region
...
if size changes.
2003-01-25 01:17:51 +00:00
Danny Smith
81632e9e55
* include/ras.h (RASCONN[AW]): Add dwSessionId for
...
(WINVER >= 0x501).
2003-01-25 00:47:25 +00:00
Danny Smith
bb9f07bc54
* include/ras.h (RASCONN[AW]): Guard szDeviceType,
...
szDeviceName fields with WINVER >= 0x400. Add dwFlags, luid
fields for WINVER >= 0x501.
2003-01-25 00:41:45 +00:00
Corinna Vinschen
7d33eefa7b
* cygwin.din: Export setreuid32, setreuid, setregid32, setregid.
...
* syscalls.cc (setreuid32): New function.
(setreuid): Ditto.
(setregid32): Ditto.
(setregid): Ditto.
* include/cygwin/version.h: Bump API minor number.
2003-01-24 15:23:15 +00:00
Christopher Faylor
ac4133746e
* pwdrp.h (pwdgrp::refresh): Lock entire test prior to reading.
...
* grp.cc (pwdgrp::parse_group): Eliminate arg and use class member instead.
Use next_str and next_int to parse arguments.
* passwd.cc (pwdgrp::parse_passwd): Ditto.
(grab_string): Eliminate.
(grab_int): Ditto.
* pwdgrp.h (pwdgrp::parse): Eliminate input arg.
(pwdgrp::parse_passwd): Reflect above change.
(pwdgrp::parse_group): Reflect above change.
(pwdgrp::next_str): New function.
(pwdgrp::next_int): Ditto.
(pwdgrp::gets): Eliminate.
* uinfo.cc (pwdgrp::next_str): New function.
(pwdgrp::next_int): Ditto.
(pwdgrp::add_line): Subsume gets.
(pwdgrp::gets): Eliminate.
(pwdgrp::load): Just call add_line to parse input buffer.
2003-01-24 03:53:46 +00:00
Christopher Faylor
09a8842674
Add missing entry.
2003-01-24 02:41:28 +00:00
Christopher Faylor
b831fc4446
* libltp/include/usctest.h: Add externs to some variables that need it.
...
* winsup.api/ltp/mmap05.c (main): Make file_content volatile to avoid
optimization glitch.
2003-01-24 01:51:39 +00:00
Christopher Faylor
8e61c0495e
* winsup.api/mmaptest03.c (main): Mark variables as volatile to avoid
...
optimization induced problems.
2003-01-24 01:41:30 +00:00
Christopher Faylor
23a30ba8d9
* Makefile (check): Add cygrun.exe dependency.
2003-01-24 01:30:43 +00:00
Christopher Faylor
31d7abadfe
Perform more C warning fixup on all C source files and headers.
2003-01-24 01:09:40 +00:00
Christopher Faylor
9b978ffe8b
* libltp/include/test.h: Fix C warnings.
...
* winsup.api/checksignal.c: Ditto.
* winsup.api/crlf.c: Ditto.
* winsup.api/devzero.c: Ditto.
* winsup.api/iospeed.c: Ditto.
* winsup.api/mmaptest01.c: Ditto.
* winsup.api/mmaptest02.c: Ditto.
* winsup.api/mmaptest03.c: Ditto.
* winsup.api/mmaptest04.c: Ditto.
* winsup.api/nullgetcwd.c: Ditto.
* winsup.api/sigchld.c: Ditto.
* winsup.api/signal-into-win32-api.c: Ditto.
* winsup.api/systemcall.c: Ditto.
* winsup.api/waitpid.c: Ditto.
* winsup.api/pthread/mainthreadexits.c: Ditto.
* winsup.api/pthread/test.h: Ditto.
* winsup.api/pthread/threadidafterfork.c: Ditto.
* Makefile.in: Remove cygrun.exe from RUNTIME since it is built here now.
2003-01-23 21:21:28 +00:00
Christopher Faylor
d8f0f146b8
* Makeifle.in: Use ALL_CFLAGS to build test programs so that correct libraries
...
and other options are used.
2003-01-23 21:14:56 +00:00
Danny Smith
2d771b3dd9
* lib/ws2_32.def (getaddrinfo, freeaddrinfo and getnameinfo):
...
Add stubs.
* include/ws2tcpip.h (IPV6_*) Add IPPROTO_IPV6 level socket
options.
2003-01-23 20:43:47 +00:00
Thomas Pfaff
ea35a5e4ae
* include/pthread.h (PTHREAD_MUTEX_RECURSIVE): Revert changes from 2003-01-09 mutex patch.
...
(PTHREAD_MUTEX_ERRORCHECK): Ditto.
2003-01-22 19:51:31 +00:00
Thomas Pfaff
69fae98649
* include/pthread.h (PTHREAD_MUTEX_RECURSIVE): Revert changes from 2003-01-09 mutex patch.
...
(PTHREAD_MUTEX_ERRORCHECK): Ditto.
2003-01-22 19:49:28 +00:00
Corinna Vinschen
92005b4cec
* Makefile.in (ALL_LDFLAGS): Remove newlib/libm from tools paths.
...
(MINGW_LDFLAGS): Remove in favor of definition from Makefile.common.
2003-01-22 17:15:53 +00:00
Corinna Vinschen
2c6fdb56f5
* Makefile.common (MINGW_LDFLAGS): Add mingw/mingwex builddir.
2003-01-22 17:10:02 +00:00
Corinna Vinschen
2037688a5d
* cygrun.c: Move from here to ../testsuite.
...
* Makefile.in: Remove cygrun.exe dependencies.
2003-01-22 15:23:23 +00:00
Corinna Vinschen
19876644c7
* cygrun.c: Move here from ../cygwin.
...
* Makefile.in: Build cygrun.exe.
* winsup.api/winsup.exp: Expect cygrun.exe in $rootme.
2003-01-22 15:18:58 +00:00
Corinna Vinschen
89f7e8d1d3
* cygwin.din: Export nanosleep().
...
* signal.cc (nanosleep): New function.
(sleep): Move old functionality to nanosleep(). Call nanosleep().
(usleep): Remove old functionality. Call nanosleep().
* include/cygwin/version.h: Bump API minor number.
2003-01-22 10:43:39 +00:00
Christopher Faylor
13afd798c3
* Makefile.in: Find tcl library in the right place.
2003-01-22 03:58:28 +00:00
Thomas Pfaff
5cd5638f57
* winsup.api/pthread/cancel9.c: Make child pid static global.
...
(main): Wait in mainthread until child process has terminated.
2003-01-21 21:36:31 +00:00
Thomas Pfaff
f2137182fb
* winsup.api/pthread/cancel9.c: Make child pid static global.
...
(main): Wait in mainthread until child process has terminated.
2003-01-21 21:34:24 +00:00
Thomas Pfaff
00d1a4bb20
* winsup.api/pthread/cancel9.c: Wait in mainthread until child process has terminated.
2003-01-21 20:51:14 +00:00
Christopher Faylor
57394495e2
* grp.cc: Call gr.refresh() rather than doing isunitialized tests throughout.
...
(gr): Use constructor (sigh).
(pwdgrp::parse_group): Rename from parse_grp.
(pwdgrp::read_group): Rename from read_etc_group. Just call gr.load with a
single argument.
* passwd.cc: Call pr.refresh() rather than doing isunitialized tests
throughout.
(pr): Use constructor (sigh).
(pwdgrp::parse_passwd): Rename from "parse_pwd".
(pwdgrp::read_passwd): Rename from read_etc_passwd. Just call pr.load with a
single argument.
* pwdgrp.h (pwdgrp_state): Eliminate.
(pwdgrp): Reflect above renamings.
(pwdgrp::etc_ix): Rename from pwd_ix.
(pwdgrp::read): New element.
(pwdgrp::lock): New element.
(pwdgrp::refresh): New function.
(pwdgrp::load): Eliminate variations which take buffer arguments.
(pwdgrp::pwdgrp): New constructors. Initialize mutex here.
* uinfo.cc (pwdgrp::load): Accommodate pwd_ix -> etc_ix renaming.
(pwdgrp::load): Set initialized state to true rather than setting state to
loaded.
2003-01-21 06:58:11 +00:00
Christopher Faylor
984864e9ce
* include/cygwin/version.h: Bump DLL minor number.
2003-01-21 05:13:42 +00:00
Christopher Faylor
b99b804bb0
Fix ChangeLog entry.
2003-01-21 05:09:48 +00:00
Christopher Faylor
2386c7825f
add missing ChangeLog entry.
2003-01-21 05:09:20 +00:00
Christopher Faylor
33de631bf2
add missing ChangeLog entry.
2003-01-21 05:08:55 +00:00
Christopher Faylor
d8cde3a3ee
* path.h (etc::change_possible): Revert the type to bool.
...
(etc::set_last_modified): Remove obsolete function.
* path.cc (etc::change_possible): Revert type to bool.
(etc::test_file_change): Do not test for negative values of change_possible and
do not set it to -res.
(etc::dir_changed): When the handle is NULL, call memset instead of
test_file_changed. When the handle is invalid, return true.
(etc::file_changed): Remove unneeded check for !fn[n].
2003-01-21 05:07:28 +00:00
Christopher Faylor
7905c4f158
* pwdgrp.h (etc): Move to path.h.
...
(pwdgrp::max_lines): New field.
(pwdgrp::curr_lines): New field.
(pwdgrp::pwdgrp_buf): Ditto.
(pwdgrp_buf_elem_size): Ditto.
(pwdgrp_parse): Ditto.
(pwdgrp::gets): Just declare here.
(pwdgrp::load): Ditto. Just take one argument.
(pwdgrp::load): Define overloaded function accepting passwd buf.
(pwdgrp::load): Define overloaded function accepting group buf.
* grp.cc: Use pwdgrp elements rather than standalone static variables
throughout.
(curr_lines): Eliminate.
(max_lines): Ditto.
(add_grp_line): Ditto.
(parse_grp): Define as returning boolean. Accept void * arg and line count.
Coerce first argument into __group32 buf reference. Increment curr_line as
appropriate.
(read_etc_group): Pass pwdgrp buffer to gr.load.
* passwd.cc: Use pwdgrp elements rather than standalone static variables
throughout.
(curr_lines): Eliminate.
(max_lines): Ditto.
(add_grp_line): Ditto.
(parse_passwd): Define as returning boolean. Accept void * arg and line count.
Coerce first argument into passwd buf reference. Increment curr_line as
appropriate.
(read_etc_group): Pass pwdgrp buffer to pr.load.
* path.cc (etc::fn): Extend buffer size to allow index by 1 rather than zero.
(etc::last_modified): Ditto.
(etc::change_possible): Ditto. Renamed from sawchange. Change to signed char
since elements are now tri-state.
(etc::init): Assume "handle" is 1 based rather than 0.
(etc::test_file_change): New function. Sets change_possible based on file date
comparison.
(etc::dir_changed): Check file states immediately after changed_h is
initialized to avoid a race.
(etc::file_changed): Use test_file_change to detect if file needs to be
updated.
* path.h (etc): Move class here from pwdgrp.h.
* uinfo.cc: Move etc:: functions to path.cc. Move pwdgrp functions here.
(pwdgrp::gets): Eliminate buf checks. Just check eptr and set lptr.
(pwdgrp::add_line): New function.
(pwdgrp::load): Call generic add_line function which will call correct parser.
2003-01-20 02:57:54 +00:00
Christopher Faylor
97d2bc794d
fix typo
2003-01-18 03:43:48 +00:00
Christopher Faylor
4c6a3e500e
* cygheap.cc: Change most 'int's to 'unsigned's.
...
(_cmalloc): Only check for size of malloced region when calculating budget.
Add overhead when performing the sbrk. Previous change broke _crealloc.
2003-01-18 03:26:07 +00:00
Christopher Faylor
e915243911
* dcrt0.cc (initialize_env): Use colon for CYGWIN_DEBUG separator.
...
* grp.cc: Change most statics to NO_COPY throughout.
* passwd.cc: Ditto.
* pwdgrp.h: Change some BOOLs to bools.
(pwdgrp::pwdgrp): Remove unneeded constructor.
* passwd.cc: Change BOOL to bool throughout.
2003-01-17 18:05:32 +00:00
Corinna Vinschen
afa378e74a
* cygwin.din: Add strerror_r.
...
* include/cygwin/version.h: Bump API minor number.
2003-01-17 13:08:06 +00:00
Christopher Faylor
abbaa3a0e6
update copyright
2003-01-17 05:43:43 +00:00
Christopher Faylor
0c0eec3f43
whitespace
2003-01-17 05:33:52 +00:00
Christopher Faylor
5304bcdf6c
correct pwdgroup::load entry
2003-01-17 05:29:23 +00:00
Christopher Faylor
1de6f431aa
* uinfo.cc (etc::dir_changed): Don't print a warning if can't open /etc, unless
...
debugging.
2003-01-17 05:24:28 +00:00
Christopher Faylor
14ea50290a
* grp.cc (read_etc_group): On NT, add a line for gid = -1. Change name
...
"unknown" to "mkgroup".
(internal_getgrgid): Do not return default in nontsec case.
(internal_getgroups): Add argument srchsid and look for it in groups if not
NULL.
* passwd.cc (read_etc_passwd): On NT, add a line for uid = -1. Use same
default uid for Win95 and NT. Call cygheap_user::ontherange to initialize
HOME.
* cygheap.cc (init_cygheap::etc_changed): Move to uinfo.cc.
* cygheap.h (init_cygheap::etc_changed_h): Remove.
(init_cygheap::etc_changed): Ditto.
* grp.cc (group_state): Remove. Use gr instead throughout.
(gr): Define as class pwdgrp.
(read_etc_group): Remove gr definition. Remove calls to set_last_modified and
close. Pass add_grp to gr.load to load file.
* passwd.cc (passwd_state): Remove. Use pr instead, throughout.
(pr): Define as class pwdgrp.
(read_etc_passwd): Remove pr definition. Remove calls to set_last_modified and
close. Pass add_pwd_line to pr.load to load file.
* pwdgrp.h (etc): New helper class for pwdgrp.
(pwdgrp): Combine pwdgrp_check and pwdgrp_read into one class. Remove file_w32
and last_modified fields.
(pwdgrp::set_last_modified): Remove.
(pwdgrp::isinitializing): Remove FindFirstFile stuff. Move to
etc::file_changed.
(pwdgrp::load): Rename from 'open'. Call etc::init to initialize etc scanning.
Close file handle after reading buffer into memory. Parse buffer by calling
second argument.
(pwdgrp::gets): Reorganize slightly to rely on eptr starting at beginning of
buffer. Free buffer when memory exhausted.
(pwdgrp::close): Remove.
* uinfo.cc (etc::dir_changed): New function.
(etc::init): Ditto.
(etc::file_changed): Ditto.
(etc::set_last_modified): Ditto.
2003-01-17 05:18:30 +00:00
Corinna Vinschen
41429bc99b
* mmap.cc (fixup_mmaps_after_fork): Add ERROR_NOACCESS to the list of
...
ReadProcessMemory() error codes that trigger a retry with temporary
PAGE_READONLY access. Note that this can occur on NT 4.0.
2003-01-16 14:11:10 +00:00
Christopher Faylor
df9b825c9f
remove errnoneously added files
2003-01-16 01:57:08 +00:00
Christopher Faylor
188132541b
* path.cc (normalize_posix_path): Convert win32 path separators to slashes when
...
full path is specified.
2003-01-16 01:49:14 +00:00
Christopher Faylor
ce9eeb04a6
merge from trunk
2003-01-16 01:27:30 +00:00
Christopher Faylor
77cb0c56ef
* cmalloc.cc (_cmalloc): Fix memory leak.
2003-01-15 17:27:20 +00:00
Corinna Vinschen
ce542f7867
* autoload.cc: Fix copyright date.
...
* fhandler_dsp.cc: Ditto.
* mmap.cc: Ditto.
* net.cc: Ditto.
* ntdll.h: Ditto.
* signal.cc: Ditto.
* syscalls.cc: Ditto.
* uname.cc: Ditto.
* wait.cc: Ditto.
2003-01-15 10:21:23 +00:00
Corinna Vinschen
3903b47b79
* mkgroup.c: Fix copyright date.
...
* mkpasswd.c: Ditto.
* setfacl.c: Ditto.
Fix ChangeLog typos.
2003-01-15 10:08:37 +00:00
Christopher Faylor
8735f49f2f
fix minor typo.
2003-01-15 04:39:34 +00:00
Corinna Vinschen
15996b6f08
* mmap.cc (fixup_mmaps_after_fork): Copy protection to child process.
...
Change ambiguous debug output.
2003-01-14 21:01:43 +00:00
Corinna Vinschen
857b65ddba
* mmap.cc (mmap_record::access): Change argument type to caddr_t
...
for strictness.
(mprotect): Protect against calling VirtualProtect() for shared
pages on 9x/Me.
(fixup_mmaps_after_fork): If ReadProcessMemory() fails, try to
change protection of parent page to PAGE_READONLY, then try again.
Revert protection afterwards.
2003-01-14 20:40:09 +00:00
Christopher Faylor
9a47ce7f74
spacing cleanup
2003-01-14 20:31:47 +00:00
Thomas Pfaff
ee8d419fd4
Add winsup.api/pthread/cancel10.c
2003-01-14 20:22:20 +00:00
Thomas Pfaff
e14328f4f7
Apply system_cancel patch
2003-01-14 20:19:27 +00:00
Thomas Pfaff
17f422866a
Add winsup.api/pthread/cancel9.c
2003-01-14 20:15:58 +00:00
Thomas Pfaff
4a3584c84b
Apply wait_cancel patch
2003-01-14 20:13:09 +00:00
Thomas Pfaff
35dbe79943
Add winsup.api/pthread/cancel7.c and winsup.api/pthread/cancel8.c
2003-01-14 20:09:13 +00:00
Thomas Pfaff
7ec66a2c28
Apply sleep_cancel patch
2003-01-14 20:05:49 +00:00
Thomas Pfaff
d83b482409
Add winsup.api/pthread/cancel6.c
2003-01-14 20:03:41 +00:00
Thomas Pfaff
3457ce4d88
Apply handle_sigsuspend patch
2003-01-14 19:55:42 +00:00
Christopher Faylor
2673d5f209
* fhandler_dsp.cc (fhandler_dsp::ioctl): Add limited support for
...
SNDCTL_DSP_GETFMTS.
2003-01-14 02:08:35 +00:00
David Starks-Browning
bd14387749
update link for commercial inquiries
2003-01-13 22:17:01 +00:00
Christopher Faylor
c901fafc73
Change location.
2003-01-13 21:11:19 +00:00
David Starks-Browning
337e9503bb
Reformatting.
...
New location for Open Source Definition.
2003-01-13 21:06:12 +00:00
David Starks-Browning
d3939f963a
cygcheck output should be attached, not pasted
...
(diff thanks to Igor Pechtchanski)
2003-01-13 20:51:49 +00:00
David Starks-Browning
cb95f738e9
update commercial references from Cygnus to Red Hat, Inc.
2003-01-13 20:44:05 +00:00
Christopher Faylor
9f0d3f37f3
* ntdll.h: Fix typo.
2003-01-13 03:55:00 +00:00
Corinna Vinschen
7f129d8753
* uname.cc (uname): Use cygwin_gethostname() to retrieve hostname.
2003-01-12 11:45:54 +00:00
Corinna Vinschen
ab2dbccc11
* sec_acl.cc (search_ace): Use id == -1, instead of < 0, as wildcard.
...
(setacl): Start the search for a matching default at the next entry.
Invalidate the type of merged entries instead of clearing it.
Use well_known_creator for default owner and owning group and do
not try to merge non-default and default entries in these cases.
(getacl): Recognize well_known_creator for default owner and group.
(acl_worker): Improve errno settings and streamline the nontsec case.
* security.cc (write_sd): Remove the call to set_process_privilege.
(alloc_sd): If the owner changes, call set_process_privilege and return
immediately on failure. Change inheritance rules: on new directories add
inherit only allow ACEs for creator_owner, creator_group and everyone.
Preserve all inheritances through chmod and chown calls. Introduce
isownergroup to implement the uid == gid case, to keep the inheritance
code simple. Do not initialize owner_sid and group_sid and stop using
the variable psd.
2003-01-12 11:38:51 +00:00
Danny Smith
a545b16de6
* mingwex/math/llround.c: Correct function name and
...
change return value to long long.
2003-01-11 10:52:20 +00:00
Danny Smith
c3e8272116
* include/winnt.h (IMAGE_FILE_AGGRESIVE_WS_TRIM
...
IMAGE_FILE_LARGE_ADDRESS_AWARE): Add defines.
2003-01-11 06:06:46 +00:00
Danny Smith
18d821e186
* include/accctrl.h (enum _SE_OBJECT_TYPE): Add
...
SE_REGISTRY_WOW64_32KEY.
2003-01-11 04:08:15 +00:00
Danny Smith
82409119c0
* include/commctrl.h (HDN_GETDISPINFO[AW]: Add defines.
...
(tagNMHDDISPINFO[AW}: Add structures and typedefs.
2003-01-11 03:43:14 +00:00
Christopher Faylor
68115c74c5
* net.cc: Use gethostname define from winsock2.h.
2003-01-11 01:29:18 +00:00
Christopher Faylor
7ba5067f87
* include/winsock2.h: Remove gethostname from INSIDE_CYGWIN protection.
2003-01-11 01:28:37 +00:00
Christopher Faylor
e3abf9861a
* path.cc: Unrevert below reversion except for mount_info::conv_to_posix_path
...
part.
2003-01-10 21:24:04 +00:00
Corinna Vinschen
df2caa88ca
* path.cc: Revert patch from 2003-01-09 to normalize a windows path
...
rather than converting to posix.
2003-01-10 20:25:47 +00:00
Corinna Vinschen
dc8d11f52e
* autoload.cc (gethostname): Make call optional, return 1 if function
...
can't get loaded.
* net.cc (cygwin_gethostname): Call GetComputerName if return value
of gethostname is non-zero.
2003-01-10 12:55:47 +00:00
Corinna Vinschen
e136dbc297
Split ChangeLog, create ChangeLog-2002.
...
Fix copyright dates.
2003-01-10 12:32:49 +00:00
Corinna Vinschen
70d61f30fe
* cygwin.din: add asprintf and vasprintf, as well as the reentrant
...
versions and underscore variants.
* include/cygwin/version.h: bump CYGWIN_VERSION_API_MINOR.
2003-01-10 12:19:17 +00:00
Corinna Vinschen
a771176720
* net.cc (cygwin_gethostname): Fix call to wsock function gethostname.
2003-01-10 11:58:52 +00:00
Corinna Vinschen
e410614acf
* setfacl (usage): Remove double ":" for mask and other.
2003-01-10 11:39:19 +00:00
Christopher Faylor
d5223b2b0a
* cygthread.cc (cygthread::cygthread): Be more noisy about odd condition.
...
* miscfuncs.cc (low_priority_sleep): Sleep in regular priority if that's what
we're currently running at.
2003-01-10 03:13:45 +00:00
Thomas Pfaff
65f207e8b9
Apply pthread_types_patch
2003-01-09 21:14:33 +00:00
Thomas Pfaff
09cbb9d6b7
Apply pthread_cancel_patch
2003-01-09 20:57:54 +00:00
Thomas Pfaff
72fcbc3ee6
Add pthread_mutex tests
2003-01-09 20:51:55 +00:00
Thomas Pfaff
5d68d1de45
Applied pthread_mutex patch
2003-01-09 20:50:23 +00:00
Thomas Pfaff
ed9fe4559c
Applied cond_init patch
2003-01-09 20:40:44 +00:00
Corinna Vinschen
93353aee63
* fhandler_disk_file.cc (num_entries): Return 2 as link count if
...
directory unreadable.
2003-01-09 17:15:44 +00:00
Corinna Vinschen
3eb27a4e9e
* security.cc (get_nt_attribute): Always return -1 when read_sd()
...
fails.
(get_file_attribute): Set permissions to 0 and owner/group to -1
if security descriptor is unreadable.
2003-01-09 11:44:17 +00:00
Christopher Faylor
85ba109de7
Use isdirsep rather than SLASH_P throughout.
...
* path.cc (iscygdrive): Disallow /cygdrive\x.
(normalize_posix_path): "Normalize" a windows path, if detected, rather than
converting to posix.
* fhandler_serial.cc (fhandler_serial::tcsetattr): Add support and capability
checking for B230400 bitrate.
(fhandler_serial::tcgetattr): Add support for B230400 bitrate.
* include/sys/termios.h: Add B230400 definition for Posix support of 230.4Kbps.
2003-01-09 08:22:05 +00:00
Corinna Vinschen
f1c9046a57
* mkpasswd.cc (current_user): Create.
...
(usage): Reorganize to support Win95/98/ME.
(main): Add option for -c. Reorganize to parse options for
Win95/98/ME and to call current_user. Add username in gecos field
on Win95/98/ME.
* mkgroup.cc (enum_groups): Print gid with %u.
(print_win_error): Create from passwd.cc.
(current_group): Create.
(usage): Reorganize to support Win95/98/ME.
(main): Add option for -c. Reorganize to parse options for
Win95/98/ME and to call current_group.
2003-01-08 17:38:11 +00:00
Danny Smith
5e1b786d38
* lib/dxguid.c: Don't #include <objbase.h>.
...
* include/unknwn.h: Partially revert change of 2002-12-26.
Don't include <ole2.h>.
2003-01-08 10:55:02 +00:00
Danny Smith
4961ecb3d9
2003-01-08 Danny Smith <dannysmith@users.sourceforge.net>
...
* lib/dinput.c: Don't #include <objbase.h>.
2003-01-08 Bart Oldeman <bartoldeman@users.sourceforge.net>
* include/windows.h (ole2.h):Do #include for
__WATCOMC__.
2003-01-08 09:15:53 +00:00
Danny Smith
68dea33819
* include/ctype.h (__isascii): Don't cast arg to unsigned.
...
(iswascii): Likewise. Correct mask.
* include/wctype.h (iswascii): Don't cast arg to unsigned.
Correct mask
2003-01-07 21:05:13 +00:00
Danny Smith
36c1e6d171
* include/winuser.h (SPI_SETWHEELSCROLLLINES) Add define.
...
* include/zmouse.h (WHEEL_DELTA): Guard against prior
definition.
(WHEEL_PAGESCROLL): Likewise.
(SPI_SETWHEELSCROLLLINES): Define, if not already done.
2003-01-06 00:22:48 +00:00
Danny Smith
066a41acdf
* include/winuser.h ((SPI_SETWHEELSCROLLLINES) Add define.
...
* include/zmouse.h (WHEEL_DELTA): Guard against prior
definition.
(WHEEL_PAGESCROLL): Likewise.
(SPI_SETWHEELSCROLLLINES): Define, if not already done.
2003-01-06 00:18:45 +00:00
Christopher Faylor
cbdbe9d766
* pinfo.cc (_pinfo::commune_send): Use myself->lock rather than just lock when
...
leaving.
2003-01-05 06:36:50 +00:00
Danny Smith
8b052ae3f6
* include/winuser.h (SPI_GETWHEELSCROLLLINES) Add define.
...
(WHEEL_PAGESCROLL): Add define.
2003-01-05 02:49:15 +00:00
Danny Smith
f2f59a268f
* include/commctrl.h (tagNMTOOLBAR[AW]): Replace obsolete struct
...
names tagTBNOTIFY[AW] and typedefs. Add defines for backward
compatability. Add RECT field. Add UNICODE mappings for new
names.
(tagNMREBARCHEVRON): Add struct and typedefs for
_WIN32_IE >= 0x0500.
2003-01-04 11:52:06 +00:00
Danny Smith
61b9f92918
* include/commctrl.h (TOOLINFO[AW]: Update structures.
...
(LVHITTESTINFO): Likewise.
* include/wingdi.h (GRADIENT_TRIANGLE): Add structure.
(GRADIENT_RECT): Likewise.
2003-01-04 10:58:36 +00:00
Danny Smith
670867158e
2003-01-03 Bang Jun-Young <junyoung@netbsd.org>
...
* include/winerror.h (ERROR_OPLOCK_NOT_GRANTED,
ERROR_INVALID_OPLOCK_PROTOCOL, ERROR_SOURCE_ELEMENT_EMPTY,
ERROR_DESTINATION_ELEMENT_FULL, ERROR_ILLEGAL_ELEMENT_ADDRESS,
ERROR_MAGAZINE_NOT_PRESENT, ERROR_DEVICE_REINITIALIZATION_NEEDED,
ERROR_DEVICE_REQUIRES_CLEANING, ERROR_DEVICE_DOOR_OPEN,
ERROR_DEVICE_NOT_CONNECTED, ERROR_NOT_FOUND, ERROR_NO_MATCH,
ERROR_SET_NOT_FOUND, ERROR_NO_TRACKING_SERVICE,
ERROR_JOURNAL_DELETE_IN_PROGRESS, ERROR_JOURNAL_NOT_ACTIVE,
ERROR_JOURNAL_ENTRY_DELETED, ERROR_ONLY_IF_CONNECTED,
ERROR_NOT_SUPPORTED_ON_SBS, ERROR_SERVER_SHUTDOWN_IN_PROGRESS,
ERROR_MUTUAL_AUTH_FAILED, ERROR_TIME_SKEW, ERROR_DEVICE_REMOVED,
RPC_S_INVALID_ASYNC_HANDLE, RPC_S_INVALID_ASYNC_CALL,
RPC_X_PIPE_CLOSED, RPC_X_PIPE_DISCIPLINE_ERROR, RPC_X_PIPE_EMPTY,
ERROR_CANT_ACCESS_FILE, ERROR_CANT_RESOLVE_FILENAME,
ERROR_WMI_GUID_NOT_FOUND, ERROR_WMI_INSTANCE_NOT_FOUND,
ERROR_WMI_ITEMID_NOT_FOUND, ERROR_WMI_TRY_AGAIN, ERROR_WMI_READ_ONLY,
ERROR_WMI_SET_FAILURE, ERROR_TRANSPORT_FULL, ERROR_FILE_OFFLINE,
ERROR_REMOTE_STORAGE_NOT_ACTIVE, ERROR_REMOTE_STORAGE_MEDIA_ERROR,
ERROR_NOT_A_REPARSE_POINT, ERROR_REPARSE_ATTRIBUTE_CONFLICT,
ERROR_INVALID_REPARSE_DATA, ERROR_REPARSE_TAG_INVALID,
ERROR_REPARSE_TAG_MISMATCH, ERROR_FILE_ENCRYPTED,
ERROR_FILE_NOT_ENCRYPTED, ERROR_NOT_EXPORT_FORMAT,
ERROR_CTX_WINSTATION_NAME_INVALID, ERROR_CTX_INVALID_PD,
ERROR_CTX_PD_NOT_FOUND, ERROR_CTX_WD_NOT_FOUND,
ERROR_CTX_CLOSE_PENDING, ERROR_CTX_NO_OUTBUF,
ERROR_CTX_MODEM_INF_NOT_FOUND, ERROR_CTX_INVALID_MODEMNAME,
ERROR_CTX_MODEM_RESPONSE_ERROR, ERROR_CTX_MODEM_RESPONSE_TIMEOUT,
ERROR_CTX_MODEM_RESPONSE_NO_CARRIER,
ERROR_CTX_MODEM_RESPONSE_NO_DIALTONE, ERROR_CTX_MODEM_RESPONSE_BUSY,
ERROR_CTX_MODEM_RESPONSE_VOICE, ERROR_CTX_TD_ERROR,
ERROR_CTX_WINSTATION_NOT_FOUND, ERROR_CTX_WINSTATION_ALREADY_EXISTS,
ERROR_CTX_WINSTATION_BUSY, ERROR_CTX_BAD_VIDEO_MODE,
ERROR_CTX_GRAPHICS_INVALID, ERROR_CTX_NOT_CONSOLE,
ERROR_CTX_CLIENT_QUERY_TIMEOUT, ERROR_CTX_CONSOLE_DISCONNECT,
ERROR_CTX_CONSOLE_CONNECT, ERROR_CTX_SHADOW_DENIED,
ERROR_CTX_WINSTATION_ACCESS_DENIED, ERROR_CTX_INVALID_WD,
ERROR_CTX_SHADOW_INVALID, ERROR_CTX_SHADOW_DISABLED,
ERROR_CTX_CLIENT_LICENSE_IN_USE, ERROR_CTX_CLIENT_LICENSE_NOT_SET,
ERROR_CTX_LICENSE_NOT_AVAILABLE, ERROR_CTX_LICENSE_CLIENT_INVALID,
ERROR_CTX_LICENSE_EXPIRED, ERROR_DS_MEMBERSHIP_EVALUATED_LOCALLY,
ERROR_DS_NO_ATTRIBUTE_OR_VALUE, ERROR_DS_INVALID_ATTRIBUTE_SYNTAX,
ERROR_DS_ATTRIBUTE_TYPE_UNDEFINED, ERROR_DS_ATTRIBUTE_OR_VALUE_EXISTS,
ERROR_DS_BUSY, ERROR_DS_UNAVAILABLE, ERROR_DS_NO_RIDS_ALLOCATED,
ERROR_DS_NO_MORE_RIDS, ERROR_DS_INCORRECT_ROLE_OWNER,
ERROR_DS_RIDMGR_INIT_ERROR, ERROR_DS_OBJ_CLASS_VIOLATION,
ERROR_DS_CANT_ON_NON_LEAF, ERROR_DS_CANT_ON_RDN,
ERROR_DS_CANT_MOD_OBJ_CLASS, ERROR_DS_CROSS_DOM_MOVE_ERROR,
ERROR_DS_GC_NOT_AVAILABLE, ERROR_SHARED_POLICY,
ERROR_POLICY_OBJECT_NOT_FOUND, ERROR_POLICY_ONLY_IN_DS,
ERROR_DS_ADMIN_LIMIT_EXCEEDED, ERROR_DS_DS_REQUIRED,
ERROR_DS_SAM_INIT_FAILURE, ERROR_DS_SENSITIVE_GROUP_VIOLATION,
ERROR_DS_CANT_MOD_PRIMARYGROUPID, ERROR_DS_INVALID_GROUP_TYPE,
ERROR_DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN,
ERROR_DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN,
ERROR_DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER,
ERROR_DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER,
ERROR_DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER,
ERROR_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER,
ERROR_DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER,
ERROR_DS_HAVE_PRIMARY_MEMBERS, ERROR_DS_SAM_NEED_BOOTKEY_PASSWORD,
ERROR_DS_SAM_NEED_BOOTKEY_FLOPPY, ERROR_DS_CANT_START,
ERROR_DS_INIT_FAILURE, ERROR_SAM_INIT_FAILURE, ERROR_DS_GC_REQUIRED,
ERROR_DS_LOCAL_MEMBER_OF_LOCAL_ONLY,
ERROR_DS_NO_FPO_IN_UNIVERSAL_GROUPS,
ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED):
Add missing error codes.
2003-01-03 22:57:37 +00:00
Christopher Faylor
f3afe99b0b
* dtable.h (dtable::in_vfork_cleanup): New function. True if vfork cleanup
...
needed.
* dtable.cc (dtable::vfork_parent_restore): Remove assertion.
* pipe.cc (fhandler_pipe::close): Don't close read_state during fork_fixup
since it wasn't inherited.
2003-01-03 06:20:23 +00:00
Danny Smith
7b061fd844
* include/stdlib.h (_osver, _winver, _winmajor,
...
_winminor): Declare as direct imports from dll if
__DECLSPEC_SUPPORTED.
2003-01-03 05:02:18 +00:00
Danny Smith
c467d1396f
* lib/kernel32.c (GetCurrentFiber): Remove blank input field in
...
asm code.
(GetFiberData): Likewise.
2003-01-03 00:04:21 +00:00
Danny Smith
c7ceb003b2
* include/winnt.h (GetCurrentFiber): Remove blank input field
...
in asm code.
(GetFiberData): Likewise.
2003-01-02 23:30:27 +00:00
Danny Smith
6e745f9fb8
* include/winerror.h (ERROR_DIFFERENT_SERVICE_ACCOUNT,
...
ERROR_EXE_MACHINE_TYPE_MISMATCH, ERROR_HOOK_TYPE_NOT_ALLOWED,
ERROR_INVALID_KEYBOARD_HANDLE, ERROR_INVALID_PRINT_MONITOR,
ERROR_PRINT_MONITOR_IN_USE, ERROR_PRINTER_HAS_JOBS_QUEUED,
ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION,
ERROR_SUCCESS_REBOOT_REQUIRED, ERROR_SUCCESS_RESTART_REQUIRED,
ERROR_TIMEOUT, OR_INVALID_OID, OR_INVALID_OXID,
OR_INVALID_SET, RPC_X_INVALID_PIPE_OPERATION): Add missing
error codes.
Re-sort codes..
2003-01-02 11:17:16 +00:00
Danny Smith
fa40ef7337
* include/winspool.h (PRINTER_INFO_6): Add.
...
Reported by: Mat Nieuwenhoven <matnieuw@users.sourceforge.net>
2003-01-02 03:47:21 +00:00
Christopher Faylor
2665fb1594
* passwd.cc (getpwuid_r32): Revert previous change.
2003-01-02 00:03:23 +00:00
Christopher Faylor
8619b42be7
* sysconf.cc (sysconf): Return arbitrary values for _SC_GETGR_R_SIZE_MAX,
...
_SC_LOGIN_NAME_MAX, _SC_GETPW_R_SIZE_MAX.
* passwd.cc (getpwuid_r32): Add uid/gid fields to size check calculation.
2003-01-01 18:12:49 +00:00
Danny Smith
353549d744
2003-01-01 Danny Smith <dannysmith@users.sourceforge.net>
...
* pseudo-reloc.c (do_pseudo_reloc): Make static.
* pseudo-reloc-list.c: New file.
* crt1.c (_pei386_runtime_relocator): Declare.
(__mingw_CRTStartup): Call it.
* dllcrt1.c (_pei386_runtime_relocator): Declare.
(DllMainCRTStartup): Call it.
* Makefile.in: Add pseudo-reloc.o pseude-reloc-list.o to
libmingw32.a.
2003-01-01 Egor Duda <deo@logos-m.ru>
* pseudo-reloc.c: New file.
2003-01-01 10:00:39 +00:00
Christopher Faylor
c71ed71f59
* exceptions.cc (events_init): Display name of mutex on failure.
2002-12-30 23:08:35 +00:00
Christopher Faylor
f715db84b6
* windows.cc (setitimer): Return ENOSYS on invalid argument.
2002-12-30 22:38:13 +00:00
Danny Smith
31fa4af548
2002-12-30 Hartmut Honisch <hhonisch@users.sourceforge.net>
...
* include/winbase.h (NMPWAIT_WAIT_FOREVER): Cast to DWORD.
* lib/ntdll.def (NtConnectPort, NtOpenEvent,
NtRequestWaitReplyPort, NtWaitForSingleObject,ZwConnectPort,
ZwOpenEvent, ZwRequestWaitReplyPort, ZwWaitForSingleObject):
Add stubs.
2002-12-30 08:48:23 +00:00
Danny Smith
c8eb82fe9f
* include/wingdi.h (wglGetLayerPaletteEntries): Correct
...
prototype. Thanks to: Joe Krahn <jkrahn at nc dot rr dot com>.
ChangeLog: Remove some whitespace.
2002-12-30 06:48:50 +00:00
Christopher Faylor
d5de4b3f30
remove from trunk
2002-12-28 07:33:14 +00:00
Christopher Faylor
d3bffb5b94
* Makefile.in: Add devices.gperf.
...
* devices.h: New file.
* devices.gperf: Ditto.
2002-12-28 07:15:13 +00:00
Christopher Faylor
caf27c0155
* fhandler_termios.cc (fhandler_termios::line_edit): Perform echo before input
...
is accepted or suffer a "race".
2002-12-28 06:30:47 +00:00
Nathanael Nerode
92ed67dd7e
Move ChangeLog entry from toplevel, where it didn't belong.
2002-12-27 23:27:00 +00:00
Christopher Faylor
66dcfc4498
* fhandler.h (fhandler_tty_master::set_winsize): Declare new function.
...
* fhandler_console.cc (fhandler_console::send_winch_maybe): If appropriate,
call tty master function to handle screen size change.
* fhandler_tty.cc (fhandler_tty_master::set_winsize): New function.
(fhandler_tty_master::init): Call set_winsize to set initial screen size.
2002-12-27 05:31:30 +00:00
Christopher Faylor
3bfed277d6
* fhandler_tty.cc (fhandler_tty_master::init): Set initial size of tty to that
...
of console in which tty is operating.
(process_input): Semi-revert previous change. Need to just use current
terminfo settings since this function is running in a thread, blocked when the
terminfo changes.
2002-12-27 03:54:59 +00:00
Christopher Faylor
740c81ed4e
correct typo
2002-12-27 03:50:57 +00:00
Christopher Faylor
46b73ef192
* fhandler.h (fhandler_termios::line_edit): Replace third argument with
...
passed-in termios struct.
* fhandler_console.cc (fhandler_console::read): Prior to loop, make a copy of
current termios for passing to line_edit prior so that all characters are
processed consistently.
* fhandler_tty.cc (fhandler_pty_master::write): Ditto.
(process_input): Make a copy of curent termios prior to read for use in
subsequent line_edit.
* fhandler_termios.cc (fhandler_termios::line_edit): Replace third parameter
with passed-in termios struct and use it throughout rather than the data from
the current fhandler_termios class.
2002-12-27 03:50:29 +00:00