summaryrefslogtreecommitdiff
path: root/usr/src/lib/libc/port/sys/tasksys.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libc/port/sys/tasksys.c')
-rw-r--r--usr/src/lib/libc/port/sys/tasksys.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/usr/src/lib/libc/port/sys/tasksys.c b/usr/src/lib/libc/port/sys/tasksys.c
index d93cf01cee..82b169a9a5 100644
--- a/usr/src/lib/libc/port/sys/tasksys.c
+++ b/usr/src/lib/libc/port/sys/tasksys.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,18 +18,19 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright (c) 1999-2001 by Sun Microsystems, Inc.
- * All rights reserved.
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
-#pragma weak settaskid = _settaskid
-#pragma weak gettaskid = _gettaskid
-#pragma weak getprojid = _getprojid
+#pragma weak _settaskid = settaskid
+#pragma weak _gettaskid = gettaskid
+#pragma weak _getprojid = getprojid
-#include "synonyms.h"
+#include "lint.h"
#include <sys/types.h>
#include <sys/syscall.h>
#include <sys/task.h>
@@ -43,7 +43,8 @@ settaskid(projid_t project, uint_t flags)
taskid_t newtaskid;
while ((newtaskid = syscall(SYS_tasksys, 0, project, flags, NULL, 0))
- == -1 && errno == EINTR);
+ == -1 && errno == EINTR)
+ continue;
return (newtaskid);
}