Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/tty.h
Show First 20 Lines • Show All 127 Lines • ▼ Show 20 Lines | #define TF_BUSY (TF_BUSY_IN|TF_BUSY_OUT) | ||||
struct pgrp *t_pgrp; /* (t) Foreground process group. */ | struct pgrp *t_pgrp; /* (t) Foreground process group. */ | ||||
struct session *t_session; /* (t) Associated session. */ | struct session *t_session; /* (t) Associated session. */ | ||||
unsigned int t_sessioncnt; /* (t) Backpointing sessions. */ | unsigned int t_sessioncnt; /* (t) Backpointing sessions. */ | ||||
void *t_devswsoftc; /* (c) Soft config, for drivers. */ | void *t_devswsoftc; /* (c) Soft config, for drivers. */ | ||||
void *t_hooksoftc; /* (t) Soft config, for hooks. */ | void *t_hooksoftc; /* (t) Soft config, for hooks. */ | ||||
struct cdev *t_dev; /* (c) Primary character device. */ | struct cdev *t_dev; /* (c) Primary character device. */ | ||||
#ifndef PRINTF_BUFR_SIZE | |||||
#define TTY_PRINTF_SIZE 256 | |||||
#else | |||||
#define TTY_PRINTF_SIZE PRINTF_BUFR_SIZE | #define TTY_PRINTF_SIZE PRINTF_BUFR_SIZE | ||||
cem: I think some universe configs don't define PRINTF_BUFR_SIZE. | |||||
markjAuthorUnsubmitted Done Inline ActionsHrm, ok. I'll restore the conditional definition then. markj: Hrm, ok. I'll restore the conditional definition then. | |||||
#endif | char t_prbuf[0]; /* (t) SIGINFO buffer. */ | ||||
cemUnsubmitted Done Inline ActionsIs [0] or [] the preferred style? Either way, it's ok. cem: Is `[0]` or `[]` the preferred style? Either way, it's ok. | |||||
markjAuthorUnsubmitted Done Inline ActionsI guess we might as well use C99. I'll change it. markj: I guess we might as well use C99. I'll change it. | |||||
char t_prbuf[TTY_PRINTF_SIZE]; /* (t) */ | |||||
}; | }; | ||||
/* | /* | ||||
* Userland version of struct tty, for sysctl kern.ttys | * Userland version of struct tty, for sysctl kern.ttys | ||||
*/ | */ | ||||
struct xtty { | struct xtty { | ||||
size_t xt_size; /* Structure size. */ | size_t xt_size; /* Structure size. */ | ||||
size_t xt_insize; /* Input queue size. */ | size_t xt_insize; /* Input queue size. */ | ||||
▲ Show 20 Lines • Show All 89 Lines • Show Last 20 Lines |
I think some universe configs don't define PRINTF_BUFR_SIZE.