Christopher Faylor
9ce2a54f70
winsup:
...
* configure.in: Configure winsup/cygserver regardless of cross_host.
* configure: Regenerate.
winsup/cygwin:
* configure.in: Define LIBSERVER regardless of cross_host.
* configure: Regenerate.
2011-01-29 06:41:28 +00:00
Corinna Vinschen
93a4d9d97c
* fhandler_socket.cc (fhandler_socket::wait_for_events): Call
...
pthread_testcancel in case of timeout to enable pthread_cancel
on waiting thread.
2011-01-28 11:17:29 +00:00
Corinna Vinschen
b5ca0d7271
* include/features.h (__STDC_ISO_10646__): Move to newlib's
...
sys/features.h.
2011-01-27 11:55:51 +00:00
Corinna Vinschen
40aca06884
* fhandler_disk_file.cc (fhandler_base::fstat_by_nfs_ea): Fix
...
computation of st_blocks.
(fhandler_base::fstat_helper): Fix formatting.
2011-01-26 10:55:13 +00:00
Corinna Vinschen
cd06f7049b
* include/features.h (__STDC_ISO_10646__): Define. Add comment.
2011-01-24 16:27:35 +00:00
Corinna Vinschen
a1c35b8b65
* syscalls.cc (rename): Fix permission problem with symlinks on NFS.
...
Rework how NtOpenFile gets called to make it more readable. Change
comment.
2011-01-21 13:13:00 +00:00
Corinna Vinschen
2aba945c95
* exec.cc: Include pinfo.h.
...
* winf.h: Move definitions of _P_PATH_TYPE_EXEC and _P_MODE from here...
* pinfo.h: ...to here.
(_P_PATH_TYPE_EXEC): Redefine to be bigger than _P_SYSTEM.
(_P_MODE): Redefine so as not to mask out _P_SYSTEM.
* spawn.cc (spawnlp): Add _P_PATH_TYPE_EXEC flag in call to spawnve.
(spawnlpe): Ditto.
(spawnvp): Ditto.
2011-01-20 11:09:21 +00:00
Corinna Vinschen
9b68968b21
* spawn.cc (av::fixup): Reenable #! handling for all exec functions.
...
Return ENOEXEC in !p_type_exec case only for unrecognized files.
Fix comment formatting.
2011-01-19 14:59:10 +00:00
Corinna Vinschen
1393f63206
* exec.cc (execlp): Add missing _P_PATH_TYPE_EXEC flag in call to
...
spawnve.
2011-01-19 10:30:39 +00:00
Corinna Vinschen
26b070c0cf
* exec.cc: Rearrange functions in alphabetical order.
...
(_execve): Drop temporary define and drop export alias.
(execl): Call spawnve.
(execle): New function.
(execlp): New function.
(execv): Call spawnve.
(execve): Drop converting NULL envp to emtpy envp.
(execvp): Call spawnve.
(execvpe): Drop converting NULL envp to emtpy envp. Call spawnve.
(fexecve): Call spawnve.
* spawn.cc (spawnve): Convert NULL envp to emtpy envp. Remove outdated
comment.
(spawnlp): Call spawnve.
(spawnlpe): Ditto.
(spawnvp): Ditto.
(spawnvpe): Fix formatting.
2011-01-19 10:28:39 +00:00
Corinna Vinschen
17133a85de
* exec.cc (strccpy): Move function from here...
...
* strfuncs.cc (strccpy): ...to here.
* string.h (strccpy): Declare.
* winsup.h (strccpy): Drop declaration.
2011-01-19 09:41:54 +00:00
Corinna Vinschen
808aae3d13
* errno.cc (errmap): Add error codes for invalid binaries.
...
* exec.cc (execvp): Call spawnve with _P_PATH_TYPE_EXEC flag
from here.
(execvpe): Ditto.
* spawn.cc (spawn_guts): Filter _P_PATH_TYPE_EXEC from mode and
store in p_type_exec. Call av::fixup with addtional p_type_exec
argument.
(spawnve): Check for filtered mode.
(spawnvpe): Add _P_PATH_TYPE_EXEC flag when calling spawnve.
(av::fixup): Accept additional bool parameter p_type_exec. Only check
for script if p_type_exec is true.
* winf.h (_P_PATH_TYPE_EXEC): Define.
(_P_MODE): Define.
(av::fixup): Declare with additional bool parameter.
2011-01-19 09:15:17 +00:00
Corinna Vinschen
fc660168bf
* fhandler_proc.cc (format_proc_partitions): Fix compiler warning.
2011-01-17 14:31:30 +00:00
Corinna Vinschen
be37165114
* path.cc (path_conv::check): Don't follow reparse point symlinks if
...
PC_SYM_NOFOLLOW_REP flag is set.
(cygwin_conv_path): Set PC_SYM_NOFOLLOW_REP flag when converting from
POSIX to Win32.
* path.h (enum pathconv_arg): Define PC_SYM_NOFOLLOW_REP flag.
2011-01-17 14:19:39 +00:00
Corinna Vinschen
483e9d0022
* fhandler_proc.cc (proc_tab_cmp): Fix typo in comment.
...
(fhandler_proc::fill_filebuf): Handle return value of 0 from format
function as error.
(format_proc_stat): Set errno when returning 0 size.
(format_proc_partitions): Rewrite method to fetch partition info.
2011-01-17 13:38:06 +00:00
Corinna Vinschen
49d31b4e82
Fix typo, fix copyright
2011-01-13 14:00:00 +00:00
Corinna Vinschen
07c43238cf
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Alwasy set
...
st_size of directories to 0. Explain why.
2011-01-13 13:50:02 +00:00
Corinna Vinschen
cf8d5ec5ae
Really check in now
2011-01-13 13:48:12 +00:00
Corinna Vinschen
96195d804a
* new-features.sgml (ov-new1.7.8): Add "new API" paragraph.
2011-01-12 13:16:46 +00:00
Corinna Vinschen
c049f0f6ff
* posix.sgml: Add madvise to BSD list.
2011-01-12 13:09:31 +00:00
Corinna Vinschen
6147b7f8a3
* cygwin.din (madvise): Export posix_madvise as madvise.
...
* include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR.
* include/sys/mman.h: Define madvise constants, keep Linux-specific
constants undefined.
(madvise): Declare.
2011-01-12 13:01:43 +00:00
Corinna Vinschen
667f187146
* fhandler.h (struct part_t): New type.
...
(class fhandler_dev_floppy): Convert partitions to part_t pointer.
Add lock_partition method.
* fhandler_floppy.cc (fhandler_dev_floppy::lock_partition): New method
to implement ondemand partition locking.
(fhandler_dev_floppy::write_file): Call lock_partition from here if
writing failed due to a potential write restriction on a disk
partition.
(fhandler_dev_floppy::open): Don't lock partitions here.
(fhandler_dev_floppy::close): Keep track of partition handle reference
count. Close handles and remove partitions pointer ony if count is 0.
(fhandler_dev_floppy::dup): Just copy partitions pointer and increment
reference count.
2011-01-12 09:16:51 +00:00
Corinna Vinschen
95a5c969ab
* fhandler.h (MAX_PARTITIONS): New definition.
...
(class fhandler_dev_floppy): Add partitions array member. Add close
method.
* fhandler_floppy.cc (fhandler_dev_floppy::fhandler_dev_floppy): Zero
out partitions array.
(fhandler_dev_floppy::open): Fix "entire disk" condition for call to
DeviceIoControl (FSCTL_ALLOW_EXTENDED_DASD_IO).
When opening disks for writing, call DeviceIoControl (FSCTL_LOCK_VOLUME)
on all affected disk partitions starting with Vista.
(fhandler_dev_floppy::close): New method.
(fhandler_dev_floppy::dup): Duplicate handles in partitions, if any.
* wincap.h (wincaps::has_restricted_raw_disk_access): New element.
* wincap.cc: Implement above element throughout.
2011-01-11 14:50:45 +00:00
Corinna Vinschen
b7d4651e3e
* termios.cc (cfgetospeed, cfgetispeed): Constify argument per POSIX.
...
* include/sys/termios.h (cfgetospeed, cfgetispeed): Declare functions.
Move macros after declarations and make conditional on !__cplusplus.
2011-01-11 10:09:23 +00:00
Corinna Vinschen
cd441f06e2
* cygtls.cc (_cygtls::init_thread): Call _REENT_INIT_PTR. Drop setting
...
current locale and calling srand48.
2011-01-11 08:05:51 +00:00
Corinna Vinschen
0a18555e4f
* cygcheck.cc (main): don't imply -d from -s option to cygcheck
2011-01-10 12:51:02 +00:00
Keith Marshall
98ac2593b0
Correct hexadecimal formatting of double and long double values.
2011-01-07 22:57:00 +00:00
Christopher Faylor
969dd6dff9
* faq-setup.xml (faq.setup.cli): Correct description of -pubkey option
2011-01-05 16:02:00 +00:00
Christopher Faylor
8b0be52ba0
* ChangeLog-2010: Create from ChangeLog.
...
* ChangeLog: Start fresh.
2011-01-03 01:53:19 +00:00
Christopher Faylor
2be50cacae
* cygtls.cc: Include stdlib.h.
...
(_cygtls::init_thread): Seed random number generator on a per-thread basis.
2010-12-29 06:33:30 +00:00
Chris Sutcliffe
c27459e675
2010-12-27 David Byron <dbyron0@users.sourceforge.net>
...
* include/winioctl.h (STORAGE_BUS_TYPE): Define.
2010-12-27 21:26:32 +00:00
Chris Sutcliffe
d01906b839
2010-12-27 Ozkan Sezer <sezero@users.sourceforge.net>
...
* include/dirent.h (dd_handle): Define as intptr_t.
2010-12-27 21:19:42 +00:00
Chris Sutcliffe
48defac76a
2010-12-27 Seth Jackson <sethj@users.sourceforge.net>
...
* include/winbase.h (GetComputerNameEx): Define.
2010-12-27 21:12:35 +00:00
Chris Sutcliffe
c65bfdfadc
2010-09-22 Ryan Lortie <desrt@desrt.ca>
...
* include/winbase.h (TzSpecificLocalTimeToSystemTime): Define.
2010-12-27 21:07:20 +00:00
Chris Sutcliffe
c3abd2abe8
2010-11-08 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
...
* tlssup.c (__dyn_tls_init): Use an integer variable to iterate between
__xd_a and __xd_z.
2010-12-27 21:01:13 +00:00
Chris Sutcliffe
8eb8d27274
2010-12-27 Markus Koenig <basilo@users.sourceforge.net>
...
* include/gdiplus/gdipluspixelformats.h (PixelFormatIndexed,
PixelFormatGDI, PixelFormatAlpha, PixelFormatPAlpha,
PixelFormatExtended, PixelFormatCanonical, PixelFormatUndefined,
PixelFormatDontCare, PixelFormat1bppIndexed, PixelFormat4bppIndexed,
PixelFormat8bppIndexed, PixelFormat16bppGrayScale,
PixelFormat16bppRGB555, PixelFormat16bppRGB565, PixelFormat16bpp1555,
PixelFormat24bppRGB, PixelFormat32bppRGB, PixelFormat32bppARGB,
PixelFormat32bppPARGB, PixelFormat48bppRGB, PixelFormat64bppARGB,
PixelFormat64bppPARGB, PixelFormatMax): Fix definition.
2010-12-27 20:39:42 +00:00
Chris Sutcliffe
be26f8bde5
2010-10-20 Seth Jackson <sethj@users.sourceforge.net>
...
* include/commctrl.h (TC_ITEMHEADER[AW]): Rename to TCITEMHEADER[AW].
Add defines for backward compatibility.
2010-12-27 20:31:59 +00:00
Chris Sutcliffe
036f657a2b
2010-12-27 Johann Hanne <jonnyh33@users.sourceforge.net>
...
* include/oaidl.h (GetTypeComp, GetTypeComp, IsMatchingType): Fix defintion.
* include/objidl.h (AddConnection, ReleaseConnection): Ditto.
* include/winbase.h (EnumResourceLanguagesA, EnumResourceLanguagesW,
EnumResourceNamesA, EnumResourceNamesW, EnumResourceTypesA,
EnumResourceTypesW): Ditto.
* include/winnt.h (_SYSTEM_POWER_CAPABILITIES): Ditto.
2010-12-27 20:20:15 +00:00
Chris Sutcliffe
83304a3ecc
2010-12-27 Seth Jackson <sethj@users.sourceforge.net>
...
* include/basetsd.h: (INT8, UINT8, INT16, UINT16): Define.
2010-12-27 19:59:54 +00:00
Chris Sutcliffe
39e8c3f232
2010-12-27 Paul Sokolovsky <pfalcon@users.sf.net>
...
* include/bdatypes.h: Add missing semicolons.
2010-12-27 19:15:29 +00:00
Christopher Faylor
c8d1848d07
* include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR to 234.
2010-12-27 17:29:25 +00:00
Christopher Faylor
589e430baa
cygwin:
...
* cygwin.din: Export program_invocation_name and
program_invocation_short_name.
* dcrt0.cc: Set program_invocation*name to correct values, based on
argv[0].
* globals.cc (program_invocation_name): Define.
(program_invocation_short_name): Ditto
newlib:
* libc/include/sys/errno.h (program_invocation_name): Declare.
(program_invocation_short_name): Ditto.
2010-12-26 21:11:38 +00:00
Corinna Vinschen
9296807af3
* security.cc (alloc_sd): Really fix erroneous inheritence entry
...
duplication now. Add more comments for clarity.
2010-12-16 10:31:09 +00:00
Corinna Vinschen
e445b7c336
* sec_acl.cc (getacl): Ensure that the default acl contains at least
...
DEF_(USER|GROUP|OTHER)_OBJ entries.
2010-12-15 14:11:03 +00:00
Corinna Vinschen
38042584f3
* security.cc (alloc_sd): Fix erroneous inheritence entry duplication.
2010-12-15 13:56:32 +00:00
Corinna Vinschen
e52961c403
* syscalls.cc (check_dir_not_empty): Never count more than 3 directory
...
entries.
2010-12-12 15:32:45 +00:00
Christopher Faylor
f646aeb049
* init.cc (search_for): Put this in shared section or suffer subtle problems
...
with the tls.
* pinfo.cc (status_exit): Add debug output to report on unexpected exit.
* tls_pbuf.cc (tmp_pathbuf::c_get): Add more details to internal error.
2010-12-12 05:48:29 +00:00
Corinna Vinschen
d7b90bae79
* setfacl.c (strchrnul): New function.
...
(getaclentry): Rewrite.
2010-12-11 20:47:01 +00:00
Corinna Vinschen
969c7d9a7e
* cyglsa-config: Unset GREP_OPTIONS when calling grep.
2010-12-10 10:14:35 +00:00
Christopher Faylor
4f26f8486c
fix typo
2010-12-09 21:44:22 +00:00