This file is indexed.

/usr/lib/petscdir/3.7.7/x86_64-linux-gnu-real-debug/share/petsc/matlab/@PetscOpenSocket/write.m is in libpetsc3.7.7-dbg 3.7.7+dfsg1-2build5.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
function write(sreader,data,datatype)
%
%   write(sreader,data,datatype) - writes data to a socket opened with sreader(socketnumber)
%
  switch (datatype)
  case 'int32'
    datatype = 0;
  case 'double'
    datatype = 1;
  case 'float64'
    datatype = 1;
  case 'uchar'
    datatype = 6;
    data     = data';
  otherwise
    disp(['Unknow datatype ' datatype])
    return
  end
swrite(sreader.fd,data,datatype);