github.com/rohankumardubey/syslog-redirector-golang@v0.0.0-20140320174030-4859f03d829a/src/libmach/windows.c (about)

     1  // This is stubbed out for the moment. Will revisit when the time comes.
     2  #include <u.h>
     3  #include <libc.h>
     4  #include <bio.h>
     5  #include <mach.h>
     6  
     7  int
     8  ctlproc(int pid, char *msg)
     9  {
    10  	USED(pid);
    11  	USED(msg);
    12  	sysfatal("ctlproc unimplemented in Windows");
    13  	return -1;
    14  }
    15  
    16  char*
    17  proctextfile(int pid)
    18  {
    19  	USED(pid);
    20  	sysfatal("proctextfile unimplemented in Windows");
    21  	return nil;
    22  }
    23  
    24  char*
    25  procstatus(int pid)
    26  {
    27  	USED(pid);
    28  	sysfatal("procstatus unimplemented in Windows");
    29  	return nil;
    30  }
    31  
    32  Map*
    33  attachproc(int pid, Fhdr *fp)
    34  {
    35  	USED(pid);
    36  	USED(fp);
    37  	sysfatal("attachproc unimplemented in Windows");
    38  	return nil;
    39  }
    40  
    41  void
    42  detachproc(Map *m)
    43  {
    44  	USED(m);
    45  	sysfatal("detachproc unimplemented in Windows");
    46  }
    47  
    48  int
    49  procthreadpids(int pid, int *p, int np)
    50  {
    51  	USED(pid);
    52  	USED(p);
    53  	USED(np);
    54  	sysfatal("procthreadpids unimplemented in Windows");
    55  	return -1;
    56  }
    57  
    58  int 
    59  pread(int fd, void *buf, int count, int offset)
    60  {
    61  	int oldoffset, n;
    62  	
    63  	oldoffset = seek(fd, offset, 0);
    64  	n = read(fd, buf, count);
    65  	seek(fd, oldoffset, 0);
    66  	return n;
    67  }
    68  
    69  int 
    70  pwrite(int fd, void *buf, int count, int offset)
    71  {
    72  	USED(fd);
    73  	USED(buf);
    74  	USED(count);
    75  	USED(offset);
    76  	sysfatal("pwrite unimplemented in Windows");
    77  	return -1;
    78  }
    79  
    80  int 
    81  nanosleep(const struct timespec *rqtp, struct timespec *rmtp)
    82  {
    83  	USED(rqtp);
    84  	USED(rmtp);
    85  	sysfatal("nanosleep unimplemented in Windows");
    86  	return -1;
    87  }