diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-04-28 12:15:56 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-04-28 12:15:56 +0400 |
commit | 41e9c14558ea32ce550e285d2b2b8d195b288b3d (patch) | |
tree | d1cf50d8bd2f155fc18998f5f65d726267b8271a /winsup/cygwin/posix_ipc.cc | |
parent | f97612978a32fd1015242f3e10072f40e6a510e5 (diff) |
* advapi32.cc (AllocateLocallyUniqueId): Remove.
* fhandler_disk_file.cc (fhandler_base::open_fs): Replace call to
AllocateLocallyUniqueId with call to NtAllocateLocallyUniqueId;
* posix_ipc.cc (mq_open): Ditto. Drop error handling for that call.
(sem_open): Ditto.
Diffstat (limited to 'winsup/cygwin/posix_ipc.cc')
-rw-r--r-- | winsup/cygwin/posix_ipc.cc | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/winsup/cygwin/posix_ipc.cc b/winsup/cygwin/posix_ipc.cc index 678c62894..c7b2bc0fe 100644 --- a/winsup/cygwin/posix_ipc.cc +++ b/winsup/cygwin/posix_ipc.cc @@ -419,11 +419,7 @@ again: mqhdr->mqh_attr.mq_curmsgs = 0; mqhdr->mqh_nwait = 0; mqhdr->mqh_pid = 0; - if (!AllocateLocallyUniqueId (&luid)) - { - __seterrno (); - goto err; - } + NtAllocateLocallyUniqueId (&luid); __small_sprintf (mqhdr->mqh_uname, "%016X%08x%08x", hash_path_name (0,mqname), luid.HighPart, luid.LowPart); @@ -1008,11 +1004,7 @@ again: } created = 1; /* First one to create the file initializes it. */ - if (!AllocateLocallyUniqueId (&sf.luid)) - { - __seterrno (); - goto err; - } + NtAllocateLocallyUniqueId (&sf.luid); sf.value = value; sf.hash = hash_path_name (0, semname); if (write (fd, &sf, sizeof sf) != sizeof sf) |