Lines Matching defs:flag

116  * The sgttyb_handling flag controls the handling of the old BSD
237 stropen(vnode_t *vp, dev_t *devp, int flag, cred_t *crp)
275 if (flag & (FNDELAY|FNONBLOCK)) {
292 if (flag & (FNDELAY|FNONBLOCK)) {
318 if (flag & (FNDELAY|FNONBLOCK)) {
350 if ((error = qreopen(_RD(qp), devp, flag, crp)) != 0)
443 if ((error = qattach(qp, devp, flag, crp, NULL, B_FALSE)) != 0) {
612 strclose(struct vnode *vp, int flag, cred_t *crp)
702 if (!(flag & (FNDELAY|FNONBLOCK)) && (stp->sd_closetime > 0)) {
734 qdetach(_RD(rmq), 1, flag, crp, B_FALSE);
1132 * the stream was not opened with the NDELAY flag, block until data arrives.
1251 * the STRATMARK flag will be set below. Likewise, if
1344 * flag.
1417 * clear stream head hi pri flag based on
1438 * clear stream head hi pri flag based on
1561 * SR_POLLIN. That flag has to be checked under sd_lock since it
1653 * marks or the delim flag or if the new
1802 * the STRGETINPROG flag. The flag determines if
2166 * flag into the flushq code to preserve such messages.
3011 strcopyin_strioctl(void *from, void *to, int flag, int copyflag)
3019 if ((flag & FMODELS) == DATAMODEL_ILP32) {
3044 strcopyout_strioctl(void *from, void *to, int flag, int copyflag)
3052 if ((flag & FMODELS) == DATAMODEL_ILP32) {
3082 strcopyin_strioctl(void *from, void *to, int flag, int copyflag)
3089 strcopyout_strioctl(void *from, void *to, int flag, int copyflag)
3191 strioctl(struct vnode *vp, int cmd, intptr_t arg, int flag, int copyflag,
3209 if (flag & FKIOCTL) {
3222 * flag is set. After this it would be a serious error to have
3223 * no model flag.
3226 flag = (flag & ~FMODELS) | FNATIVE;
3228 ASSERT((flag & FMODELS) != 0);
3349 return (strdoioctl(stp, &strioc, flag,
3358 return (strdoioctl(stp, &strioc, flag,
3366 return (strdoioctl(stp, &strioc, flag,
3372 return (strdoioctl(stp, &strioc, flag,
3378 return (strdoioctl(stp, &strioc, flag,
3382 if ((flag & FREAD) == 0 &&
3399 return (strdoioctl(stp, &strioc, flag,
3405 return (strdoioctl(stp, &strioc, flag,
3411 return (strdoioctl(stp, &strioc, flag,
3427 return (strdoioctl(stp, &strioc, flag,
3434 return (strdoioctl(stp, &strioc, flag,
3441 return (strdoioctl(stp, &strioc, flag,
3448 return (strdoioctl(stp, &strioc, flag,
3454 return (strdoioctl(stp, &strioc, flag,
3461 return (strdoioctl(stp, &strioc, flag,
3494 return (strdoioctl(stp, &strioc, flag,
3507 return (strdoioctl(stp, &strioc, flag, copyflag, crp, rvalp));
3520 error = strcopyin_strioctl((void *)arg, &strioc, flag,
3559 error = strdoioctl(stp, &strioc, flag, copyflag, crp, rvalp);
3562 flag, copyflag);
3786 if (error = strstartplumb(stp, flag, cmd)) {
3865 if (error = strstartplumb(stp, flag, cmd))
3901 qdetach(_RD(q), 1, flag, crp, B_FALSE);
4029 STRUCT_INIT(strmodinsert, flag);
4058 if (error = strstartplumb(stp, flag, cmd)) {
4195 STRUCT_INIT(strmodremove, flag);
4217 if ((error = strstartplumb(stp, flag, cmd)) != 0)
4255 qdetach(_RD(q), 1, flag, crp, is_remove);
4445 (void) strdoioctl(stp, &strioc, flag, K_TO_K, crp, rvalp);
4479 (void) strdoioctl(stp, &strioc, flag, K_TO_K, crp, rvalp);
4907 STRUCT_INIT(strpeek, flag);
5120 STRUCT_INIT(strfdinsert, flag);
5188 * Check for legal flag value.
5225 flag, -1, &done)) != 0 || done) {
5311 flag, -1, &done)) != 0 || done) {
5455 STRUCT_INIT(strlist, flag);
5868 int flag,
5881 int copyflag = (flag & (U_TO_K | K_TO_K));
5882 int sigflag = (flag & STR_NOSIG);
5917 if (flag & STR_NOERROR)
5933 id = flag;
5984 if (flag & STR_NOERROR) {
6036 if (flag & STR_NOERROR)
6108 if (cv_rval > 0 && !(flag & STR_NOERROR) &&
6253 error = putiocd(bp, reqp->cq_addr, flag, crp);
6494 * priority, STRPRI will have been set by strrput(). This flag
6697 * the STRATMARK flag will be set below. Likewise, if
6725 * Set this flag so strrput will not generate signals. Need to
6726 * make sure this flag is cleared before leaving this routine
6736 * Set HIPRI flag if message is priority.
6758 * clear stream head pri flag based on
6812 * clear stream head hi pri flag based on
6852 * clear stream head hi pri flag based on
6911 * clear stream head hi pri flag based on
6921 * flag.
6976 * whether or not to send a signal. Drop the flag to allow strrput
7046 * priority, STRPRI will have been set by strrput(). This flag
7271 * the STRATMARK flag will be set below. Likewise, if
7354 * Set this flag so strrput will not generate signals. Need to
7355 * make sure this flag is cleared before leaving this routine
7392 * Set HIPRI flag if message is priority.
7474 * clear stream head hi pri flag based on
7582 * clear stream head hi pri flag based on
7592 * flag.
7649 * whether or not to send a signal. Drop the flag to allow strrput
7728 int flag,
7751 xpg4 = (flag & MSG_XPG4) ? 1 : 0;
7752 flag &= ~MSG_XPG4;
7755 audit_strputmsg(vp, mctl, mdata, pri, flag, fmode);
7775 * Check for legal flag value.
7777 switch (flag) {
7837 if (flag & MSG_HIPRI)
7838 flag |= MSG_IGNFLOW;
7847 if ((error = strmakectl(mctl, flag, fmode, &mp)) != 0) {
7861 error = strput(stp, mp, uiop, &msgsize, 0, pri, flag);
7915 * The fmode flag (NDELAY, NONBLOCK) is the or of the flags in the uio
7932 int flag,
7944 audit_strputmsg(vp, NULL, NULL, pri, flag, fmode);
7956 if ((stp->sd_flag & STPLEX) || !(flag & MSG_IGNERROR)) {
7970 * Check for legal flag value.
7972 switch (flag & (MSG_HIPRI|MSG_BAND|MSG_ANY)) {
8025 if (flag & MSG_HIPRI)
8026 flag |= MSG_IGNFLOW;
8051 if (flag & MSG_IGNFLOW) {
8093 error = strput(stp, mp, uiop, &msgsize, 0, pri, flag);
8104 ASSERT(!(flag & MSG_IGNFLOW));
8120 if (flag & (MSG_HOLDSIG|MSG_IGNERROR)) {
8121 if (flag & MSG_HOLDSIG)
8123 if (flag & MSG_IGNERROR)
8168 * when this flag is set a queue with only
8400 * of the marks or the delim flag or if q_first