descriptors.unlinkDescriptors(pid);
}
private void handleCreat(Map<String, String> eventData){
int defaultFlags = O_CREAT|O_WRONLY|O_TRUNC;
eventData.put("a2", eventData.get("a1")); //set mode to argument 3 (in open) from 2 (in creat)
<BUG>eventData.put("a1", String.valueOf(defaultFlags)); //convert defaultflags argument to hexadecimal
</BUG>
handleOpen(eventData, SYSCALL.CREATE); //TODO change to creat. kept as create to keep current CDM data consistent
}
private void handleOpenat(Map<String, String> eventData){

descriptors.unlinkDescriptors(pid);
}
private void handleCreat(Map<String, String> eventData){
int defaultFlags = O_CREAT|O_WRONLY|O_TRUNC;
eventData.put("a2", eventData.get("a1")); //set mode to argument 3 (in open) from 2 (in creat)
eventData.put("a1", String.valueOf(defaultFlags)); //flags is argument 2 in open
handleOpen(eventData, SYSCALL.CREATE); //TODO change to creat. kept as create to keep current CDM data consistent
}
private void handleOpenat(Map<String, String> eventData){
