Lines Matching defs:oco

736     ConnectionOutputPtr oco;
745 oco = oc->output;
786 if (!oco)
788 if ((oco = FreeOutputs))
790 FreeOutputs = oco->next;
792 else if (!(oco = AllocateOutputBuffer()))
802 oc->output = oco;
849 if (oco->count + count + padBytes > oco->size)
865 memmove((char *)oco->buf + oco->count, buf, count);
866 oco->count += count + padBytes;
883 ConnectionOutputPtr oco = oc->output;
894 if (!oco)
898 notWritten = oco->count + extraCount + padsize;
933 InsertIOV ((char *)oco->buf, oco->count)
959 if (written < oco->count)
963 oco->count -= written;
964 memmove((char *)oco->buf,
965 (char *)oco->buf + written,
966 oco->count);
972 written -= oco->count;
973 oco->count = 0;
976 if (notWritten > oco->size)
980 obuf = (unsigned char *)realloc(oco->buf,
988 oco->count = 0;
991 oco->size = notWritten + BUFSIZE;
992 oco->buf = obuf;
998 memmove ((char *)oco->buf + oco->count,
1002 oco->count = notWritten; /* this will include the pad */
1021 oco->count = 0;
1027 oco->count = 0;
1035 if (oco->size > BUFWATERMARK)
1037 free(oco->buf);
1038 free(oco);
1042 oco->next = FreeOutputs;
1043 FreeOutputs = oco;
1074 ConnectionOutputPtr oco;
1076 oco = malloc(sizeof(ConnectionOutput));
1077 if (!oco)
1079 oco->buf = calloc(1, BUFSIZE);
1080 if (!oco->buf)
1082 free(oco);
1085 oco->size = BUFSIZE;
1086 oco->count = 0;
1087 return oco;
1094 ConnectionOutputPtr oco;
1114 if ((oco = oc->output))
1118 free(oco->buf);
1119 free(oco);
1123 FreeOutputs = oco;
1124 oco->next = (ConnectionOutputPtr)NULL;
1125 oco->count = 0;
1134 ConnectionOutputPtr oco;
1142 while ((oco = FreeOutputs))
1144 FreeOutputs = oco->next;
1145 free(oco->buf);
1146 free(oco);