This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libc/sys/linux/io.c (mkfifo): dev pointer


Jeff Johnston wrote:
Shaun Jackman wrote:

Is the third argument of mknod truly a pointer?

$ grep mknod libc/sys/linux/io.c
#define __NR___mknod __NR_mknod
static _syscall3(int,__mknod,const char *,path,mode_t,mode,dev_t *,dev)
   return __mknod(path, mode | S_IFIFO, &dev);

As I read the linux source, it looks like a scalar.

$ grep sys_mknod linux-2.6.15/fs/namei.c
asmlinkage long sys_mknod(const char __user * filename, int mode, unsigned dev)


Cheers,
Shaun


Yes, I believe you are correct. This is likely just a typo when I copied down the syscall lists. Glibc has an _xmknod which uses the pointer.


A patch has been checked in.


-- Jeff J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]