/*
- * $Id: protos.h,v 1.336 1999/05/26 20:41:21 wessels Exp $
+ * $Id: protos.h,v 1.337 1999/05/27 03:21:37 wessels Exp $
*
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
extern const char *gb_to_str(const gb_t *);
extern void gb_flush(gb_t *); /* internal, do not use this */
extern int stringHasWhitespace(const char *);
+extern void linklistPush(link_list **, void *);
+extern void *linklistShift(link_list **);
#if USE_HTCP
extern void htcpInit(void);
/*
- * $Id: structs.h,v 1.295 1999/05/26 20:41:24 wessels Exp $
+ * $Id: structs.h,v 1.296 1999/05/27 03:21:40 wessels Exp $
*
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
unsigned int internal:1;
};
+struct _link_list {
+ void *ptr;
+ struct _link_list *next;
+};
+
struct _storeIOState {
sfileno swap_file_number;
mode_t mode;
struct {
int fd;
const char *read_buf;
+ link_list *pending_writes;
struct {
unsigned int close_request:1;
unsigned int reading:1;
unsigned int writing:1;
+ unsigned int opening:1;
} flags;
} aufs;
} type;
/*
- * $Id: tools.cc,v 1.181 1999/05/26 17:08:05 wessels Exp $
+ * $Id: tools.cc,v 1.182 1999/05/27 03:21:42 wessels Exp $
*
* DEBUG: section 21 Misc Functions
* AUTHOR: Harvest Derived
{
return (strcspn(s, w_space) != strlen(s));
}
+
+void
+linklistPush(link_list ** L, void *p)
+{
+ link_list *l = xmalloc(sizeof(*l));
+ l->next = NULL;
+ l->ptr = p;
+ while (*L)
+ L = &(*L)->next;
+ *L = l;
+}
+
+void *
+linklistShift(link_list ** L)
+{
+ void *p;
+ link_list *l;
+ if (NULL == *L)
+ return NULL;
+ l = *L;
+ p = l->ptr;
+ *L = (*L)->next;
+ xfree(l);
+ return p;
+}
/*
- * $Id: typedefs.h,v 1.94 1999/05/26 06:48:11 wessels Exp $
+ * $Id: typedefs.h,v 1.95 1999/05/27 03:21:43 wessels Exp $
*
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
typedef struct _helper_request helper_request;
typedef struct _generic_cbdata generic_cbdata;
typedef struct _storeIOState storeIOState;
+typedef struct _link_list link_list;
#if SQUID_SNMP
typedef variable_list *(oid_ParseFn) (variable_list *, snint *);