pathconf function

int pathconf(
  1. String path,
  2. int name
)

Get file-specific configuration information about PATH.

Implementation

int pathconf(
  String path, // ffi.Pointer<Utf8> __path,
  int name,
) {
  final cPath = path.toNativeUtf8();
  _pathconf ??= Libc().dylib.lookupFunction<
      ffi.Int64 Function(ffi.Pointer<Utf8>, ffi.Int32),
      _dart_pathconf>('pathconf');
  final result = _pathconf!(
    cPath,
    name,
  );

  malloc.free(cPath);
  return result;
}