Skip to content

Commit

Permalink
minor corrections; change license to 3-clause BSD license
Browse files Browse the repository at this point in the history
svn:r84
  • Loading branch information
provos committed Oct 4, 2003
1 parent 763f6a7 commit c3f496c
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 41 deletions.
5 changes: 1 addition & 4 deletions epoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by Niels Provos.
* 4. The name of the author may not be used to endorse or promote products
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
Expand Down
5 changes: 1 addition & 4 deletions epoll_sub.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by Niels Provos.
* 4. The name of the author may not be used to endorse or promote products
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
Expand Down
5 changes: 1 addition & 4 deletions event.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by Niels Provos.
* 4. The name of the author may not be used to endorse or promote products
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
Expand Down
5 changes: 1 addition & 4 deletions event.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by Niels Provos.
* 4. The name of the author may not be used to endorse or promote products
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
Expand Down
5 changes: 1 addition & 4 deletions evsignal.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by Niels Provos.
* 4. The name of the author may not be used to endorse or promote products
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
Expand Down
7 changes: 2 additions & 5 deletions kqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by Niels Provos.
* 4. The name of the author may not be used to endorse or promote products
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
Expand Down Expand Up @@ -59,7 +56,7 @@
#define log_error warn
#endif

#ifdef HAVE_INTTYPES_H
#if defined(HAVE_INTTYPES_H) && !defined(__OpenBSD__)
#define INTPTR(x) (intptr_t)x
#else
#define INTPTR(x) x
Expand Down
5 changes: 1 addition & 4 deletions poll.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by Niels Provos.
* 4. The name of the author may not be used to endorse or promote products
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
Expand Down
14 changes: 10 additions & 4 deletions rtsig.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,9 @@ rtsig_dispatch(void *arg, struct timeval *tv)
signum = sigtimedwait(&op->sigs, &info, &ts);

if (signum == -1) {
if (errno == EAGAIN) break;
return errno == EINTR ? 0 : -1;
if (errno == EAGAIN)
break;
return (errno == EINTR ? 0 : -1);
}

ts.tv_sec = ts.tv_nsec = 0;
Expand Down Expand Up @@ -381,8 +382,10 @@ rtsig_dispatch(void *arg, struct timeval *tv)
int flags = 0;
struct event *ev = op->toev[i];

if (op->poll[i].revents & POLLIN) flags |= EV_READ;
if (op->poll[i].revents & POLLOUT) flags |= EV_WRITE;
if (op->poll[i].revents & POLLIN)
flags |= EV_READ;
if (op->poll[i].revents & POLLOUT)
flags |= EV_WRITE;

if (!(ev->ev_events & EV_PERSIST)) {
event_del(ev);
Expand Down Expand Up @@ -422,6 +425,9 @@ rtsig_dispatch(void *arg, struct timeval *tv)
/* We just freed it, we shouldn't have a problem getting it back. */
op->poll = malloc(sizeof(*op->poll) * op->max);
op->toev = malloc(sizeof(*op->toev) * op->max);

if (op->poll == NULL || op->toev == NULL)
err(1, "%s: malloc");
}

return (0);
Expand Down
5 changes: 1 addition & 4 deletions select.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by Niels Provos.
* 4. The name of the author may not be used to endorse or promote products
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
Expand Down
5 changes: 1 addition & 4 deletions signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by Niels Provos.
* 4. The name of the author may not be used to endorse or promote products
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
Expand Down

0 comments on commit c3f496c

Please sign in to comment.