Cygwin: fix/drop a few comments

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2022-08-03 18:14:39 +02:00
parent b226e4228a
commit f418195dc9
4 changed files with 8 additions and 11 deletions

View File

@ -218,8 +218,7 @@ details. */
143: Export clock_getres, clock_setres 143: Export clock_getres, clock_setres
144: Export timelocal, timegm. 144: Export timelocal, timegm.
145: Add MAP_NORESERVE flag to mmap. 145: Add MAP_NORESERVE flag to mmap.
146: Change SI_USER definition. FIXME: Need to develop compatibility 146: Change SI_USER definition.
macro for this?
147: Eliminate problematic d_ino from dirent structure. unsetenv now 147: Eliminate problematic d_ino from dirent structure. unsetenv now
returns int, as per linux. returns int, as per linux.
148: Add open(2) flags O_SYNC, O_RSYNC, O_DSYNC and O_DIRECT. 148: Add open(2) flags O_SYNC, O_RSYNC, O_DSYNC and O_DIRECT.

View File

@ -25,7 +25,6 @@
#define NGROUPS NGROUPS_MAX #define NGROUPS NGROUPS_MAX
/* Ticks/second for system calls such as times() */ /* Ticks/second for system calls such as times() */
/* FIXME: is this the appropriate value? */
#define HZ 1000 #define HZ 1000
/* Max hostname size that can be dealt with (== Win32 MAX_HOSTNAME_LEN) */ /* Max hostname size that can be dealt with (== Win32 MAX_HOSTNAME_LEN) */

View File

@ -1276,8 +1276,8 @@ static mount_item *mounts_for_sort;
/* sort_by_posix_name: qsort callback to sort the mount entries. Sort /* sort_by_posix_name: qsort callback to sort the mount entries. Sort
user mounts ahead of system mounts to the same POSIX path. */ user mounts ahead of system mounts to the same POSIX path. */
/* FIXME: should the user should be able to choose whether to /* FIXME: should the user be able to choose whether to prefer user or
prefer user or system mounts??? */ system mounts??? */
static int static int
sort_by_posix_name (const void *a, const void *b) sort_by_posix_name (const void *a, const void *b)
{ {
@ -1312,8 +1312,8 @@ sort_by_posix_name (const void *a, const void *b)
/* sort_by_native_name: qsort callback to sort the mount entries. Sort /* sort_by_native_name: qsort callback to sort the mount entries. Sort
user mounts ahead of system mounts to the same POSIX path. */ user mounts ahead of system mounts to the same POSIX path. */
/* FIXME: should the user should be able to choose whether to /* FIXME: should the user be able to choose whether to prefer user or
prefer user or system mounts??? */ system mounts??? */
static int static int
sort_by_native_name (const void *a, const void *b) sort_by_native_name (const void *a, const void *b)
{ {

View File

@ -152,10 +152,9 @@ class mount_item
int build_win32 (char *, const char *, unsigned *, unsigned); int build_win32 (char *, const char *, unsigned *, unsigned);
}; };
/* Warning: Decreasing this value will cause cygwin.dll to ignore existing /* Don't change this number willy-nilly. What we need is to have a more
higher numbered registry entries. Don't change this number willy-nilly. dynamic allocation scheme, but the current scheme should be satisfactory
What we need is to have a more dynamic allocation scheme, but the current for a long while yet. */
scheme should be satisfactory for a long while yet. */
#define MAX_MOUNTS 64 #define MAX_MOUNTS 64
class reg_key; class reg_key;