MCPcopy Index your code
hub / github.com/git/git / xdup

Function xdup

wrapper.c:346–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344}
345
346int xdup(int fd)
347{
348 int ret = dup(fd);
349 if (ret < 0)
350 die_errno("dup failed");
351 return ret;
352}
353
354/**
355 * xfopen() is the same as fopen(), but it die()s if the fopen() fails.

Callers 3

sanitize_stdfdsFunction · 0.85
run_external_diffFunction · 0.85
get_importerFunction · 0.85

Calls 1

die_errnoFunction · 0.85

Tested by

no test coverage detected