Christopher Faylor
293ce8104d
* path.cc (special_name): Accommodate all special names with extensions.
2003-08-17 16:33:15 +00:00
Danny Smith
597b518cb9
Add ChangeLog entry for last commit.
2003-08-17 08:55:28 +00:00
Danny Smith
5ca7a646d5
2003-08-17 Martin Fuchs <Martin-Fuchs@gmx.net>
...
* include/commctrl.h (TreeView_GetScrollTime,
TreeView_SetScrollTime): Define macros.
* include/winuser.h (GetShellWindow): Add prototype.
* include/objidl.h (STGMEDIUM): Correct lpszFileName type.
2003-08-17 08:47:37 +00:00
Corinna Vinschen
b723879025
* dump_setup.cc (package_find): Don't stop searching on missing
...
file list.
(package_list): Ditto.
* dump_setup.cc: (package_list): Make output terse unless
verbose requested. Fix formatting.
(package_find): Ditto.
2003-08-16 09:09:09 +00:00
Corinna Vinschen
200f243c42
* cygcheck.cc (main): Fix some formatting and help text printing.
...
* cygcheck.cc (find_package,list_package): New global
variables.
(usage): Add "--find-package" and "--list-package" options,
reformat output.
(longopts, opts): Add "--find-package" and "--list-package"
options.
(main): Process the "--find-package" and "--list-package"
flags. Add new semantic checks. Add calls to find_package()
and list_package().
* dump_setup.cc: Fix header comment.
(match_argv): Change return type to int to distinguish
between real matches and default ones.
(open_package_list): New static function.
(check_package_files): Factor out opening the package list
file into open_package_list().
(get_packages): New static function.
(dump_setup): Factor out getting a list of packages into
get_packages().
(package_list, package_find): New global functions.
2003-08-15 20:26:11 +00:00
Corinna Vinschen
92d897cde2
* mmap.cc (mmap64): Avoid crash if file size is less than requested
...
map length.
2003-08-15 12:05:08 +00:00
Corinna Vinschen
dae37d5d84
* regtool.cc (usage): Add missing linefeed. Move example to --help
...
text. Fix forward slash description.
2003-08-15 08:58:54 +00:00
Danny Smith
b98580a716
2003-08-15 Martin Fuchs <Martin-Fuchs@gmx.net>
...
* include/shguid.h (CLSID_DragDropHelper, IID_IDropTargetHelper,
IID_IDragSourceHelper): Declare.
* lib/shell32.c (CLSID_DragDropHelper, IID_IDropTargetHelper,
IID_IDragSourceHelper): Define.
2003-08-15 03:04:25 +00:00
Danny Smith
37f0dc7a05
2003-08-15 Andrew Greenwood <lists@silverblade.co.uk>
...
* include/wingdi.h (DEVMODE[AW]) Correct structure definition.
* include/ddk/ntapi.h (LPC_TYPE): Add LPC_CONNECTION_REFUSED.
* include/ddk/winddk.h (IRP_*): Add constants as anonymous enum.
2003-08-15 02:19:54 +00:00
Corinna Vinschen
e2b1a74c13
* dump_setup.cc (check_package_files): Fix extra '/' in filename.
...
Resize command buffer. Fix buffer overflow bug.
2003-08-13 19:37:40 +00:00
Corinna Vinschen
6763d47b1e
* path.cc (special_name): Add checks for some specials followed by
...
a "." and a FIXME comment.
2003-08-13 17:28:00 +00:00
Corinna Vinschen
ae89a49602
* cygwin.din: Accomodate change from cygwin_lstat to lstat.
...
* syscalls.cc: Add defines to avoid declaration issues when
renaming cygwin_lstat back to lstat.
(lstat): Reverted name change from cygwin_lstat.
2003-08-13 11:28:42 +00:00
Corinna Vinschen
c86c10b803
* include/sys/param.h (NBBY): Define if not defined.
...
* include/sys/param.h (setbit): Add new bitmap related macro.
(clrbit): Likewise.
(isset): Likewise.
(isclr): Likewise.
(howmany): Add new counting/rounding macro.
(rounddown): Likewise.
(roundup): Likewise.
(roundup2): Likewise.
(powerof2): Likewise
(MIN): Add macro for calculating min.
(MAX): Add macro for calculating max.
2003-08-12 10:23:40 +00:00
Danny Smith
6c7560c901
* lib/uuid.c (CGID_Explorer, CGID_ShellDocView,
...
CGID_ShellServiceObject): Remove definitions.
* lib/shell32.c (CGID_ShellServiceObject): Add definition.
Correct last ChangeLog entry for lib/shell32.def.
2003-08-10 09:19:06 +00:00
Christopher Faylor
e41630b08a
* dump_setup.cc (dump_setup): Check for the existence of the package list file.
...
Rework slightly to use static buffer for popen commands.
2003-08-10 01:07:04 +00:00
Danny Smith
46258d6fb8
2003-08-10 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/shlobj.h (SHELLSTATE): Add structure.
(SHGetSetSettings): Add prototype.
(SHGetSettings): Add prototype.
* lib/user32.def (SHGetSetSettings): Add stub.
2003-08-10 Phil Krylov <likewolf@users.sourceforge.net>
* include/commctrl.h (HDM_ORDERTOINDEX): Add define.
(Header_OrderToIndex): Add macro.
(Header_GetOrderArray): Add macro.
* include/commdlg.h (FR_MATCHALEFHAMZA,
FR_MATCHDIAC, FR_MATCHKASHIDA): Add defines.
2003-08-10 Martin Fuchs <Martin-Fuchs@gmx.net>
* include/commctrl.h (TVM_GETSCROLLTIME,
TVM_SETSCROLLTIME): Add defines.
2003-08-10 00:40:01 +00:00
Christopher Faylor
58d4b72d33
* dump_setup.cc (version_len): New static variable.
...
(could_not_access,directory_exists): New static function.
(file_exists): Ditto.
(check_package_files): Ditto.
(dump_setup): Check the contents of each package if check_files is true and
output the result in the "Status" column. Flush output after each package.
* dump_setup.cc (dump_setup): Remove redundant null check. Add informative
message if package info not found.
2003-08-09 16:32:22 +00:00
Christopher Faylor
9d77d53601
* include/cygwin/version.h: Bump DLL minor number to 3.
2003-08-09 16:32:03 +00:00
Christopher Faylor
5c65fa0200
* include/stdint.h: Correctly define INT32_MIN.
2003-08-08 19:30:41 +00:00
Christopher Faylor
b344f1876c
* grp.cc (read_group): Set __group32.gr_mem pointer back to &null_ptr after
...
free() is called.
2003-08-08 19:28:34 +00:00
Christopher Faylor
0601b11fb6
fix typo
2003-08-06 03:39:36 +00:00
Christopher Faylor
8440f55d74
typo
2003-08-06 03:22:18 +00:00
Christopher Faylor
16f9bc1323
* Makefile.common: Hmm. Older compilers seem to need -nostdinc.
2003-08-06 02:35:33 +00:00
Christopher Faylor
c6f80f3e29
* Makefile.common: Don't send -nostdinc++ with g++.
2003-08-06 02:06:43 +00:00
Christopher Faylor
4b154cc1b3
* Makefile.in: Rework to accommodate new speclib arguments.
...
* speclib: Rework to extract everything from libcygwin.a rather than building
things from existing object files.
2003-08-06 01:40:12 +00:00
Christopher Faylor
4423d92489
* path.cc (cygdrive_getmntent): Do not skip over drives of type
...
DRIVE_REMOVABLE.
* fhandler.cc (fhandler_base::lseek): Be more paranoid when constructing
offsets from 64 bit value.
* syscalls.cc (logout): Avoid temp buffer memcpy since new scheme does not
require it.
(utmp_data): Rework as a macro which returns a pointer into a buffer.
(getutent): Use new buffer allocation mechanism to grab a utmp buffer.
(getutid): Ditto.
(pututline): Ditto.
2003-08-05 04:49:44 +00:00
Christopher Faylor
3fea2e4087
* fhandler_disk_file.cc (fhandler_cygdrive::readdir): Do not change 'errno' if
...
end of directory condition is encountered as per SUSv2.
* fhandler_proc.cc (fhandler_proc::readdir): Ditto.
* fhandler_process (fhandler_process::readdir): Ditto.
* fhandler_registry (fhandler_registry::readdir): Ditto.
2003-08-05 03:04:28 +00:00
Christopher Faylor
2f631ebc94
change default for --change-default-prefix
2003-08-05 01:06:22 +00:00
David Starks-Browning
90b3d5dcb6
New canonical location.
2003-08-04 10:40:28 +00:00
Danny Smith
5060d48ee7
* include/shlobj.h (SHELLFLAGSTATE): Add structure.
...
(SHGetInstanceExplorer): Correct return type.
(SHGetFolderPath[AW]: Likewise.
Thanks to Magnus Olsen <greatlord@sourceforge.users.net>
for report.
2003-08-03 09:09:07 +00:00
Danny Smith
be21429f2f
2003-08-01 Danny Smith <dannysmith@users.sourceforge.net>
...
* lib/test.c: Include winldap.h, ntldap.h, winber.h.
2003-08-01 Filip Navara <xnavara@volny.cz>
* include/winldap.h: New file.
* include/ntldap.h: New file.
* include/winber.h: New file.
* lib/winldap32.def: New file.
2003-08-01 09:11:39 +00:00
Danny Smith
7d18037f8f
2003-08-01 Danny Smith <dannysmith@users.sourceforge.net>
...
* include/ddk/atm.h: Remove stray '.';
2003-08-01 Gisle Vanem <gvanem@broadpark.no>
* include/ddk/winddk.h; Remove trailing ';' from macro expressions,
throughout. Add () around macro expressions with cast returns,
throughout.
2003-08-01 01:06:26 +00:00
Joshua Daniel Franklin
4b8283ec80
Screwed up ChangeLog
2003-07-31 21:12:11 +00:00
Joshua Daniel Franklin
0da026c397
* effectively.sgml: New file, "Using Cygwin Effectively with Windows".
2003-07-31 21:06:55 +00:00
Danny Smith
49c12c3f53
2003-7-31 Martin Fuchs <Martin-Fuchs@gmx.net>
...
* include/shlobj.h (SFGAO_COMPRESSED): Add define.
(SFGAOF,SHGDNF): Add typedef's.
(SHCONTF): Extend enum.
2003-07-31 10:25:56 +00:00
Danny Smith
de03e10ca5
* include/shellapi.h: Include all structs within pshpack2.h/
...
poppack.h block.
2003-07-31 05:40:39 +00:00
Christopher Faylor
b9621e8d94
* dcrt0.cc (_dll_crt0): Move strace.microseconds initialization to after
...
pthread initialization.
(dll_crt0_1): i.e., here.
2003-07-30 04:46:07 +00:00
Christopher Faylor
8e2315f07d
* include/cygwin/version.h: Bump DLL minor number to 2.
2003-07-28 21:14:25 +00:00
Christopher Faylor
d2466c7aa0
* fhandler_base.cc (fhandler_base::readv): Rework to properly return number of
...
bytes from read.
2003-07-28 21:13:17 +00:00
Danny Smith
e816a74f80
* include/winuser.h (ASFW_ANY, LSFW_LOCK, LSFW_UNLOCK,
...
LWA_COLORKEY, LWA_ALPHA): Guard with _WIN32_WINNT,
_WIN32_WINDOWS, not WINVER.
(AllowSetForegroundWindow,LockSetForegroundWindow,
SetLayeredWindowAttributes): Likewise.
(GetLayeredWindowAttributes,UpdateLayeredWindow): Add prototypes.
* lib/user32.def (GetLayeredWindowAttributes,UpdateLayeredWindow):
Add stubs.
2003-07-26 11:58:24 +00:00
Christopher Faylor
035df9eff5
* mount.cc (do_mount): Issue warning when using managed mount option on
...
non-empty directory.
2003-07-26 05:38:51 +00:00
Christopher Faylor
df04ae29b2
* exceptions.cc (ctrl_c_handler): Send SIGHUP when events occur only if there
...
is a tty associated with the process. Send SIGHUP on CTRL_LOGOFF_EVENT.
* fhandler_tty.cc (fhandler_tty_slave::open): Adjust console open handle
counter regardless of whether this is a pty or tty.
(fhandler_tty_slave::open): Ditto.
(fhandler_tty_slave::dup): Ditto.
(fhandler_tty_common::set_close_on_exec): Ditto.
(fhandler_tty_master::init_console): Decrement console open handle counter
after init since it will now be handled by all tty open.
* syscalls.cc (setsid): Rework debugging output slightly.
2003-07-26 04:53:59 +00:00
Christopher Faylor
ddb6762155
* configure.in: Use 'install-sh -c'.
...
* configure: Regenerate.
2003-07-26 01:53:18 +00:00
Christopher Faylor
4b2bb1425e
revert erroneous checkin
2003-07-26 01:52:52 +00:00
Christopher Faylor
c2af0de226
* Makefile.in: Only use localhost when building mingw with distcc or gcc won't
...
be able to find .exp files on other hosts.
2003-07-26 01:51:39 +00:00
Danny Smith
ffe3e7ef4f
2003-07-26 Eric R. Krause <ekrause_98@users.sourceforge.net>
...
* include/onjidl.h (IMalloc): Fix typo.
2003-07-26 01:01:03 +00:00
Christopher Faylor
8c21a4cdfb
preliminary checkin
2003-07-26 00:49:12 +00:00
Christopher Faylor
d9cbe316d5
preliminary checkin
2003-07-26 00:43:57 +00:00
Christopher Faylor
5ed664d4a6
preliminary checkin
2003-07-26 00:28:59 +00:00
Christopher Faylor
9ddd929f68
preliminary checkin
2003-07-26 00:10:48 +00:00
Christopher Faylor
7f4773b3ef
* configure.in: Always use install-sh.
...
* configure: Regenerate.
2003-07-25 23:52:30 +00:00
Christopher Faylor
5d66faab67
* include/cygwin/socket.h: Conditionalize [AP]F_INET6 define.
2003-07-25 17:57:51 +00:00
Christopher Faylor
6f8c86aec5
* Makefile.in (OBSOLETE_FUNCTION): Add fdopen.
2003-07-25 17:42:08 +00:00
Christopher Faylor
86ed5c8821
* cygwin.din: Export _fdopen64
...
* Makefile.in (NEW_FUNCTIONS): Add _fdopen64 -> fdopen translation.
* include/cygwin/version.h: Bump api minor number.
* ntdll.h: Remove (now) duplicate FILE_SYNCHRONOUS_IO_NONALERT definition.
2003-07-25 16:13:12 +00:00
Danny Smith
468f9fa2fe
* include/dkk/ntifs.h: Fix typo in guard for
...
#pragma GCC system_header.
2003-07-24 20:55:48 +00:00
Christopher Faylor
1fbeb8274f
* environ.cc (check_case_init): Use strncasematch.
...
* cygwin.din: Export __mempcpy.
* cygwin/version.h: Bump api minor number.
2003-07-24 19:33:14 +00:00
Danny Smith
b57a74b210
* include/objidl.h (PropVariant): Add CHAR cVal field
...
to union.
(FMTID_SummaryInformation, FMTID_DocSummaryInformation,
FMTID_UserDefinedProperties): Declare.
2003-07-22 22:48:00 +00:00
Danny Smith
f7ef885903
* include/winbase.h (GetModuleHandleEx[AW]): Add prototypes.
2003-07-22 22:36:03 +00:00
Danny Smith
1058b66e9a
* include/winbase.h (DUPLICATE_CLOSE_SOURCE,
...
DUPLICATE_SAME_ACCESS): Remove defines.
(HANDLE_FLAG_INHERIT, HANDLE_FLAG_PROTECT_FROM_CLOSE): Sync with
ddk/ntapi.h defines.
(SEM_*) : Likewise.
* include/winnt.h (COMPRESSION_*, ACCESS_*, SYSTEM_*): Sync with
ddk/ntifs.h defines.
(FILE_*): Likewise.
(MEM_IMAGE, SEC_*): Likewise.
(DUPLICATE_CLOSE_SOURCE, DUPLICATE_SAME_ACCESS,
DUPLICATE_SAME_ATTRIBUTES): Sync with ddk/winddk.h defines.
(TOKEN_*): Sync with ddk/ntifs.h defines.
* include/ddk/ntapi.h: Add comments noting definitions in
winbase.h.
* include/ddk/ntifs.h: Add comments noting definitions in
winnt.h.
* include/ddk/winddk.h: Add comments noting definitions in
winnt.h.
2003-07-22 22:21:27 +00:00
Corinna Vinschen
d432ac751b
* mmap.cc: Use proper format specifiers for _off64_t and size_t in
...
format strings passed to syscall_printf () and debug_printf ()
throughout.
2003-07-21 13:06:49 +00:00
Christopher Faylor
522483e4f6
* Makefile.common (CFLAGS_COMMON): Remove -march=i386.
2003-07-18 16:40:59 +00:00
Danny Smith
00314d7e16
* include/winnt.h (FILE_*): Sync with ddk/winddk.h.
...
* include/winioctl.h (FILE_*): Sync with ddk/winddk.h.
2003-07-18 10:21:01 +00:00
Pierre Humblet
b4ece40c0f
2003-07-18 Pierre Humblet <pierre.humblet@ieee.org>
...
* security.cc (verify_token): Fix white space and style.
Use type bool instead of BOOL and char. Use alloca
instead of malloc and free for my_grps.
2003-07-18 02:14:42 +00:00
Danny Smith
a817d5a835
2003-07-17 Pierre Humblet <pierre.humblet@ieee.org>
...
* include/mmsystem.h (TIME_KILL_SYNCHRONOUS): Add define.
2003-07-17 08:23:06 +00:00
Corinna Vinschen
fc2843ca96
* sysconf.cc (sysconf): Fix OPEN_MAX patch. Return page size on
...
_SC_PAGESIZE again.
2003-07-17 07:35:16 +00:00
Christopher Faylor
5b429f2674
update copyright
2003-07-17 05:27:03 +00:00
Danny Smith
a13fa879dd
Clean up warnings in ddk.
...
* include/ddk/atm.h (_ATM_AAL_OOB_INFO): Add _ANONYMOUS_UNION,
conditional on __cplusplus.
* include/ddk/scsi.h: Add _ANONYMOUS_UNION and _ANONYMOUS_STRUCT
defines, throughout.
(_CDB): Add _ANONYMOUS_UNION, conditional on __cplusplus.
* include/ddk/cfg.h (_PNP_VETO_TYPE): Remove extra comma.
* include/ddk/cfgmgr32.h: Change C++ comment style to ISO C.
* include/ddk/ddkmapi.h (_DDLOCKOUT): Add _ANONYMOUS_UNION defines.
* include/ddk/hidpi.h: Add _ANONYMOUS_UNION and _ANONYMOUS_STRUCT
defines, throughout.
* include/ddk/ndis.h: Add _ANONYMOUS_UNION and _ANONYMOUS_STRUCT
defines, throughout. Remove trailing semicolon from *_S 'structure'
macro expansion, throughout. Remove trailing semicolon from
DECLARE_UNKNOWN_STRUCT macro expansion.
* include/ddk/ndiswan.h (_NDIS_WAN_COMPRESS_INFO): Add
_ANONYMOUS_UNION.
* include/ddk/ntapi.h (_PROCESS_DEVICEMAP_INFORMATION,
_PROCESS_SESSION_INFORMATION): Add _ANONYMOUS_UNION.
* include/ddk/ntddcdrm.h (CDROM_TOC_CD_TEXT_DATA_BLOCK):
Add _ANONYMOUS_UNION.
* include/ddk/ntdddisk.h: Add _ANONYMOUS_UNION, throughout.
* include/ddk/ntddmou.h: Add _ANONYMOUS_UNION, throughout.
* include/ddk/ntifs.h: Add _ANONYMOUS_UNION, throughout.
(ZwQueryObject): Change 2nd param to OBJECT_INFORMATION_CLASS, to
match proto in ntapi.h.
(ZwSetInformationObject): Likewise.
* include/ddk/srb.h (SCSI_REQUEST_BLOCK): Add _ANONYMOUS_UNION.
(SCSI_ADAPTER_CONTROL_TYPE): Add __extension__.
* include/ddk/tdikrnl.h (TDI20_CLIENT_INTERFACE_INFO): Add
_ANONYMOUS_UNION and _ANONYMOUS_STRUCT.
* include/ddk/usb.h (USB): Add _ANONYMOUS_UNION.
* include/ddk/usbcamdi.h (USBCAMD_CamControlFlags): Remove
last comma.
* include/ddk/video.h (STATUS_BLOCK): Add _ANONYMOUS_UNION.
* include/ddk/winddk.h (DECLARE_INTERNAL_OBJECT): Remove
trailing semicolon when expanding macro.
(GENERAL_LOOKASIDE_S): Likewise.
Add _ANONYMOUS_UNION and _ANONYMOUS_STRUCT, throughout.
Change inline to __inline, throughout.
* include/ddk/winnt4.h: Change inline to __inline, throughout.
2003-07-16 21:49:02 +00:00
Christopher Faylor
908a2a2bc0
* pathnames.sgml: Use correct registry key. Clarify '@' operation.
...
* ntsec.sgml: Reword references to "ntsec patch".
2003-07-16 02:12:00 +00:00
Corinna Vinschen
ea3ba11499
* cygheap.h (class cygheap_user): Use INVALID_HANDLE_VALUE as invalid
...
value for tokens.
* syscalls.cc (seteuid32): Ditto. Set new_token to process token if
process token is suitable.
* uinfo.cc (uinfo_init): Initialize tokens in cygheap user info
to INVALID_HANDLE_VALUE.
* cygheap.h (enum impersonation): Delete.
(cygheap_user::impersonation_state): Delete.
(cygheap_user::current_token): New.
(cygheap_user::issetuid): Modify to use current_token.
(cygheap_user::token): Ditto.
(cygheap_user::deimpersonate): Ditto.
(cygheap_user::reimpersonate): Ditto.
(cygheap_user::has_impersonation_tokens): Ditto.
(cygheap_user::close_impersonation_tokens): Ditto.
* security.cc (cygwin_set_impersonation_token): Always set the token.
(verify_token): Change type of gsid to cygpsid.
(get_file_attribute): Use the effective ids.
* syscalls.cc (seteuid32): Modify to use cygheap_user::current_token.
* uinfo.cc (uinfo_init) Do not set cygheap->user.impersonation_state.
2003-07-14 17:04:21 +00:00
Danny Smith
8330615ded
2003-07-13 Casper S. Hornstrup <chorns@users.sourceforge.net>
...
* include/ddk/ntifs.h (KeInsertQueueApc): Make return type
BOOLEAN. Name parameter 4 PriorityBoost and make it of type
KPRIORITY.
* include/ddk/winddk.h (_KPCR): Put IDT field on next line.
* include/ddk/winddk.h (_IO_STATUS_BLOCK, _IRP, _OWNER_ENTRY,
_ERESOURCE, _IMAGE_INFO, _CREATE_DISK, _DISK_SIGNATURE, _KPCR_TIB):
Apply _ANONYMOUS_UNION to anonymous unions and _ANONYMOUS_STRUCT
to anonymous structs.
2003-07-13 03:41:46 +00:00
Christopher Faylor
9e8ac0ae35
* pinfo.cc (_pinfo::commune_send): Fix bounds test so that poll of
...
communicating pid actually stops eventually.
2003-07-12 21:37:07 +00:00
Danny Smith
a6674ee61b
* include/winnt.h (PVOID): Move to before HANDLE typedef.
...
* include/winuser.h (mouse_event): Correct type of fifth param,
Thanks to: Andrew Jones <guln at users dot sourceforge dot net>
2003-07-12 09:26:43 +00:00
Earnie Boyd
57552a7378
* include/winnt.h (HANDLE): Define based on STRICT filter.
...
(THREAD_BASE_PRIORITY_MIN): Use parens around negative value.
(THREAD_BASE_PRIOIRTY_IDLE): Ditto.
2003-07-11 11:56:00 +00:00
Christopher Faylor
e47d564835
* path.cc (get_device_number): Remove special com? consideration.
...
(special_chars): Make static.
(special_introducers): New.
(special_char): Allow specified valid_chars args.
(fnunmunge): Handle aux-like filenames correctly.
(special_name): Add con, conin$, conout$.
(mount_item::fnmunge): Use __small_sprintf return value to calculate
increments.
2003-07-11 00:54:46 +00:00
Christopher Faylor
30811232c7
* include/cygwin/version.h: Bump DLL minor number to 1.
2003-07-10 02:33:27 +00:00
Christopher Faylor
2f5cab7bb2
* fhandler_proc.cc (format_proc_stat): Use correctly sized constants for
...
filling in zeros on 98.
2003-07-10 02:09:24 +00:00
Christopher Faylor
f1a4b6b59a
* include/cygwin/version.h: Bump DLL minor number to 1.
2003-07-10 01:58:39 +00:00
Christopher Faylor
cf38615c3b
* fhandler_proc.cc (fhandler_proc::fill_filebuf): Allocate more space for stat
...
buffer.
(format_proc_stat): Reorganize to accumulate and report on all cpus.
2003-07-10 01:09:24 +00:00
Christopher Faylor
ab3dc80d9e
* sysconf.cc (sysconf): Return processors online rather than bitmask for
...
_SC_NPROCESSORS_ONLN.
2003-07-09 23:59:47 +00:00
Christopher Faylor
4d782b426a
* cygheap.cc (creturn): Set appropriate errno when out of memory.
...
(ccalloc): Only issue system_printf when debugging.
* dtable.cc (dtable::extend): Only allocate 100 * the incremental growth size
max. Set errno appropriately.
(dtable::build_fhandler): Check for error from set_name.
* fhandler.cc (fhandler_base::set_name): Set errno and return error on OOM.
* fhandler.h (fhandler_base::set_name): Change to bool.
* fhandler_process.cc (format_process_stat): Fix formatting.
* resource.cc (getrlimit): Return greater of OPEN_MAX or fd table size.
* sysconf.cc (sysconf): Ditto.
2003-07-09 01:33:06 +00:00
Danny Smith
49a14729eb
* include/commctrl.h (NMTVDISPINFO[AW]): Replace obsolete struct
...
names _TV_DISPINFO[AW] and typedefs. Add defines for backward
compatability. Thanks to Magnus Olsen <greatlord@users.sf.net>
for report.
2003-07-08 11:11:58 +00:00
Christopher Faylor
a711a5af45
* rmsym: Don't use ranlib.
2003-07-07 05:32:24 +00:00
Christopher Faylor
c0a6fcd75b
* newsym: Reenable removal of tmp directory. Just use ar to generate archive
...
index.
* Makefile.in: Don't send ranlib to newsym.
2003-07-07 05:30:33 +00:00
Christopher Faylor
0e5db0bfe8
* newsym: Create objects that are closer to those created by dlltool so as not
...
to confuse --export-all-symbols.
* rmsym: Be a little more accepting of object filenames now that dlltool can
create different format files.
2003-07-07 05:23:35 +00:00
Christopher Faylor
c522b9078c
* newsym: Oops. Revert below change.
2003-07-07 00:14:58 +00:00
Christopher Faylor
88a628163e
* newsym: Use correct prefix for generating imports.
...
* pinfo.cc (_pinfo::commune_send): Don't wait forever for a response from
another process.
2003-07-06 23:24:13 +00:00
Christopher Faylor
f346ea770f
update copyright
2003-07-06 21:45:21 +00:00
Christopher Faylor
35738f040e
* winsup.api/known_bugs.tcl: Remove gethostid01 from list of known bugs.
2003-07-06 21:40:38 +00:00
Christopher Faylor
0d043e9aac
white space
2003-07-06 20:13:48 +00:00
Christopher Faylor
b671715358
* syscalls.cc (gethostid): Set thread affinity so that results are predictable.
2003-07-06 20:08:42 +00:00
Christopher Faylor
e2723b750a
* Makefile.in: Remove .dat files when cleaning.
2003-07-06 19:25:40 +00:00
Christopher Faylor
d9a7d28a3f
* Makefile.in: Remove .d files when cleaning.
2003-07-06 19:24:31 +00:00
Corinna Vinschen
f2d3c47b14
* mmap.cc (list::match): Add parameters to return valid address and
...
length back to munmap(). Evaluate intersection between given
area and mapped area and return it, if any.
(mmap64): On regular files, don't allow mappings beginning beyond
EOF. Return with errno set to ENXIO instead.
(munmap): Rewrite SUSv3 conformant. Check if given memory area is
valid. Unmap all maps inside given memory area. Don't return error
if no mapping has been unmapped.
2003-07-05 18:59:35 +00:00
Corinna Vinschen
4b2cbaeefd
* fhandler.h (fhandler_socket::get_connect_state): New method to
...
return socket connection state.
* fhandler_socket.cc (dup): Copy socket connect state to new file
handle.
* net.cc (cygwin_rcmd): Mark file handles of sockets returned by
rcmd() as CONNECTED state.
(cygwin_rexec): Similarly for rexec().
(socketpair): Mark both ends of a new socket pair as CONNECTED.
2003-07-05 18:20:13 +00:00
Christopher Faylor
49806b9b06
fix typo
2003-07-04 17:37:59 +00:00
Corinna Vinschen
6694f3054e
* mmap.cc (fhandler_disk_file::mmap): Fix address test.
2003-07-04 09:06:54 +00:00
Christopher Faylor
baf77a53b0
* mount.cc (struct opt): Remove posix option.
2003-07-04 03:20:22 +00:00
Christopher Faylor
08604f02bc
* mount.cc (longopts): Add long "options" keyword.
...
(opts): Add -o option.
(usage): Display -o option.
(struct opt): New.
(concat3): New function.
(main): Handle -o flag.
2003-07-04 03:11:18 +00:00
Christopher Faylor
d108f312f9
* path.cc (fillout_mntent): Change "posix" to "managed".
2003-07-04 03:08:26 +00:00
Christopher Faylor
3f21478315
* fhandler.h (FH_ENC): New enum.
...
(fhandler_base::get_encoded): New function.
(fhandler_base::set_encoded): Ditto.
* fhandler_disk_file.cc (fhandler_disk_file::opendir): Set encoded flag in
fhandler, as appropriate.
(fhandler_disk_file::readdir): Unmunge filename as appropriate based on new
encoding flag.
* path.cc (normalize_posix_path): Don't punt on files with colons.
(special_char): New function.
(mount_item::fnmunge): Ditto.
(fnunmunge): Ditto.
(special_name): Ditto.
(mount_item::build_win32): Avoid drive considerations when file is encoded.
(mount_info::conv_to_win32_path): Handle encoded filenames.
(mount_info::conv_to_posix_path): Ditto.
(fillout_mntent): Add posix string when directory is encoded.
* path.h (fnunmunge): Declare.
(path_conv::is_encoded): Declare.
2003-07-04 03:07:01 +00:00