forked from Imagelibrary/rtems
2000-10-19 Antti P Miettinen <anmietti@trshp.ntc.nokia.com>
* lib/tftpDriver.c: add comments to handlers struct function pointers. * rtems/rtems_glue.c: move pointer arithmetic to be _after_ pointer has been checked against NULL.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2000-10-19 Antti P Miettinen <anmietti@trshp.ntc.nokia.com>
|
||||||
|
|
||||||
|
* lib/tftpDriver.c: add comments to handlers struct function pointers.
|
||||||
|
* rtems/rtems_glue.c: move pointer arithmetic to be _after_
|
||||||
|
pointer has been checked against NULL.
|
||||||
|
|
||||||
2000-10-18 Chris Johns <ccj@acm.org>
|
2000-10-18 Chris Johns <ccj@acm.org>
|
||||||
|
|
||||||
* pppd/ipxcp.c: Fixed a typo.
|
* pppd/ipxcp.c: Fixed a typo.
|
||||||
|
|||||||
@@ -760,16 +760,18 @@ rtems_filesystem_operations_table rtems_tftp_ops = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
rtems_filesystem_file_handlers_r rtems_tftp_handlers = {
|
rtems_filesystem_file_handlers_r rtems_tftp_handlers = {
|
||||||
rtems_tftp_open,
|
rtems_tftp_open, /* open */
|
||||||
rtems_tftp_close,
|
rtems_tftp_close, /* close */
|
||||||
rtems_tftp_read,
|
rtems_tftp_read, /* read */
|
||||||
rtems_tftp_write,
|
rtems_tftp_write, /* write */
|
||||||
NULL,
|
NULL, /* ioctl */
|
||||||
NULL,
|
NULL, /* lseek */
|
||||||
NULL,
|
NULL, /* fstat */
|
||||||
NULL,
|
NULL, /* fchmod */
|
||||||
NULL,
|
NULL, /* ftruncate */
|
||||||
NULL,
|
NULL, /* fpathconf */
|
||||||
NULL,
|
NULL, /* fsync */
|
||||||
NULL,
|
NULL, /* fdatasync */
|
||||||
|
NULL, /* fcntl */
|
||||||
|
NULL /* rmnod */
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -142,11 +142,11 @@ bsd_init (void)
|
|||||||
* Set up mbuf cluster data strutures
|
* Set up mbuf cluster data strutures
|
||||||
*/
|
*/
|
||||||
p = malloc ((nmbclusters*MCLBYTES)+MCLBYTES-1);
|
p = malloc ((nmbclusters*MCLBYTES)+MCLBYTES-1);
|
||||||
p = (char *)(((unsigned long)p + (MCLBYTES-1)) & ~(MCLBYTES-1));
|
|
||||||
if (p == NULL) {
|
if (p == NULL) {
|
||||||
printf ("Can't get network cluster memory.\n");
|
printf ("Can't get network cluster memory.\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
p = (char *)(((unsigned long)p + (MCLBYTES-1)) & ~(MCLBYTES-1));
|
||||||
mbutl = (struct mbuf *)p;
|
mbutl = (struct mbuf *)p;
|
||||||
for (i = 0; i < nmbclusters; i++) {
|
for (i = 0; i < nmbclusters; i++) {
|
||||||
((union mcluster *)p)->mcl_next = mclfree;
|
((union mcluster *)p)->mcl_next = mclfree;
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
2000-10-19 Antti P Miettinen <anmietti@trshp.ntc.nokia.com>
|
||||||
|
|
||||||
|
* lib/tftpDriver.c: add comments to handlers struct function pointers.
|
||||||
|
* rtems/rtems_glue.c: move pointer arithmetic to be _after_
|
||||||
|
pointer has been checked against NULL.
|
||||||
|
|
||||||
2000-10-18 Chris Johns <ccj@acm.org>
|
2000-10-18 Chris Johns <ccj@acm.org>
|
||||||
|
|
||||||
* pppd/ipxcp.c: Fixed a typo.
|
* pppd/ipxcp.c: Fixed a typo.
|
||||||
|
|||||||
@@ -760,16 +760,18 @@ rtems_filesystem_operations_table rtems_tftp_ops = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
rtems_filesystem_file_handlers_r rtems_tftp_handlers = {
|
rtems_filesystem_file_handlers_r rtems_tftp_handlers = {
|
||||||
rtems_tftp_open,
|
rtems_tftp_open, /* open */
|
||||||
rtems_tftp_close,
|
rtems_tftp_close, /* close */
|
||||||
rtems_tftp_read,
|
rtems_tftp_read, /* read */
|
||||||
rtems_tftp_write,
|
rtems_tftp_write, /* write */
|
||||||
NULL,
|
NULL, /* ioctl */
|
||||||
NULL,
|
NULL, /* lseek */
|
||||||
NULL,
|
NULL, /* fstat */
|
||||||
NULL,
|
NULL, /* fchmod */
|
||||||
NULL,
|
NULL, /* ftruncate */
|
||||||
NULL,
|
NULL, /* fpathconf */
|
||||||
NULL,
|
NULL, /* fsync */
|
||||||
NULL,
|
NULL, /* fdatasync */
|
||||||
|
NULL, /* fcntl */
|
||||||
|
NULL /* rmnod */
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -142,11 +142,11 @@ bsd_init (void)
|
|||||||
* Set up mbuf cluster data strutures
|
* Set up mbuf cluster data strutures
|
||||||
*/
|
*/
|
||||||
p = malloc ((nmbclusters*MCLBYTES)+MCLBYTES-1);
|
p = malloc ((nmbclusters*MCLBYTES)+MCLBYTES-1);
|
||||||
p = (char *)(((unsigned long)p + (MCLBYTES-1)) & ~(MCLBYTES-1));
|
|
||||||
if (p == NULL) {
|
if (p == NULL) {
|
||||||
printf ("Can't get network cluster memory.\n");
|
printf ("Can't get network cluster memory.\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
p = (char *)(((unsigned long)p + (MCLBYTES-1)) & ~(MCLBYTES-1));
|
||||||
mbutl = (struct mbuf *)p;
|
mbutl = (struct mbuf *)p;
|
||||||
for (i = 0; i < nmbclusters; i++) {
|
for (i = 0; i < nmbclusters; i++) {
|
||||||
((union mcluster *)p)->mcl_next = mclfree;
|
((union mcluster *)p)->mcl_next = mclfree;
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
2000-10-19 Antti P Miettinen <anmietti@trshp.ntc.nokia.com>
|
||||||
|
|
||||||
|
* lib/tftpDriver.c: add comments to handlers struct function pointers.
|
||||||
|
* rtems/rtems_glue.c: move pointer arithmetic to be _after_
|
||||||
|
pointer has been checked against NULL.
|
||||||
|
|
||||||
2000-10-18 Chris Johns <ccj@acm.org>
|
2000-10-18 Chris Johns <ccj@acm.org>
|
||||||
|
|
||||||
* pppd/ipxcp.c: Fixed a typo.
|
* pppd/ipxcp.c: Fixed a typo.
|
||||||
|
|||||||
@@ -760,16 +760,18 @@ rtems_filesystem_operations_table rtems_tftp_ops = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
rtems_filesystem_file_handlers_r rtems_tftp_handlers = {
|
rtems_filesystem_file_handlers_r rtems_tftp_handlers = {
|
||||||
rtems_tftp_open,
|
rtems_tftp_open, /* open */
|
||||||
rtems_tftp_close,
|
rtems_tftp_close, /* close */
|
||||||
rtems_tftp_read,
|
rtems_tftp_read, /* read */
|
||||||
rtems_tftp_write,
|
rtems_tftp_write, /* write */
|
||||||
NULL,
|
NULL, /* ioctl */
|
||||||
NULL,
|
NULL, /* lseek */
|
||||||
NULL,
|
NULL, /* fstat */
|
||||||
NULL,
|
NULL, /* fchmod */
|
||||||
NULL,
|
NULL, /* ftruncate */
|
||||||
NULL,
|
NULL, /* fpathconf */
|
||||||
NULL,
|
NULL, /* fsync */
|
||||||
NULL,
|
NULL, /* fdatasync */
|
||||||
|
NULL, /* fcntl */
|
||||||
|
NULL /* rmnod */
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -142,11 +142,11 @@ bsd_init (void)
|
|||||||
* Set up mbuf cluster data strutures
|
* Set up mbuf cluster data strutures
|
||||||
*/
|
*/
|
||||||
p = malloc ((nmbclusters*MCLBYTES)+MCLBYTES-1);
|
p = malloc ((nmbclusters*MCLBYTES)+MCLBYTES-1);
|
||||||
p = (char *)(((unsigned long)p + (MCLBYTES-1)) & ~(MCLBYTES-1));
|
|
||||||
if (p == NULL) {
|
if (p == NULL) {
|
||||||
printf ("Can't get network cluster memory.\n");
|
printf ("Can't get network cluster memory.\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
p = (char *)(((unsigned long)p + (MCLBYTES-1)) & ~(MCLBYTES-1));
|
||||||
mbutl = (struct mbuf *)p;
|
mbutl = (struct mbuf *)p;
|
||||||
for (i = 0; i < nmbclusters; i++) {
|
for (i = 0; i < nmbclusters; i++) {
|
||||||
((union mcluster *)p)->mcl_next = mclfree;
|
((union mcluster *)p)->mcl_next = mclfree;
|
||||||
|
|||||||
Reference in New Issue
Block a user