Revision 2408cff9f738459019709c8c12d0bd8a5605566f authored by Linus Torvalds on 14 July 2005, 00:27:48 UTC, committed by Linus Torvalds on 14 July 2005, 00:27:48 UTC
We should always have unlinked any old ones before, but this just makes
sure that we never over-write any old file.

A quick "grep" now shows that all the core tools that open files for
writing use O_EXCL, ie we never overwrite an existing file in place.
1 parent 1b66834
Raw File
strbuf.h
#ifndef STRBUF_H
#define STRBUF_H
struct strbuf {
	int alloc;
	int len;
	int eof;
	char *buf;
};

extern void strbuf_init(struct strbuf *);
extern void read_line(struct strbuf *, FILE *, int);

#endif /* STRBUF_H */
back to top