summaryrefslogtreecommitdiff
path: root/usr/src/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libc')
-rw-r--r--usr/src/lib/libc/port/gen/daemon.c3
-rw-r--r--usr/src/lib/libc/port/gen/getgrnam_r.c3
-rw-r--r--usr/src/lib/libc/port/gen/getpwnam_r.c3
-rw-r--r--usr/src/lib/libc/port/gen/getspent_r.c3
-rw-r--r--usr/src/lib/libc/port/gen/ndbm.c7
-rw-r--r--usr/src/lib/libc/port/locale/engine.c3
-rw-r--r--usr/src/lib/libc/port/threads/rwlock.c3
-rw-r--r--usr/src/lib/libc/port/threads/synch.c31
-rw-r--r--usr/src/lib/libc/port/threads/thr.c15
9 files changed, 40 insertions, 31 deletions
diff --git a/usr/src/lib/libc/port/gen/daemon.c b/usr/src/lib/libc/port/gen/daemon.c
index f1e6926c91..ed7db080c4 100644
--- a/usr/src/lib/libc/port/gen/daemon.c
+++ b/usr/src/lib/libc/port/gen/daemon.c
@@ -22,6 +22,7 @@
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2016 by Delphix. All rights reserved.
*/
#include "lint.h"
@@ -79,7 +80,7 @@ daemon(int nochdir, int noclose)
/*
* Also, if any of the descriptor redirects fails we should
- * return with error to signal to the caller that his request
+ * return with error to signal to the caller that its request
* cannot be fulfilled properly. It is up to the caller to
* do the cleanup.
*/
diff --git a/usr/src/lib/libc/port/gen/getgrnam_r.c b/usr/src/lib/libc/port/gen/getgrnam_r.c
index 4761b77724..981125c3bc 100644
--- a/usr/src/lib/libc/port/gen/getgrnam_r.c
+++ b/usr/src/lib/libc/port/gen/getgrnam_r.c
@@ -22,6 +22,7 @@
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2016 by Delphix. All rights reserved.
*/
#include "lint.h"
@@ -204,7 +205,7 @@ fgetgrent_r(FILE *f, struct group *result, char *buffer, int buflen)
extern void _nss_XbyY_fgets(FILE *, nss_XbyY_args_t *);
nss_XbyY_args_t arg;
- /* ... but in fgetXXent_r, the caller deserves any +/- entry he gets */
+ /* ... but in fgetXXent_r, the caller deserves any +/- entry it gets */
/* No key to fill in */
NSS_XbyY_INIT(&arg, result, buffer, buflen, str2group);
diff --git a/usr/src/lib/libc/port/gen/getpwnam_r.c b/usr/src/lib/libc/port/gen/getpwnam_r.c
index b8a87e98a6..a1dc20cb36 100644
--- a/usr/src/lib/libc/port/gen/getpwnam_r.c
+++ b/usr/src/lib/libc/port/gen/getpwnam_r.c
@@ -22,6 +22,7 @@
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2016 by Delphix. All rights reserved.
*/
#include "lint.h"
@@ -201,7 +202,7 @@ fgetpwent_r(FILE *f, struct passwd *result, char *buffer, int buflen)
extern void _nss_XbyY_fgets(FILE *, nss_XbyY_args_t *);
nss_XbyY_args_t arg;
- /* ... but in fgetXXent_r, the caller deserves any +/- entry he gets */
+ /* ... but in fgetXXent_r, the caller deserves any +/- entry it gets */
/* No key to fill in */
NSS_XbyY_INIT(&arg, result, buffer, buflen, str2passwd);
diff --git a/usr/src/lib/libc/port/gen/getspent_r.c b/usr/src/lib/libc/port/gen/getspent_r.c
index d1edf7e9be..ae45338b8b 100644
--- a/usr/src/lib/libc/port/gen/getspent_r.c
+++ b/usr/src/lib/libc/port/gen/getspent_r.c
@@ -22,6 +22,7 @@
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2016 by Delphix. All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
@@ -100,7 +101,7 @@ fgetspent_r(FILE *f, struct spwd *result, char *buffer, int buflen)
extern void _nss_XbyY_fgets(FILE *, nss_XbyY_args_t *);
nss_XbyY_args_t arg;
- /* ... but in fgetXXent_r, the caller deserves any +/- entry he gets */
+ /* ... but in fgetXXent_r, the caller deserves any +/- entry it gets */
/* No key to fill in */
NSS_XbyY_INIT(&arg, result, buffer, buflen, str2spwd);
diff --git a/usr/src/lib/libc/port/gen/ndbm.c b/usr/src/lib/libc/port/gen/ndbm.c
index f16af50dee..f1fb3603be 100644
--- a/usr/src/lib/libc/port/gen/ndbm.c
+++ b/usr/src/lib/libc/port/gen/ndbm.c
@@ -22,6 +22,7 @@
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ * Copyright (c) 2016 by Delphix. All rights reserved.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
@@ -599,7 +600,7 @@ dbm_do_nextkey(DBM *db, datum inkey)
* be an extra clever moron who depends on
* these variables and their former meaning.
* If we set the variables this would have got
- * us the key for sure! So give him the old algorithm.
+ * us the key for sure! So give it the old algorithm.
*/
if (key.dptr == NULL)
return (dbm_slow_nextkey(db));
@@ -699,8 +700,8 @@ keep_going:
}
/* really need hash at this point */
- /* if he gave us a key we have already calculated the hash */
- /* if not get it */
+ /* if it gave us a key we have already calculated the hash */
+ /* if not get the hash */
if (inkey.dptr == NULL)
hash = dcalchash(key);
hash = dbm_hashinc(db, hash);
diff --git a/usr/src/lib/libc/port/locale/engine.c b/usr/src/lib/libc/port/locale/engine.c
index 9d9f33cd3f..8dab65c5b4 100644
--- a/usr/src/lib/libc/port/locale/engine.c
+++ b/usr/src/lib/libc/port/locale/engine.c
@@ -1,6 +1,7 @@
/*
* Copyright 2010 Nexenta Systems, Inc. All rights reserved.
* Copyright 2012 Milan Jurik. All rights reserved.
+ * Copyright (c) 2016 by Delphix. All rights reserved.
* Copyright (c) 1992, 1993, 1994 Henry Spencer.
* Copyright (c) 1992, 1993, 1994
* The Regents of the University of California. All rights reserved.
@@ -281,7 +282,7 @@ matcher(struct re_guts *g,
if (nmatch == 1 && !g->backrefs)
break; /* no further info needed */
- /* oh my, he wants the subexpressions... */
+ /* oh my, it wants the subexpressions... */
if (m->pmatch == NULL)
m->pmatch = (regmatch_t *)malloc((m->g->nsub + 1) *
sizeof (regmatch_t));
diff --git a/usr/src/lib/libc/port/threads/rwlock.c b/usr/src/lib/libc/port/threads/rwlock.c
index a8f9caff18..9654b7daaf 100644
--- a/usr/src/lib/libc/port/threads/rwlock.c
+++ b/usr/src/lib/libc/port/threads/rwlock.c
@@ -21,6 +21,7 @@
/*
* Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016 by Delphix. All rights reserved.
*/
#include "lint.h"
@@ -620,7 +621,7 @@ rwlock_lock(rwlock_t *rwlp, timespec_t *tsp, int rd_wr)
/*
* Do a priority check on the queued waiter (the
* highest priority thread on the queue) to see
- * if we should defer to him or just grab the lock.
+ * if we should defer to it or just grab the lock.
*/
int our_pri = real_priority(self);
int his_pri = real_priority(ulwp);
diff --git a/usr/src/lib/libc/port/threads/synch.c b/usr/src/lib/libc/port/threads/synch.c
index b4efb58d17..3ec76f7c21 100644
--- a/usr/src/lib/libc/port/threads/synch.c
+++ b/usr/src/lib/libc/port/threads/synch.c
@@ -23,6 +23,7 @@
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
* Copyright 2015, Joyent, Inc.
+ * Copyright (c) 2016 by Delphix. All rights reserved.
*/
#include "lint.h"
@@ -3717,11 +3718,11 @@ cond_signal(cond_t *cvp)
return (error);
/*
- * Move someone from the condvar sleep queue to the mutex sleep
- * queue for the mutex that he will acquire on being waked up.
- * We can do this only if we own the mutex he will acquire.
- * If we do not own the mutex, or if his ul_cv_wake flag
- * is set, just dequeue and unpark him.
+ * Move some thread from the condvar sleep queue to the mutex sleep
+ * queue for the mutex that it will acquire on being waked up.
+ * We can do this only if we own the mutex it will acquire.
+ * If we do not own the mutex, or if its ul_cv_wake flag
+ * is set, just dequeue and unpark it.
*/
qp = queue_lock(cvp, CV);
ulwpp = queue_slot(qp, &prev, &more);
@@ -3733,26 +3734,26 @@ cond_signal(cond_t *cvp)
ulwp = *ulwpp;
/*
- * Inform the thread that he was the recipient of a cond_signal().
- * This lets him deal with cond_signal() and, concurrently,
+ * Inform the thread that it was the recipient of a cond_signal().
+ * This lets it deal with cond_signal() and, concurrently,
* one or more of a cancellation, a UNIX signal, or a timeout.
* These latter conditions must not consume a cond_signal().
*/
ulwp->ul_signalled = 1;
/*
- * Dequeue the waiter but leave his ul_sleepq non-NULL
- * while we move him to the mutex queue so that he can
+ * Dequeue the waiter but leave its ul_sleepq non-NULL
+ * while we move it to the mutex queue so that it can
* deal properly with spurious wakeups.
*/
queue_unlink(qp, ulwpp, prev);
- mp = ulwp->ul_cvmutex; /* the mutex he will acquire */
+ mp = ulwp->ul_cvmutex; /* the mutex it will acquire */
ulwp->ul_cvmutex = NULL;
ASSERT(mp != NULL);
if (ulwp->ul_cv_wake || !MUTEX_OWNED(mp, self)) {
- /* just wake him up */
+ /* just wake it up */
lwpid = ulwp->ul_lwpid;
no_preempt(self);
ulwp->ul_sleepq = NULL;
@@ -3761,7 +3762,7 @@ cond_signal(cond_t *cvp)
(void) __lwp_unpark(lwpid);
preempt(self);
} else {
- /* move him to the mutex queue */
+ /* move it to the mutex queue */
mqp = queue_lock(mp, MX);
enqueue(mqp, ulwp, 0);
mp->mutex_waiters = 1;
@@ -3876,18 +3877,18 @@ cond_broadcast(cond_t *cvp)
break;
ASSERT(ulwp->ul_wchan == cvp);
queue_unlink(qp, &qrp->qr_head, NULL);
- mp = ulwp->ul_cvmutex; /* his mutex */
+ mp = ulwp->ul_cvmutex; /* its mutex */
ulwp->ul_cvmutex = NULL;
ASSERT(mp != NULL);
if (ulwp->ul_cv_wake || !MUTEX_OWNED(mp, self)) {
- /* just wake him up */
+ /* just wake it up */
ulwp->ul_sleepq = NULL;
ulwp->ul_wchan = NULL;
if (nlwpid == maxlwps)
lwpid = alloc_lwpids(lwpid, &nlwpid, &maxlwps);
lwpid[nlwpid++] = ulwp->ul_lwpid;
} else {
- /* move him to the mutex queue */
+ /* move it to the mutex queue */
if (mp != mp_cache) {
mp_cache = mp;
if (mqp != NULL)
diff --git a/usr/src/lib/libc/port/threads/thr.c b/usr/src/lib/libc/port/threads/thr.c
index 88ce377f21..116bb61125 100644
--- a/usr/src/lib/libc/port/threads/thr.c
+++ b/usr/src/lib/libc/port/threads/thr.c
@@ -21,6 +21,7 @@
/*
* Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016 by Delphix. All rights reserved.
*/
/*
* Copyright 2016 Joyent, Inc.
@@ -1786,17 +1787,17 @@ force_continue(ulwp_t *ulwp)
if (error != 0 && error != EINTR)
break;
error = 0;
- if (ulwp->ul_stopping) { /* he is stopping himself */
- ts.tv_sec = 0; /* give him a chance to run */
+ if (ulwp->ul_stopping) { /* it is stopping itsself */
+ ts.tv_sec = 0; /* give it a chance to run */
ts.tv_nsec = 100000; /* 100 usecs or clock tick */
(void) __nanosleep(&ts, NULL);
}
- if (!ulwp->ul_stopping) /* he is running now */
+ if (!ulwp->ul_stopping) /* it is running now */
break; /* so we are done */
/*
- * He is marked as being in the process of stopping
- * himself. Loop around and continue him again.
- * He may not have been stopped the first time.
+ * It is marked as being in the process of stopping
+ * itself. Loop around and continue it again.
+ * It may not have been stopped the first time.
*/
}
}
@@ -2480,7 +2481,7 @@ getlwpstatus(thread_t tid, struct lwpstatus *sp)
(void) __close(fd);
return (0);
}
- yield(); /* give him a chance to stop */
+ yield(); /* give it a chance to stop */
}
(void) __close(fd);
}