Lines Matching defs:sig
422 static void lio_async_signal_handler(int sig)
427 __FILE__, __LINE__, sig, Received_signal + 1);
537 int sig
658 if (sig && !(method & LIO_USE_SIGNAL) && !(method & LIO_WAIT_SIGTYPES)) {
660 sig = 0; /* ignore signal parameter */
663 if (sig && (method & LIO_WAIT_CBTYPES))
664 sig = 0; /* ignore signal parameter */
668 * only setup signal hander if sig was specified and
669 * a sig wait method was specified.
675 if (sig && (method & LIO_WAIT_SIGTYPES)) {
677 sigctl(SCTL_REG, sig, lio_async_signal_handler);
681 aiocbp.aio_sigevent.sigev_signo = sig;
682 sigset(sig, lio_async_signal_handler);
765 "writea(%d, buf, %d, &status, %d)", fd, size, sig);
774 if ((ret = writea(fd, buffer, size, &status, sig)) == -1) {
778 fd, size, sig, errno, strerror(errno));
786 size, sig);
794 if (sig)
795 sighold(sig);
800 fd, size, sig, errno, strerror(errno));
801 if (sig)
802 sigrelse(sig);
815 request.li_signo = sig;
857 "lio_listio(LIO_WAIT, aiolist, 1, NULL) LIO_WRITE, fd:%d, nbyte:%d, sig:%d",
858 fd, size, sig);
865 if (sig)
866 sighold(sig);
872 if (sig)
873 sigrelse(sig);
893 request.li_signo = sig;
934 if (sig)
935 sighold(sig);
941 if (sig)
942 sigrelse(sig);
1107 int sig, /* signal to use if async io */
1229 if (sig && !(method & LIO_USE_SIGNAL) && !(method & LIO_WAIT_SIGTYPES)) {
1231 sig = 0; /* ignore signal parameter */
1234 if (sig && (method & LIO_WAIT_CBTYPES))
1235 sig = 0; /* ignore signal parameter */
1239 * only setup signal hander if sig was specified and
1240 * a sig wait method was specified.
1246 if (sig && (method & LIO_WAIT_SIGTYPES)) {
1248 sigctl(SCTL_REG, sig, lio_async_signal_handler);
1252 aiocbp.aio_sigevent.sigev_signo = sig;
1253 sigset(sig, lio_async_signal_handler);
1340 "reada(%d, buf, %d, &status, %d)", fd, size, sig);
1349 if ((ret = reada(fd, buffer, size, &status, sig)) == -1) {
1353 fd, size, sig, errno, strerror(errno));
1361 size, sig);
1369 if (sig)
1370 sighold(sig);
1375 fd, size, sig, errno, strerror(errno));
1376 if (sig)
1377 sigrelse(sig);
1390 request.li_signo = sig;
1438 if (sig)
1439 sighold(sig);
1445 if (sig)
1446 sigrelse(sig);
1466 request.li_signo = sig;
1507 if (sig)
1508 sighold(sig);
1514 if (sig)
1515 sigrelse(sig);
1965 int sig;
2106 size, Unit_info[ind].sig, &err,
2110 Unit_info[ind].method, size, Unit_info[ind].sig,
2128 size, Unit_info[ind].sig, &err,
2132 Unit_info[ind].method, size, Unit_info[ind].sig,