Commit Briefs

8b925c6ccd Thomas Adam

portable: add back sys/queue.h

Now that the handling of including sys/queue.h is better, there's no need to remove those lines from the source. Copy the location of those original sys/queue.h lines from upstream at the same line number, so as to avoid any conflicts in the future.


3cb9337907 Thomas Adam

fix pipe usage for linux

This uses the correct read and write ends of the fds returned by pipe(2) on linux. It also moves away from creating FILE* streams with fdopen and reading the stream with buf_load (which performs a fstat, and breaks due to a zero length file size on linux) by instead reading from the fd itself. Reported by abieber@, with assistance from stsp@ ok stsp@


6dc6a24ce5 Thomas Adam

fix buf_alloca error handling

Left-over from how OpenRCS/OpenCVS do error handling. OK stsp@


0634062147 Thomas Adam

add O_CLOEXEC (close-on-exec) flag to open(2) calls

suggested by millert ok thomas_adam


dd038bc6ec Thomas Adam

portable: initial Linux compilation

This commit modifies the GoT main branch to be able to compile it under linux.



08578a35f6 Stefan Sperling

make close(2) failure checks consistent; check 'close() == -1' everywhere

ok millert, naddy


54415d85f1 Tracey Emery

kn@ and stsp@ suggested changes




57ebf19f2d Hiltjo Posthuma

buf_alloc: free whole BUF* in allocation failure path


202329ae1b Stefan Sperling

fix some more occurrences of potential errno clobbering


638f902404 Stefan Sperling

rename got_error_prefix_errno() to got_error_from_errno()


230a42bdc6 joshua stein

got_error_from_errno -> got_error_prefix_errno

also add got_error_prefix_errno2 and got_error_prefix_errno3 which should hopefully all be merged into a single function with variadic args (but can't alloc mem)


3a6ce05aff Stefan Sperling

check for errors from close(2)


af45e62627 Stefan Sperling

get rid of xmalloc and err functions in buf.c


74b37681cb Stefan Sperling

add unmodified buf.c, buf.h, and diff3.c from OpenRCS