tag | line | file | source code |
buf | 15 | fs/block_dev.c | int block_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 49 | fs/block_dev.c | memcpy_fromfs(p,buf,chars); |
buf | 51 | fs/block_dev.c | buf += chars; |
buf | 59 | fs/block_dev.c | int block_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 89 | fs/block_dev.c | memcpy_tofs(buf,p,chars); |
buf | 91 | fs/block_dev.c | buf += chars; |
buf | 329 | fs/buffer.c | void brelse(struct buffer_head * buf) |
buf | 331 | fs/buffer.c | if (!buf) |
buf | 333 | fs/buffer.c | wait_on_buffer(buf); |
buf | 334 | fs/buffer.c | if (!(buf->b_count--)) |
buf | 465 | fs/exec.c | char buf[128], *cp, *interp, *i_name, *i_arg; |
buf | 468 | fs/exec.c | strncpy(buf, bh->b_data+2, 127); |
buf | 471 | fs/exec.c | buf[127] = '\0'; |
buf | 472 | fs/exec.c | if (cp = strchr(buf, '\n')) { |
buf | 474 | fs/exec.c | for (cp = buf; (*cp == ' ') || (*cp == '\t'); cp++); |
buf | 76 | fs/ext/file.c | static int ext_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 140 | fs/ext/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 142 | fs/ext/file.c | buf += chars; |
buf | 145 | fs/ext/file.c | put_fs_byte(0,buf++); |
buf | 160 | fs/ext/file.c | static int ext_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 209 | fs/ext/file.c | memcpy_fromfs(p,buf,c); |
buf | 210 | fs/ext/file.c | buf += c; |
buf | 197 | fs/ext/inode.c | void ext_statfs (struct super_block *sb, struct statfs *buf) |
buf | 201 | fs/ext/inode.c | put_fs_long(EXT_SUPER_MAGIC, &buf->f_type); |
buf | 202 | fs/ext/inode.c | put_fs_long(1024, &buf->f_bsize); |
buf | 203 | fs/ext/inode.c | put_fs_long(sb->u.ext_sb.s_nzones << sb->u.ext_sb.s_log_zone_size, &buf->f_blocks); |
buf | 205 | fs/ext/inode.c | put_fs_long(tmp, &buf->f_bfree); |
buf | 206 | fs/ext/inode.c | put_fs_long(tmp, &buf->f_bavail); |
buf | 207 | fs/ext/inode.c | put_fs_long(sb->u.ext_sb.s_ninodes, &buf->f_files); |
buf | 208 | fs/ext/inode.c | put_fs_long(ext_count_free_inodes(sb), &buf->f_ffree); |
buf | 76 | fs/minix/file.c | int minix_file_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 140 | fs/minix/file.c | memcpy_tofs(buf,offset+(*bhe)->b_data,chars); |
buf | 142 | fs/minix/file.c | buf += chars; |
buf | 145 | fs/minix/file.c | put_fs_byte(0,buf++); |
buf | 160 | fs/minix/file.c | static int minix_file_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 209 | fs/minix/file.c | memcpy_fromfs(p,buf,c); |
buf | 210 | fs/minix/file.c | buf += c; |
buf | 118 | fs/minix/inode.c | void minix_statfs (struct super_block *sb, struct statfs *buf) |
buf | 122 | fs/minix/inode.c | put_fs_long(MINIX_SUPER_MAGIC, &buf->f_type); |
buf | 123 | fs/minix/inode.c | put_fs_long(1024, &buf->f_bsize); |
buf | 124 | fs/minix/inode.c | put_fs_long(sb->u.minix_sb.s_nzones << sb->u.minix_sb.s_log_zone_size, &buf->f_blocks); |
buf | 126 | fs/minix/inode.c | put_fs_long(tmp, &buf->f_bfree); |
buf | 127 | fs/minix/inode.c | put_fs_long(tmp, &buf->f_bavail); |
buf | 128 | fs/minix/inode.c | put_fs_long(sb->u.minix_sb.s_ninodes, &buf->f_files); |
buf | 129 | fs/minix/inode.c | put_fs_long(minix_count_free_inodes(sb), &buf->f_ffree); |
buf | 17 | fs/msdos/dir.c | static int msdos_dummy_read(struct inode *inode,struct file *filp,char *buf, |
buf | 54 | fs/msdos/dir.c | static int msdos_dummy_read(struct inode *inode,struct file *filp,char *buf, |
buf | 22 | fs/msdos/file.c | static int msdos_file_read(struct inode *inode,struct file *filp,char *buf, |
buf | 24 | fs/msdos/file.c | static int msdos_file_write(struct inode *inode,struct file *filp,char *buf, |
buf | 76 | fs/msdos/file.c | static int msdos_file_read(struct inode *inode,struct file *filp,char *buf, |
buf | 95 | fs/msdos/file.c | start = buf; |
buf | 96 | fs/msdos/file.c | while (left = MIN(inode->i_size-filp->f_pos,count-(buf-start))) { |
buf | 103 | fs/msdos/file.c | memcpy_tofs(buf,data+offset,size); |
buf | 104 | fs/msdos/file.c | buf += size; |
buf | 110 | fs/msdos/file.c | if (ch != 26) put_fs_byte(ch,buf++); |
buf | 114 | fs/msdos/file.c | return buf-start; |
buf | 120 | fs/msdos/file.c | if (start == buf) return -EIO; |
buf | 121 | fs/msdos/file.c | return buf-start; |
buf | 125 | fs/msdos/file.c | static int msdos_file_write(struct inode *inode,struct file *filp,char *buf, |
buf | 149 | fs/msdos/file.c | for (start = buf; count || carry; count -= size) { |
buf | 161 | fs/msdos/file.c | buf,written = size); |
buf | 162 | fs/msdos/file.c | buf += size; |
buf | 173 | fs/msdos/file.c | if ((ch = get_fs_byte(buf++)) == '\n') { |
buf | 196 | fs/msdos/file.c | return start == buf ? error : buf-start; |
buf | 157 | fs/msdos/inode.c | void msdos_statfs(struct super_block *sb,struct statfs *buf) |
buf | 162 | fs/msdos/inode.c | put_fs_long(sb->s_magic,&buf->f_type); |
buf | 163 | fs/msdos/inode.c | put_fs_long(SECTOR_SIZE,&buf->f_bsize); |
buf | 164 | fs/msdos/inode.c | put_fs_long(MSDOS_SB(sb)->clusters*cluster_size,&buf->f_blocks); |
buf | 169 | fs/msdos/inode.c | put_fs_long(free,&buf->f_bfree); |
buf | 170 | fs/msdos/inode.c | put_fs_long(free,&buf->f_bavail); |
buf | 171 | fs/msdos/inode.c | put_fs_long(0,&buf->f_files); |
buf | 172 | fs/msdos/inode.c | put_fs_long(0,&buf->f_ffree); |
buf | 33 | fs/open.c | int sys_statfs(const char * path, struct statfs * buf) |
buf | 37 | fs/open.c | verify_area(buf, sizeof(struct statfs)); |
buf | 44 | fs/open.c | inode->i_sb->s_op->statfs(inode->i_sb, buf); |
buf | 49 | fs/open.c | int sys_fstatfs(unsigned int fd, struct statfs * buf) |
buf | 54 | fs/open.c | verify_area(buf, sizeof(struct statfs)); |
buf | 61 | fs/open.c | inode->i_sb->s_op->statfs(inode->i_sb, buf); |
buf | 16 | fs/pipe.c | static int pipe_read(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 35 | fs/pipe.c | memcpy_tofs(buf, (char *)inode->i_size+PIPE_TAIL(*inode), chars ); |
buf | 40 | fs/pipe.c | buf += chars; |
buf | 46 | fs/pipe.c | static int pipe_write(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 78 | fs/pipe.c | memcpy_fromfs((char *)inode->i_size+PIPE_HEAD(*inode), buf, chars ); |
buf | 83 | fs/pipe.c | buf += chars; |
buf | 101 | fs/pipe.c | static int bad_pipe_rw(struct inode * inode, struct file * filp, char * buf, int count) |
buf | 68 | fs/read_write.c | int sys_read(unsigned int fd,char * buf,unsigned int count) |
buf | 79 | fs/read_write.c | verify_area(buf,count); |
buf | 81 | fs/read_write.c | return file->f_op->read(inode,file,buf,count); |
buf | 85 | fs/read_write.c | int sys_write(unsigned int fd,char * buf,unsigned int count) |
buf | 97 | fs/read_write.c | return file->f_op->write(inode,file,buf,count); |
buf | 148 | fs/stat.c | int sys_readlink(const char * path, char * buf, int bufsiz) |
buf | 154 | fs/stat.c | verify_area(buf,bufsiz); |
buf | 161 | fs/stat.c | return inode->i_op->readlink(inode,buf,bufsiz); |
buf | 210 | include/linux/fs.h | void (*statfs) (struct super_block *sb, struct statfs *buf); |
buf | 260 | include/linux/fs.h | extern void brelse(struct buffer_head * buf); |
buf | 51 | include/linux/mm.h | extern void rw_swap_page(int rw, unsigned int nr, char * buf); |
buf | 53 | include/linux/mm.h | #define read_swap_page(nr,buf) \ |
buf | 54 | include/linux/mm.h | rw_swap_page(READ,(nr),(buf)) |
buf | 55 | include/linux/mm.h | #define write_swap_page(nr,buf) \ |
buf | 56 | include/linux/mm.h | rw_swap_page(WRITE,(nr),(buf)) |
buf | 154 | include/linux/msdos_fs.h | extern void msdos_statfs(struct super_block *sb,struct statfs *buf); |
buf | 68 | include/linux/tty.h | unsigned char buf[TTY_BUF_SIZE]; |
buf | 99 | include/linux/tty.h | #define LAST(a) ((a)->buf[(TTY_BUF_SIZE-1)&((a)->head-1)]) |
buf | 38 | init/main.c | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
buf | 80 | kernel/blk_drv/hd.c | #define port_read(port,buf,nr) \ |
buf | 81 | kernel/blk_drv/hd.c | __asm__("cld;rep;insw"::"d" (port),"D" (buf),"c" (nr):"cx","di") |
buf | 83 | kernel/blk_drv/hd.c | #define port_write(port,buf,nr) \ |
buf | 84 | kernel/blk_drv/hd.c | __asm__("cld;rep;outsw"::"d" (port),"S" (buf),"c" (nr):"cx","si") |
buf | 308 | kernel/blk_drv/ll_rw_blk.c | void ll_rw_swap_file(int rw, int dev, unsigned int *b, int nb, char *buf) |
buf | 328 | kernel/blk_drv/ll_rw_blk.c | for (i=0; i<nb; i++, buf += BLOCK_SIZE) |
buf | 346 | kernel/blk_drv/ll_rw_blk.c | req->buffer = buf; |
buf | 402 | kernel/blk_drv/scsi/7000fasst.c | unchar buf[8]; |
buf | 406 | kernel/blk_drv/scsi/7000fasst.c | for (i = 0; i < sizeof(buf); ++i) buf[i] = 0x87; |
buf | 410 | kernel/blk_drv/scsi/7000fasst.c | if (wd7000fasst_command(i, cmd, buf, sizeof(buf))) rstat++; |
buf | 415 | kernel/blk_drv/scsi/7000fasst.c | i, xscsi2int(buf+4), xscsi2int(buf), xscsi2int(buf+4)*xscsi2int(buf)); |
buf | 408 | kernel/blk_drv/scsi/aha1542.c | unchar buf[8]; |
buf | 412 | kernel/blk_drv/scsi/aha1542.c | for (i = 0; i < sizeof(buf); ++i) buf[i] = 0x87; |
buf | 414 | kernel/blk_drv/scsi/aha1542.c | if (!aha1542_command(i, cmd, buf, sizeof(buf))) { |
buf | 416 | kernel/blk_drv/scsi/aha1542.c | i, xscsi2int(buf+4), xscsi2int(buf)); |
buf | 232 | kernel/blk_drv/scsi/fdomain.c | #define insw( buf, count, port ) \ |
buf | 234 | kernel/blk_drv/scsi/fdomain.c | ( "cld;rep;insw"::"d" (port),"D" (buf),"c" (count):"cx","di" ) |
buf | 236 | kernel/blk_drv/scsi/fdomain.c | #define outsw( buf, count, port) \ |
buf | 238 | kernel/blk_drv/scsi/fdomain.c | ("cld;rep;outsw"::"d" (port),"S" (buf),"c" (count):"cx","si") |
buf | 346 | kernel/blk_drv/scsi/fdomain.c | unsigned char buf[256]; |
buf | 470 | kernel/blk_drv/scsi/fdomain.c | retcode = fdomain_16x0_command( i, do_request_sense, buf, 255 ); |
buf | 472 | kernel/blk_drv/scsi/fdomain.c | retcode = fdomain_16x0_command( i, do_inquiry, buf, 255 ); |
buf | 475 | kernel/blk_drv/scsi/fdomain.c | for (j = 8; j < 32; j++) printk( "%c", buf[j] ); |
buf | 476 | kernel/blk_drv/scsi/fdomain.c | retcode = fdomain_16x0_command( i, do_read_capacity, buf, 255 ); |
buf | 480 | kernel/blk_drv/scsi/fdomain.c | blocks = (buf[0] << 24) | (buf[1] << 16) |
buf | 481 | kernel/blk_drv/scsi/fdomain.c | | (buf[2] << 8) | buf[3]; |
buf | 482 | kernel/blk_drv/scsi/fdomain.c | size = (buf[4] << 24) | (buf[5] << 16) | (buf[6] << 8) | buf[7]; |
buf | 75 | kernel/blk_drv/scsi/scsi_ioctl.c | char buf[MAX_BUF]; |
buf | 91 | kernel/blk_drv/scsi/scsi_ioctl.c | memcpy_fromfs ((void *) buf, (void *) (cmd_in + cmdlen), inlen); |
buf | 108 | kernel/blk_drv/scsi/scsi_ioctl.c | scsi_do_cmd(host, dev->id, cmd, buf, ((outlen > MAX_BUF) ? |
buf | 110 | kernel/blk_drv/scsi/scsi_ioctl.c | buf, MAX_RETRIES); |
buf | 116 | kernel/blk_drv/scsi/scsi_ioctl.c | memcpy_tofs ((void *) cmd_in, buf, (outlen > MAX_BUF) ? MAX_BUF : outlen); |
buf | 126 | kernel/blk_drv/scsi/scsi_ioctl.c | printk("%02x ", buf[i]); |
buf | 1447 | kernel/chr_drv/console.c | char *sptr, *buf = (char *)arg; |
buf | 1450 | kernel/chr_drv/console.c | verify_area(buf,2+video_num_columns*video_num_lines); |
buf | 1451 | kernel/chr_drv/console.c | currcons = get_fs_byte(buf+1); |
buf | 1454 | kernel/chr_drv/console.c | put_fs_byte((char)(video_num_lines),buf++); |
buf | 1455 | kernel/chr_drv/console.c | put_fs_byte((char)(video_num_columns),buf++); |
buf | 1459 | kernel/chr_drv/console.c | put_fs_byte(*sptr++,buf++); |
buf | 131 | kernel/chr_drv/keyboard.c | qp->buf[qp->head]=ch; |
buf | 144 | kernel/chr_drv/keyboard.c | qp->buf[qp->head]=ch; |
buf | 276 | kernel/chr_drv/keyboard.c | char buf[] = { 0x1b, 0x4f, 0x00, 0x00 }; |
buf | 278 | kernel/chr_drv/keyboard.c | buf[2] = key; |
buf | 279 | kernel/chr_drv/keyboard.c | puts_queue(buf); |
buf | 1107 | kernel/chr_drv/keyboard.c | char buf[] = { 0x1b, '[', 0, 0, 0 }; /* must not be static */ |
buf | 1109 | kernel/chr_drv/keyboard.c | buf[2]=cur_table[sc]; |
buf | 1110 | kernel/chr_drv/keyboard.c | if (buf[2] < '9') |
buf | 1111 | kernel/chr_drv/keyboard.c | buf[3]='~'; |
buf | 1112 | kernel/chr_drv/keyboard.c | if ((buf[2] >= 'A' && buf[2] <= 'D') ? ckmode : kapplic) |
buf | 1113 | kernel/chr_drv/keyboard.c | buf[1]='O'; |
buf | 1114 | kernel/chr_drv/keyboard.c | puts_queue(buf); |
buf | 49 | kernel/chr_drv/lp.c | static int lp_write(struct inode * inode, struct file * file, char * buf, int count) |
buf | 53 | kernel/chr_drv/lp.c | char c, *temp = buf; |
buf | 55 | kernel/chr_drv/lp.c | temp = buf; |
buf | 62 | kernel/chr_drv/lp.c | return temp-buf?temp-buf:-ENOSPC; |
buf | 68 | kernel/chr_drv/lp.c | return temp-buf?temp-buf:-EFAULT; |
buf | 75 | kernel/chr_drv/lp.c | return temp-buf?temp-buf:-EIO; |
buf | 79 | kernel/chr_drv/lp.c | return temp-buf; |
buf | 82 | kernel/chr_drv/lp.c | static int lp_read(struct inode * inode, struct file * file, char * buf, int count) |
buf | 17 | kernel/chr_drv/mem.c | static int read_ram(struct inode * inode, struct file * file,char * buf, int count) |
buf | 22 | kernel/chr_drv/mem.c | static int write_ram(struct inode * inode, struct file * file,char * buf, int count) |
buf | 27 | kernel/chr_drv/mem.c | static int read_mem(struct inode * inode, struct file * file,char * buf, int count) |
buf | 37 | kernel/chr_drv/mem.c | tmp = buf; |
buf | 61 | kernel/chr_drv/mem.c | return tmp-buf; |
buf | 64 | kernel/chr_drv/mem.c | static int write_mem(struct inode * inode, struct file * file,char * buf, int count) |
buf | 74 | kernel/chr_drv/mem.c | tmp = buf; |
buf | 102 | kernel/chr_drv/mem.c | if (tmp != buf) |
buf | 103 | kernel/chr_drv/mem.c | return tmp-buf; |
buf | 109 | kernel/chr_drv/mem.c | static int read_kmem(struct inode * inode, struct file * file,char * buf, int count) |
buf | 119 | kernel/chr_drv/mem.c | memcpy_tofs(buf,(void *) p,count); |
buf | 124 | kernel/chr_drv/mem.c | static int write_kmem(struct inode * inode, struct file * file,char * buf, int count) |
buf | 134 | kernel/chr_drv/mem.c | memcpy_fromfs((void *) p,buf,count); |
buf | 139 | kernel/chr_drv/mem.c | static int read_port(struct inode * inode,struct file * file,char * buf, int count) |
buf | 142 | kernel/chr_drv/mem.c | char * tmp = buf; |
buf | 150 | kernel/chr_drv/mem.c | return tmp-buf; |
buf | 153 | kernel/chr_drv/mem.c | static int write_port(struct inode * inode,struct file * file,char * buf, int count) |
buf | 156 | kernel/chr_drv/mem.c | char * tmp = buf; |
buf | 164 | kernel/chr_drv/mem.c | return tmp-buf; |
buf | 167 | kernel/chr_drv/mem.c | static int read_zero(struct inode *node,struct file *file,char *buf,int count) |
buf | 172 | kernel/chr_drv/mem.c | put_fs_byte(0,buf); |
buf | 173 | kernel/chr_drv/mem.c | buf++; |
buf | 203 | kernel/chr_drv/mem.c | static int mem_read(struct inode * inode, struct file * file, char * buf, int count) |
buf | 207 | kernel/chr_drv/mem.c | return read_ram(inode,file,buf,count); |
buf | 209 | kernel/chr_drv/mem.c | return read_mem(inode,file,buf,count); |
buf | 211 | kernel/chr_drv/mem.c | return read_kmem(inode,file,buf,count); |
buf | 215 | kernel/chr_drv/mem.c | return read_port(inode,file,buf,count); |
buf | 217 | kernel/chr_drv/mem.c | return read_zero(inode,file,buf,count); |
buf | 223 | kernel/chr_drv/mem.c | static int mem_write(struct inode * inode, struct file * file, char * buf, int count) |
buf | 227 | kernel/chr_drv/mem.c | return write_ram(inode,file,buf,count); |
buf | 229 | kernel/chr_drv/mem.c | return write_mem(inode,file,buf,count); |
buf | 231 | kernel/chr_drv/mem.c | return write_kmem(inode,file,buf,count); |
buf | 235 | kernel/chr_drv/mem.c | return write_port(inode,file,buf,count); |
buf | 75 | kernel/chr_drv/serial.c | c = queue->buf[queue->tail]; |
buf | 98 | kernel/chr_drv/serial.c | queue->buf[head] = inb(port); |
buf | 65 | kernel/chr_drv/tty_io.c | queue->buf[queue->head] = c; |
buf | 78 | kernel/chr_drv/tty_io.c | result = 0xff & queue->buf[queue->tail]; |
buf | 304 | kernel/chr_drv/tty_io.c | static int read_chan(unsigned int channel, struct file * file, char * buf, int nr) |
buf | 308 | kernel/chr_drv/tty_io.c | char * b=buf; |
buf | 364 | kernel/chr_drv/tty_io.c | if (b-buf >= minimum || !current->timeout) |
buf | 382 | kernel/chr_drv/tty_io.c | if (b-buf) |
buf | 383 | kernel/chr_drv/tty_io.c | return b-buf; |
buf | 391 | kernel/chr_drv/tty_io.c | static int write_chan(unsigned int channel, struct file * file, char * buf, int nr) |
buf | 394 | kernel/chr_drv/tty_io.c | char c, *b=buf; |
buf | 452 | kernel/chr_drv/tty_io.c | if (b-buf) |
buf | 453 | kernel/chr_drv/tty_io.c | return b-buf; |
buf | 461 | kernel/chr_drv/tty_io.c | static int tty_read(struct inode * inode, struct file * file, char * buf, int count) |
buf | 469 | kernel/chr_drv/tty_io.c | i = read_chan(MINOR(file->f_rdev),file,buf,count); |
buf | 475 | kernel/chr_drv/tty_io.c | static int tty_write(struct inode * inode, struct file * file, char * buf, int count) |
buf | 483 | kernel/chr_drv/tty_io.c | i = write_chan(MINOR(file->f_rdev),file,buf,count); |
buf | 16 | kernel/printk.c | static char buf[1024]; |
buf | 18 | kernel/printk.c | extern int vsprintf(char * buf, const char * fmt, va_list args); |
buf | 26 | kernel/printk.c | int sys_syslog(int type, char * buf, int len) |
buf | 51 | kernel/printk.c | if (!buf || len < 0) |
buf | 55 | kernel/printk.c | verify_area(buf,len); |
buf | 72 | kernel/printk.c | put_fs_byte(c,buf); |
buf | 73 | kernel/printk.c | buf++; |
buf | 89 | kernel/printk.c | i=vsprintf(buf,fmt,args); |
buf | 93 | kernel/printk.c | *p = buf[j]; |
buf | 101 | kernel/printk.c | console_print(buf); |
buf | 93 | kernel/vsprintf.c | int vsprintf(char *buf, const char *fmt, va_list args) |
buf | 108 | kernel/vsprintf.c | for (str=buf ; *fmt ; ++fmt) { |
buf | 219 | kernel/vsprintf.c | *ip = (str - buf); |
buf | 233 | kernel/vsprintf.c | return str-buf; |
buf | 11 | lib/write.c | _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
buf | 50 | mm/swap.c | void rw_swap_page(int rw, unsigned int nr, char * buf) |
buf | 61 | mm/swap.c | ll_rw_page(rw,swap_device,nr,buf); |
buf | 72 | mm/swap.c | ll_rw_swap_file(rw,swap_file->i_dev, zones,4,buf); |
buf | 42 | net/socket.c | static int sock_read(struct inode *inode, struct file *file, char *buf, |
buf | 44 | net/socket.c | static int sock_write(struct inode *inode, struct file *file, char *buf, |
buf | 23 | net/unix.c | char *buf; |
buf | 82 | net/unix.c | char buf[sizeof(sockun->sun_path) + 1]; |
buf | 87 | net/unix.c | else if (sockaddr_len <= 0 || sockaddr_len >= sizeof(buf)-1) |
buf | 90 | net/unix.c | memcpy(buf, sockun->sun_path, sockaddr_len); |
buf | 91 | net/unix.c | buf[sockaddr_len] = '\0'; |
buf | 92 | net/unix.c | printk("sockaddr_un: '%s'[%d]\n", buf, |
buf | 124 | net/unix.c | upd->buf = NULL; |
buf | 147 | net/unix.c | if (upd->buf) { |
buf | 148 | net/unix.c | free_page((unsigned long)upd->buf); |
buf | 149 | net/unix.c | upd->buf = NULL; |
buf | 174 | net/unix.c | if (!(upd->buf = (char *)get_free_page(GFP_USER))) { |
buf | 434 | net/unix.c | memcpy_tofs(ubuf, upd->buf + upd->bp_tail, cando); |
buf | 512 | net/unix.c | memcpy_fromfs(pupd->buf + pupd->bp_head, ubuf, cando); |
buf | 60 | tools/build.c | char buf[1024]; |
buf | 89 | tools/build.c | for (i=0;i<sizeof buf; i++) buf[i]=0; |
buf | 92 | tools/build.c | if (read(id,buf,MINIX_HEADER) != MINIX_HEADER) |
buf | 94 | tools/build.c | if (((long *) buf)[0]!=0x04100301) |
buf | 96 | tools/build.c | if (((long *) buf)[1]!=MINIX_HEADER) |
buf | 98 | tools/build.c | if (((long *) buf)[3]!=0) |
buf | 100 | tools/build.c | if (((long *) buf)[4]!=0) |
buf | 102 | tools/build.c | if (((long *) buf)[5] != 0) |
buf | 104 | tools/build.c | if (((long *) buf)[7] != 0) |
buf | 106 | tools/build.c | i=read(id,buf,sizeof buf); |
buf | 110 | tools/build.c | if ((*(unsigned short *)(buf+510)) != 0xAA55) |
buf | 112 | tools/build.c | buf[508] = (char) minor_root; |
buf | 113 | tools/build.c | buf[509] = (char) major_root; |
buf | 114 | tools/build.c | i=write(1,buf,512); |
buf | 121 | tools/build.c | if (read(id,buf,MINIX_HEADER) != MINIX_HEADER) |
buf | 123 | tools/build.c | if (((long *) buf)[0]!=0x04100301) |
buf | 125 | tools/build.c | if (((long *) buf)[1]!=MINIX_HEADER) |
buf | 127 | tools/build.c | if (((long *) buf)[3]!=0) |
buf | 129 | tools/build.c | if (((long *) buf)[4]!=0) |
buf | 131 | tools/build.c | if (((long *) buf)[5] != 0) |
buf | 133 | tools/build.c | if (((long *) buf)[7] != 0) |
buf | 135 | tools/build.c | for (i=0 ; (c=read(id,buf,sizeof buf))>0 ; i+=c ) |
buf | 136 | tools/build.c | if (write(1,buf,c)!=c) |
buf | 143 | tools/build.c | for (c=0 ; c<sizeof(buf) ; c++) |
buf | 144 | tools/build.c | buf[c] = '\0'; |
buf | 147 | tools/build.c | if (c > sizeof(buf)) |
buf | 148 | tools/build.c | c = sizeof(buf); |
buf | 149 | tools/build.c | if (write(1,buf,c) != c) |
buf | 156 | tools/build.c | if (read(id,buf,GCC_HEADER) != GCC_HEADER) |
buf | 158 | tools/build.c | if (((long *) buf)[5] != 0) |
buf | 160 | tools/build.c | for (i=0 ; (c=read(id,buf,sizeof buf))>0 ; i+=c ) |
buf | 161 | tools/build.c | if (write(1,buf,c)!=c) |