diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2004-04-14 10:20:26 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2004-04-14 10:20:26 +0000 |
commit | f4ae6dc62cfb0cfac135d4e810fef592a401e26b (patch) | |
tree | 097e624c71735f25b1ec85fce0d456ba6f0eaa32 /winsup/cygwin/include/limits.h | |
parent | 93d66ddc2095c19a19df0f7d32cfda0560b3dfe6 (diff) | |
download | cygnal-f4ae6dc62cfb0cfac135d4e810fef592a401e26b.tar.gz cygnal-f4ae6dc62cfb0cfac135d4e810fef592a401e26b.tar.bz2 cygnal-f4ae6dc62cfb0cfac135d4e810fef592a401e26b.zip |
* autoload.cc (NtSetSecurityObject): Add.
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Only request
READ_CONTROL rights when opening the file.
* ntdll.h (NtSetSecurityObject): Add declaration.
* security.cc (write_sd): Call NtSetSecurityObject instead of
BackupWrite.
(get_nt_object_security): Don't free security descriptor here.
* syscalls.cc (ttyname): Use buffer of length TTY_NAME_MAX + 1.
* sysconf.cc (sysconf): Handle _SC_TTY_NAME_MAX request.
* include/limits.h: Define TTY_NAME_MAX and _POSIX_TTY_NAME_MAX.
Diffstat (limited to 'winsup/cygwin/include/limits.h')
-rw-r--r-- | winsup/cygwin/include/limits.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/winsup/cygwin/include/limits.h b/winsup/cygwin/include/limits.h index f32cf5340..579dc9c38 100644 --- a/winsup/cygwin/include/limits.h +++ b/winsup/cygwin/include/limits.h @@ -151,6 +151,10 @@ details. */ #undef TIMER_MAX #define TIMER_MAX 32 +/* Maximum number of characters in a tty name. */ +#undef TTY_NAME_MAX +#define TTY_NAME_MAX 12 + /* POSIX values */ /* These should never vary from one system type to another */ /* They represent the minimum values that POSIX systems must support. @@ -170,6 +174,7 @@ details. */ #define _POSIX_TZNAME_MAX 3 #define _POSIX_RTSIG_MAX 8 #define _POSIX_TIMER_MAX 32 +#define _POSIX_TTY_NAME_MAX 9 #define RTSIG_MAX _POSIX_RTSIG_MAX |