Lines Matching refs:fd
53 ResetFifoBuffer(int fd)
58 if (fd >= FifoBufferTableSize)
61 if (FifoBufferTable [fd]) {
62 FifoBufferTable [fd]->full = 0;
63 FifoBufferTable [fd]->psave =
64 FifoBufferTable [fd]->psave_end =
65 FifoBufferTable [fd]->save;
72 GetFifoBuffer(int fd)
74 if (fd < 0) {
78 if ((fd >= FifoBufferTableSize) && (GrowFifoBufferTable (fd) < 0))
81 if (!FifoBufferTable [fd]) {
82 if (!NewFifoBuffer (fd))
85 FifoBufferTable [fd]->full = 0;
86 FifoBufferTable [fd]->psave =
87 FifoBufferTable [fd]->psave_end =
88 FifoBufferTable [fd]->save;
91 return FifoBufferTable [fd];
113 GrowFifoBufferTable (int fd)
119 (fd+10)*sizeof (fifobuffer_t *));
123 FifoBufferTableSize = fd+10;
130 NewFifoBuffer(int fd)
140 FifoBufferTable [fd] = FifoBufferTable [i];
142 return FifoBufferTable [fd];
145 FifoBufferTable [fd] = (fifobuffer_t *)
148 return FifoBufferTable [fd];