mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-03 16:30:29 +00:00
Make more code aarch64 friendly
This commit is contained in:
parent
ca2860947f
commit
2b73e72d59
568 changed files with 2197 additions and 1061 deletions
|
@ -17,7 +17,8 @@
|
|||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/intrin/lockxchg.h"
|
||||
|
||||
// TODO(jart): DELETE
|
||||
|
||||
/**
|
||||
* Deletes file.
|
||||
|
@ -29,6 +30,7 @@
|
|||
* @asyncsignalsafe
|
||||
*/
|
||||
int unlink_s(const char **namep) {
|
||||
const char *name = NULL;
|
||||
return unlink(lockxchg(namep, &name));
|
||||
const char *name = *namep;
|
||||
*namep = 0;
|
||||
return unlink(name);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue