Subject: svr4 compatability bugs, file creation error and xmknod error.
To: 'netbsd-bugs' <netbsd-bugs@NetBSD.ORG>
From: John A. Maier <root@beta.datastorm.com>
List: netbsd-bugs
Date: 02/09/1996 11:24:48
I took the current svr4 files and got them to work under 1.1 (i386).

When I run the Solaris 2.4 filemgr it exits with the error:
mknod:  Invalid argument

ktrace has yielded:
   452 filemgr  CALL  access(0x809aaf9,0)
   452 filemgr  NAMI  "/emul/svr4/tmp/.removable"
   452 filemgr  NAMI  "/tmp/.removable"   
   452 filemgr  RET   access 0
   452 filemgr  CALL  chmod(0x809aaf9,0x1ff)
   452 filemgr  NAMI  "/tmp/.removable"
   452 filemgr  RET   chmod 0
   452 filemgr  CALL  access(0xf7bfcce8,0)
   452 filemgr  NAMI  "/emul/svr4/tmp/.removable/notify1"
   452 filemgr  NAMI  "/tmp/.removable/notify1"
   452 filemgr  RET   access -1 errno 2 No such file or directory
   452 filemgr  CALL  #126 (unimplemented xmknod)(0x2,0xf7bfcce8,0x1180,0)
   452 filemgr  NAMI  "/emul/svr4/tmp/.removable/notify1"
   452 filemgr  NAMI  "/tmp/.removable/notify1"
   452 filemgr  RET   #126 (unimplemented xmknod) -1 errno 22 Invalid argument
   452 filemgr  CALL  write(0x2,0x809ab25,0x5)
   452 filemgr  GIO   fd 2 wrote 5 bytes
       "mknod"
   452 filemgr  RET   write 5
   452 filemgr  CALL  write(0x2,0x18374130,0x2)
   452 filemgr  GIO   fd 2 wrote 2 bytes
       ": "
   452 filemgr  RET   write 2
   452 filemgr  CALL  write(0x2,0x1837658d,0x10)
   452 filemgr  GIO   fd 2 wrote 16 bytes
       "Invalid argument"
   452 filemgr  RET   write 16/0x10
   452 filemgr  CALL  write(0x2,0x18374134,0x1)
   452 filemgr  GIO   fd 2 wrote 1 bytes
       "
       "
   452 filemgr  RET   write 1
   452 filemgr  CALL  lseek(0,0,0x1)
   452 filemgr  RET   lseek 8887/0x22b7
   452 filemgr  CALL  lseek(0x4,0,0x1)
   452 filemgr  RET   lseek 2528/0x9e0
   452 filemgr  CALL  exit(0x1)

Notice also that the /tmp/.removable directory was properly created, but /tmp/.removable/notify1 wasn't.