bc5b63edab* malloc.cc (DEFAULT_MMAP_THRESHOLD): Set high to avoid mmaps. * pipe.cc (fhandler_pipe::close): Avoid extraneous this->.
Christopher Faylor
2003-02-07 06:15:10 +0000
4a9cbef09d* cygcheck.cc (common_apps): Add some more apps. * path.cc (get_cygdrive): Correctly set system flag.
Christopher Faylor
2003-02-07 04:51:26 +0000
45b314b1ad* configure.in: Make w32api directory optional. * configure: Regenerate.
Christopher Faylor
2003-02-07 03:45:15 +0000
500ed83f45* include/locale.h: Include stddef.h for definition of NULL.
Danny Smith
2003-02-07 02:13:55 +0000
5a5996f93eSource Navigator is now on sourceforge...
Keith Seitz
2003-02-06 20:36:19 +0000
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.
Corinna Vinschen
2003-02-06 14:01:54 +0000
f865f0c479* setup-net.sgml: Add "setup-maxmem" section
Joshua Daniel Franklin
2003-02-06 02:52:14 +0000
d238c1b453* path.cc: Change 'to_posix_p' to 'to_posix' throughout. (conv_path_list_buf_size): Accommodate relative paths.
Christopher Faylor
2003-02-05 21:12:58 +0000
110363c8a22003-02-05 Chris Demetriou <cgd@broadcom.com>
Jeff Johnston
2003-02-05 17:10:43 +0000
3a357eadba2003-02-05 Chris Demetriou <cgd@broadcom.com>
Jeff Johnston
2003-02-05 17:01:33 +0000
5017a3dafa2003-02-05 Jonathan Larmour <jifl@eCosCentric.com>
Jeff Johnston
2003-02-05 16:52:34 +0000
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.
Corinna Vinschen
2003-02-05 16:15:22 +0000
cadd065b63* include/sys/cygwin.h: Use C-style comments.
Christopher Faylor
2003-02-05 14:14:26 +0000
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.
Corinna Vinschen
2003-02-05 13:47:47 +0000
b7b6c58a20Correct typo in last changelog entry.
Danny Smith
2003-02-04 22:21:45 +0000
ccbb9a6490* include/shlwapi.h (PathRelativePathTo[AW]): Correct protototypes. Thanks to: John Dallaway <jld@ecoscentric.com>.
Danny Smith
2003-02-04 22:17:38 +0000
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.
Thomas Pfaff
2003-02-04 19:49:39 +0000
53c384f206* winsup.api/pthread/cancel11.c: New test. * winsup.api/pthread/cancel12.c: Ditto.
Thomas Pfaff
2003-02-04 19:34:21 +0000
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.
Corinna Vinschen
2003-02-04 19:26:01 +0000
0daf256192* grp.cc (internal_getgroups): Do not return without closing the process handle.
Corinna Vinschen
2003-02-04 17:53:08 +0000
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.
Corinna Vinschen
2003-02-04 14:58:04 +0000
335556d58bEliminate most unneeded this-> pointers throughout.
Christopher Faylor
2003-02-04 03:01:17 +0000
ad36f7d19a2003-02-03 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2003-02-03 21:29:45 +0000
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.
Corinna Vinschen
2003-02-03 15:55:20 +0000
f0f3ea68f3* fhandler_socket.cc (fhandler_socket::recvfrom): Return buffer length and don't set errno in case of WSAEMSGSIZE error. (fhandler_socket::recvmsg): Ditto.
Corinna Vinschen
2003-02-03 15:34:52 +0000
46c1de5bf7* cygwinenv.sgml: Add section for 'CYGWIN codepage:[ansi|oem]'
Joshua Daniel Franklin
2003-02-03 00:30:45 +0000
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.
Christopher Faylor
2003-02-01 18:41:29 +0000
05d2a9a4fb* include/commctrl.h (TCM_*): Add missing defines.
Danny Smith
2003-02-01 11:38:31 +0000
93dfea56672003-02-01 Jesus Alvarez <jesus_alvarez@users.sourceforge.net> Danny Smith <dannysmith@users.sourceforge.net>
Danny Smith
2003-02-01 08:53:17 +0000
a5a93a62b2* dlfcn.cc (dlerror): Only report load errors once per error.
Christopher Faylor
2003-02-01 05:00:15 +0000
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.
Christopher Faylor
2003-02-01 04:48:03 +0000
aa0a224816* hppa.h (ldwa, ldda): Add ordered opcodes.
John David Anglin
2003-01-31 21:24:32 +0000
a74181ee012003-01-31 Michael Snyder <msnyder@redhat.com>
Jeff Johnston
2003-01-31 20:44:26 +0000
b85498d44c2003-01-31 Michael Snyder <msnyder@redhat.com>
Jeff Johnston
2003-01-31 20:35:24 +0000
7a94fe2a0f2003-01-31 Frank Ch. Eigler <fche@redhat.com>
Frank Ch. Eigler
2003-01-31 19:09:32 +0000
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.
Christopher Faylor
2003-01-31 17:00:42 +0000
485d85bfa7* shared.cc (shared_info::heap_chunk_size): Use correct variable when reading HKLM.
Christopher Faylor
2003-01-31 15:02:40 +0000
28c098e3f42003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
Danny Smith
2003-01-31 08:28:44 +0000
704ce46198* fhandler_registry.cc (fhandler_registry::exists): Fix off-by-one error when inspecting path.
Christopher Faylor
2003-01-30 23:15:15 +0000
ca8def3d9a* config.if: Copy from GCC.
Alexandre Oliva
2003-01-30 11:59:17 +0000
ba6e108396* lib/getopt.c: Allow environment variable control of POSIXLY_INCORRECT behavior.
Christopher Faylor
2003-01-30 01:14:30 +0000
4700b8293a2003-01-29 Jason Tishler <jason@tishler.net>
Jeff Johnston
2003-01-29 23:29:30 +0000
01e3c89709* fhandler_socket.cc (fhandler_socket::accept): On successful execution set connection state of returned socket to CONNECTED.
Corinna Vinschen
2003-01-28 15:33:50 +0000
dfb366da5a* passwd.cc (pwdgrp::parse_passwd): Be more unforgiving about non-numeric fields.
Christopher Faylor
2003-01-27 17:00:17 +0000
ca6018a0d3fix typo
Christopher Faylor
2003-01-27 15:58:15 +0000
d2f9f641d92003-01-27 Danny Smith <dannysmith@users.sourceforge.net>
Danny Smith
2003-01-27 07:15:17 +0000
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.
Christopher Faylor
2003-01-27 00:31:30 +0000
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.
Christopher Faylor
2003-01-27 00:16:01 +0000
285d6b97b1include/ * hashtab.h (htab_alloc_with_arg, htab_free_with_arg): Add new types. (struct htab): Add alloc_arg, alloc_with_arg_f, free_with_arg_f. (htab_create_alloc_ex): New prototype. (htab_set_functions_ex): New prototype. libiberty/ * hashtab.c (htab_create_alloc_ex): New function. (hatab_set_functions_ex): New function. (htab_delete, htab_expand): Support alternate allocation functions.
Daniel Jacobowitz
2003-01-26 07:33:29 +0000
232cca6b0c* include/math.h (tgamma): Correct typo in comment.
Danny Smith
2003-01-26 07:04:04 +0000
9a75162166* uinfo.cc (pwdgrp::load): Regularize strace output. Add warning for CreateFile failure.
Christopher Faylor
2003-01-26 06:42:40 +0000
989c97fe14* mingwex/mingw-fseek.c (INLINE): Remove define. (__mingw_is_win9x): Remove static inline function. (_mingw_fwrite): Use _osver instead of __mingw_is_win9x.
Danny Smith
2003-01-26 06:38:43 +0000
5da947eacaFix typo.
Christopher Faylor
2003-01-26 06:27:26 +0000
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
Christopher Faylor
2003-01-26 06:02:34 +0000
c913339563* pwdgrp.cc (pwdgrp::parse_group): Fix off-by-one problem in allocating gr_mem.
Christopher Faylor
2003-01-26 05:55:29 +0000
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.
Christopher Faylor
2003-01-26 05:38:38 +0000
c9b99d0d2aclarify
Christopher Faylor
2003-01-25 16:38:56 +0000
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.
Corinna Vinschen
2003-01-25 10:36:46 +0000
45dbfc2611* fhandler_console.cc (fhandler_console::send_winch_maybe): Reset scroll region if size changes.
Christopher Faylor
2003-01-25 01:17:51 +0000
81632e9e55* include/ras.h (RASCONN[AW]): Add dwSessionId for (WINVER >= 0x501).
Danny Smith
2003-01-25 00:47:25 +0000
bb9f07bc54* include/ras.h (RASCONN[AW]): Guard szDeviceType, szDeviceName fields with WINVER >= 0x400. Add dwFlags, luid fields for WINVER >= 0x501.
Danny Smith
2003-01-25 00:41:45 +0000
0127ae4041Add sh2e support
Nick Clifton
2003-01-24 15:46:04 +0000
8bbcd9a1a5* libc/include/sys/unistd.h: Add setregid and setreuid declarations for Cygwin.
Corinna Vinschen
2003-01-24 15:25:24 +0000
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.
Corinna Vinschen
2003-01-24 15:23:15 +0000
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.
Christopher Faylor
2003-01-24 03:53:46 +0000
09a8842674Add missing entry.
Christopher Faylor
2003-01-24 02:41:28 +0000
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.
Christopher Faylor
2003-01-24 01:51:39 +0000
8e61c0495e* winsup.api/mmaptest03.c (main): Mark variables as volatile to avoid optimization induced problems.
Christopher Faylor
2003-01-24 01:41:30 +0000
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.
Christopher Faylor
2003-01-23 21:21:28 +0000
d8f0f146b8* Makeifle.in: Use ALL_CFLAGS to build test programs so that correct libraries and other options are used.
Christopher Faylor
2003-01-23 21:14:56 +0000
2d771b3dd9* lib/ws2_32.def (getaddrinfo, freeaddrinfo and getnameinfo): Add stubs. * include/ws2tcpip.h (IPV6_*) Add IPPROTO_IPV6 level socket options.
Danny Smith
2003-01-23 20:43:47 +0000
2037688a5d* cygrun.c: Move from here to ../testsuite. * Makefile.in: Remove cygrun.exe dependencies.
Corinna Vinschen
2003-01-22 15:23:23 +0000
19876644c7* cygrun.c: Move here from ../cygwin. * Makefile.in: Build cygrun.exe. * winsup.api/winsup.exp: Expect cygrun.exe in $rootme.
Corinna Vinschen
2003-01-22 15:18:58 +0000
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.
Corinna Vinschen
2003-01-22 10:43:39 +0000
13afd798c3* Makefile.in: Find tcl library in the right place.
Christopher Faylor
2003-01-22 03:58:28 +0000
5cd5638f57* winsup.api/pthread/cancel9.c: Make child pid static global. (main): Wait in mainthread until child process has terminated.
Thomas Pfaff
2003-01-21 21:36:31 +0000
f2137182fb* winsup.api/pthread/cancel9.c: Make child pid static global. (main): Wait in mainthread until child process has terminated.
Thomas Pfaff
2003-01-21 21:34:24 +0000
00d1a4bb20* winsup.api/pthread/cancel9.c: Wait in mainthread until child process has terminated.
Thomas Pfaff
2003-01-21 20:51:14 +0000