@@ -80,9 +80,9 @@ CAMLprim value caml_extunix_fstatat(value v_dirfd, value v_name, value v_flags)
80
80
ret = fstatat (dirfd , p , & buf , flags );
81
81
caml_leave_blocking_section ();
82
82
caml_stat_free (p );
83
- if (ret != 0 ) uerror ("fstatat" , v_name );
83
+ if (ret != 0 ) caml_uerror ("fstatat" , v_name );
84
84
if (buf .st_size > Max_long && (buf .st_mode & S_IFMT ) == S_IFREG )
85
- unix_error (EOVERFLOW , "fstatat" , v_name );
85
+ caml_unix_error (EOVERFLOW , "fstatat" , v_name );
86
86
CAMLreturn (stat_aux (/*0,*/ & buf ));
87
87
}
88
88
@@ -99,7 +99,7 @@ CAMLprim value caml_extunix_unlinkat(value v_dirfd, value v_name, value v_flags)
99
99
ret = unlinkat (dirfd , p , flags );
100
100
caml_leave_blocking_section ();
101
101
caml_stat_free (p );
102
- if (ret != 0 ) uerror ("unlinkat" , v_name );
102
+ if (ret != 0 ) caml_uerror ("unlinkat" , v_name );
103
103
CAMLreturn (Val_unit );
104
104
}
105
105
@@ -114,7 +114,7 @@ CAMLprim value caml_extunix_renameat(value v_oldfd, value v_oldname, value v_new
114
114
caml_leave_blocking_section ();
115
115
caml_stat_free (newname );
116
116
caml_stat_free (oldname );
117
- if (ret != 0 ) uerror ("renameat" , v_oldname );
117
+ if (ret != 0 ) caml_uerror ("renameat" , v_oldname );
118
118
CAMLreturn (Val_unit );
119
119
}
120
120
@@ -127,7 +127,7 @@ CAMLprim value caml_extunix_mkdirat(value v_dirfd, value v_name, value v_mode)
127
127
int ret = mkdirat (dirfd , name , mode );
128
128
caml_leave_blocking_section ();
129
129
caml_stat_free (name );
130
- if (ret != 0 ) uerror ("mkdirat" , v_name );
130
+ if (ret != 0 ) caml_uerror ("mkdirat" , v_name );
131
131
CAMLreturn (Val_unit );
132
132
}
133
133
@@ -145,7 +145,7 @@ CAMLprim value caml_extunix_linkat(value v_olddirfd, value v_oldname, value v_ne
145
145
caml_leave_blocking_section ();
146
146
caml_stat_free (newname );
147
147
caml_stat_free (oldname );
148
- if (ret != 0 ) uerror ("linkat" , v_oldname );
148
+ if (ret != 0 ) caml_uerror ("linkat" , v_oldname );
149
149
CAMLreturn (Val_unit );
150
150
}
151
151
@@ -161,7 +161,7 @@ CAMLprim value caml_extunix_fchownat(value v_dirfd, value v_name, value v_owner,
161
161
ret = fchownat (dirfd , name , owner , group , flags );
162
162
caml_leave_blocking_section ();
163
163
caml_stat_free (name );
164
- if (ret != 0 ) uerror ("fchownat" , v_name );
164
+ if (ret != 0 ) caml_uerror ("fchownat" , v_name );
165
165
CAMLreturn (Val_unit );
166
166
}
167
167
@@ -177,7 +177,7 @@ CAMLprim value caml_extunix_fchmodat(value v_dirfd, value v_name, value v_mode,
177
177
ret = fchmodat (dirfd , name , mode , flags );
178
178
caml_leave_blocking_section ();
179
179
caml_stat_free (name );
180
- if (ret != 0 ) uerror ("fchmodat" , v_name );
180
+ if (ret != 0 ) caml_uerror ("fchmodat" , v_name );
181
181
CAMLreturn (Val_unit );
182
182
}
183
183
@@ -192,7 +192,7 @@ CAMLprim value caml_extunix_symlinkat(value v_path, value v_newdirfd, value v_ne
192
192
caml_leave_blocking_section ();
193
193
caml_stat_free (newname );
194
194
caml_stat_free (path );
195
- if (ret != 0 ) uerror ("symlinkat" , v_path );
195
+ if (ret != 0 ) caml_uerror ("symlinkat" , v_path );
196
196
CAMLreturn (Val_unit );
197
197
}
198
198
@@ -209,7 +209,7 @@ CAMLprim value caml_extunix_openat(value v_dirfd, value v_path, value flags, val
209
209
ret = openat (dirfd , path , cv_flags , perm );
210
210
caml_leave_blocking_section ();
211
211
caml_stat_free (path );
212
- if (ret == -1 ) uerror ("openat" , v_path );
212
+ if (ret == -1 ) caml_uerror ("openat" , v_path );
213
213
CAMLreturn (Val_int (ret ));
214
214
}
215
215
@@ -256,7 +256,7 @@ CAMLprim value caml_extunix_readlinkat(value v_dirfd, value v_name)
256
256
res = readlinkat_malloc (dirfd , name );
257
257
caml_leave_blocking_section ();
258
258
caml_stat_free (name );
259
- if (res == NULL ) uerror ("readlinkat" , v_name );
259
+ if (res == NULL ) caml_uerror ("readlinkat" , v_name );
260
260
v_link = caml_copy_string (res );
261
261
caml_stat_free (res );
262
262
CAMLreturn (v_link );
0 commit comments