Sigrid Solveig Haflínudóttirbuild & install as syslibs396ff355 years agoHistory
19 lines · 281 B · C
RawDownload
#include <unistd.h> intmkdir(char *path, int perm){	int f; 	if(access(path, AEXIST) == 0){		werrstr("%s: already exists", path);		return -1;	}	if((f = create(path, OREAD, DMDIR|perm)) < 0){		werrstr("%s: can't create: %r", path);		return -1;	}	close(f); 	return 0;}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t