Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
346
int 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_stdfds
Function · 0.85
run_external_diff
Function · 0.85
get_importer
Function · 0.85
Calls
1
die_errno
Function · 0.85
Tested by
no test coverage detected